]> sipb.mit.edu Git - ikiwiki.git/blob - doc/plugins/contrib/parenttag.mdwn
Merge branch 'ready/templatebody'
[ikiwiki.git] / doc / plugins / contrib / parenttag.mdwn
1 [[!meta author="spalax"]]
2 [[!template id=plugin name=parenttag author="[[Louis|spalax]]"]]
3 [[!tag type/tags]]
4
5 This plugin deals with subtags (e.g. `mathematics/calculus`). Whenever a page is tagged, it is automatically tagged with its subtags as well: the following directives are equivalent:
6
7     \[[!tag mathematics/calculus]]
8     \[[!tag mathematics mathematics/calculus]]
9
10 The `taglink` directive is changed as well: instead of displaying the leaf of the tag, the full path (up to `tagbase` configuration option) is displayed, each bit linking to its corresponding page. For instance, directive `\[[!taglink mathematics/calculus]]` creates a link similar to `\[[TAGBASE/mathematics]]/\[[TAGBASE/mathematics/calculus]]`.
11
12 ## Code
13
14 Code and documentation can be found here : [[https://atelier.gresille.org/projects/gresille-ikiwiki/wiki/Parenttag]].