]> sipb.mit.edu Git - ikiwiki.git/blob - doc/plugins/tag.mdwn
* Add taglink preprocessor directive, supporting visible tag links.
[ikiwiki.git] / doc / plugins / tag.mdwn
1 [[template id=plugin name=tag author="[[Joey]]"]]
2 [[tag type/tags type/link]]
3
4 This plugin allows tagging pages. List tags as follows:
5
6         \[[tag tech life linux]]
7
8 The tags work the same as if you had put a (hidden) [[WikiLink]] on the page
9 for each tag, so you can use a [[PageSpec]] match all pages that are
10 tagged with a given tag, for example. The tags will also show up on blog
11 entries and at the bottom of the tagged pages, as well as in RSS and Atom
12 feeds.
13
14 If you want a visible [[WikiLink]] along with the tag, use taglink instead:
15
16         \[[taglink foo]]
17
18 This plugin has a configuration option. Set --tagbase=tags and links to tags
19 will be located under the specified base page. If ikiwiki is configured
20 this way, then the example above actually tags the page with the tags
21 tags/tech, tags/life, and tags/linux. This is a useful way to avoid
22 having to write the full path to tags, if you want to keep them grouped
23 together out of the way.
24
25 [[if test="enabled(tag)" then="""
26 This wiki has the tag plugin enabled, so you'll see a note below that this
27 page is tagged with the "tags" tag.
28 """]]