Инструменты пользователя

Инструменты сайта


beget:dokuwiki:syntax

Различия

Показаны различия между двумя версиями страницы.

Ссылка на это сравнение

Предыдущая версия справа и слева Предыдущая версия
Следующая версия
Предыдущая версия
beget:dokuwiki:syntax [2020/10/29 12:08]
Николай Солошин
beget:dokuwiki:syntax [2022/02/12 11:40] (текущий)
Строка 377: Строка 377:
  
 a) The content of the page "mynamespace:example" is: a) The content of the page "mynamespace:example" is:
 +
 +==== HtmlMetaTags Plugin ====
 +
 <code> <code>
 +  {{htmlmetatags>metatag-keywords=(values) metatag-og:description=(open graph description.)}}
 +</code>
 +
 +**Note:** Linebreaks can add inside the <nowiki>{{ }}</nowiki> without any trouble.
 +<code>
 +  {{htmlmetatags>metatag-keywords=(values)
 +    metatag-og:description=(open graph description.)
 +  }}
 +</code>
 +
 +=== Syntax ===
 +
 +With the string ''%%{{htmlmetatags>...}}%%'' on the page level you activate the plugin. The leading string "metatag-" marks a tag for the web site. After this leading string followed the key from tag. In ''%%=(...)%%'' write the value of the tag.
 +
 +Also, the plugin is on page level.
 +
 +Example to activate the plugin on your page write:
 +
 +<code>
 +{{htmlmetatags>metatag-mytag=(some usefull text)}}
 +</code>
 +
 +The meta tag: //mytag// is any word. This word is the name of the new meta tag, e.g. keyword. Followed on this name is to write ''='' with ''%%('...')%%''. This brackets contains the text required for the value of the new meta tag.
 +
 +You can write more than once meta tag on the page separate by space.
 +
 +<code>
 +{{htmlmetatags>metatag-robots=() 
 +metatag-keywords=(apfel,bananne,birne) 
 +metatag-description=(Allgemeiner Obstbauer)
 +metatag-media-og:image=(:wiki:image.jpg)
 +metatag-og:description=(anything else)
 +metatag-og:any=(anything else 2)
 +}}
 +
 +</code>
 +
 +The **result** on web page is:
 +
 +<code html>
 +<meta name="robots" content="noindex,nofollow"/>
 +<meta name="keywords" content="apfel,bananne,birne"/>
 +<meta name="description" content="Allgemeiner Obstbauer"/>
 +<meta property="og:image" content="http://localhost/lib/exe/fetch.php?media=wiki:image.jpg"/>
 +<meta property="og:description" content="anything else"/>
 +<meta property="og:any" content="anything else 2"/>
 +</code>
  
 ~~DISCUSSION:off~~ ~~DISCUSSION:off~~
Последнее изменение: 2022/02/12 11:40 (внешнее изменение)