]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/forum/What__39__s_the_difference_between_tag_and_taglink__63__/comment_1_b3553d65d12af4c4a87f1f66f961c8d9._comment
ikiwiki (3.20140916) unstable; urgency=low
[git.ikiwiki.info.git] / doc / forum / What__39__s_the_difference_between_tag_and_taglink__63__ / comment_1_b3553d65d12af4c4a87f1f66f961c8d9._comment
1 [[!comment format=mdwn
2  username="http://smcv.pseudorandom.co.uk/"
3  nickname="smcv"
4  subject="comment 1"
5  date="2012-08-19T15:05:35Z"
6  content="""
7 `\[[!tag]]` does not produce any output in the body of the page, but
8 stores an invisible tag (which, in the default templates, gets displayed
9 in the footer of the page).
11 For instance, this
13     Here is some text about badgers
14     \[[!tag badger]]
16 or this
18     \[[!tag badger]]
19     Here is some text about badgers
21 or even this
23     Here is some text about \[[!tag badger]]badgers
25 will all come out like this:
27     Edit | RecentChanges | etc.
28     ----
29     Here is some text about badgers
30     ----
31     tags: badger
33 `\[[!taglink]]` produces a [[ikiwiki/WikiLink]] in the body of the
34 page, *and* stores an invisible tag like `\[[!tag]]`.
36 So this:
38     Some text about \[[!tag mushrooms]] and toadstools
40 renders like this
42     Edit | RecentChanges | etc.
43     ----
44     Some text about _mushrooms_ and toadstools
45     ----
46     tags: mushrooms
48 where `_mushrooms_` represents a hyperlink.
49 """]]