Содержание
Эта страница пока что не переведена полностью. Пожалуйста, помогите завершить перевод.
(Сотрите это сообщение по окончании перевода.)
Crib on the maintained expanded syntax of pages
(The installed plugins are considered)
DokuWiki plugins
Cloud plugin
Description
This is a very simple plugin that shows a cloud of the most frequently used words in your wiki:
~~CLOUD~~ ~~CLOUD:number~~
Optionally you can specify the number of words to display. Default is 50. Allowed are numbers between 1 and 999. Each of the words is linked to the search result page for it. The words are styled in a way that more frequent words are bigger and have a darker link color.
You can exclude words from the word cloud by adding them each on its own line to inc/lang/[lang-code]/stopwords.txt or to conf/stopwords.txt. Remember that last line in file should be empty to work correctly.
This plugin can also make a “tag cloud” now! (tag plugin must be installed) The syntax is also simple:
~~TAGCLOUD~~ ~~TAGCLOUD:number~~ ~~TAGCLOUD:number>namespace1:subns11|.|namespace2~~
It also supports clouds for the most searched words in the wiki (searchstats plugin must be installed):
~~SEARCHCLOUD~~ ~~SEARCHCLOUD:number~~
Tag plugin
Description
The Tag Plugin lets you assign category tags to wiki pages.
Components
Tag
{{tag>[list of tags]}}
[list of tags] | a space separated list of tags that describe the content of the current page | required |
Allows you to categorize your wiki pages. The resulting links either point to the corresponding page in the specified tag namespace (only if it exists). If you want a link to point to a page in another namespace, you have to indicate the namespace before the tag name. If this page doesn't exist, just the list of pages with the same tag is shown when you follow one of those links.
Examples:
- {{tag>tag1 tag2 tag3}}
- with namespaces: {{tag>ns1:tag1 ns1:tag2 ns2:subns1:tag3}}
Topic
{{topic>[tag]&[flags]}}
[tag] | the category tag for which you want a list of pages | required |
[flags] | pagelist flags delimited by &, see flags | optional |
This displays a list of all pages that contain the given category tag. The list is sorted alphabetically by page ID. You can also prepend the modifiers + and -. + creates an intersection between the list of pages created by the already defined tags and the pages matching the tag following the + (AND), - removes all pages tagged with the given tag from the list of already found pages.
Example:
- {{topic>tag1 -tag2}} – Lists all pages tagged with tag1 but not with tag2.
- {{topic>tag1 +tag2}} – Lists all pages tagged with tag1 and tag2.
- {{topic>tag1 tag2}} – Lists all pages tagged with either tag1 or tag2 or both.
- {{topic>ns1?tag1 tag2}} – List all pages inside namespace ns1 tagged with either tag1 or tag2
- {{topic>.?tag1 tag2}} – List all pages inside the current namespace tagged with either tag1 or tag2
- {{topic>tag1 tag2 tag3&nodate&desc&sort}} (Adding pagelist options to change the design)