Added a comment
[ikiwiki.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).
10
11 For instance, this
12
13     Here is some text about badgers
14     \[[!tag badger]]
15
16 or this
17
18     \[[!tag badger]]
19     Here is some text about badgers
20
21 or even this
22
23     Here is some text about \[[!tag badger]]badgers
24
25 will all come out like this:
26
27     Edit | RecentChanges | etc.
28     ----
29     Here is some text about badgers
30     ----
31     tags: badger
32
33 `\[[!taglink]]` produces a [[ikiwiki/WikiLink]] in the body of the
34 page, *and* stores an invisible tag like `\[[!tag]]`.
35
36 So this:
37
38     Some text about \[[!tag mushrooms]] and toadstools
39
40 renders like this
41
42     Edit | RecentChanges | etc.
43     ----
44     Some text about _mushrooms_ and toadstools
45     ----
46     tags: mushrooms
47
48 where `_mushrooms_` represents a hyperlink.
49 """]]