Difference between revisions of "Template:Tag"
From Organic Design wiki
Infomaniac (talk | contribs) (→code: test pretty link) |
(rm whitespace) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude>the purpose of this template is to perform the function of a tag that simultaneously registers a keyword as a category, and links to that category to list all pages containing the same tag. This is more manageable than adding individual 'see also' items to a page, as each related page will require the same additions to them, compounding maintenance. The tag category becomes a hub for related items, displays as one link, and eliminates the need for maintaining redundant lists of links in related items. | <noinclude>the purpose of this template is to perform the function of a tag that simultaneously registers a keyword as a category, and links to that category to list all pages containing the same tag. This is more manageable than adding individual 'see also' items to a page, as each related page will require the same additions to them, compounding maintenance. The tag category becomes a hub for related items, displays as one link, and eliminates the need for maintaining redundant lists of links in related items. | ||
− | == | + | == Usage == |
'''<nowiki>{{tag|keyword}}</nowiki>''' inline link | '''<nowiki>{{tag|keyword}}</nowiki>''' inline link | ||
Line 8: | Line 8: | ||
'''<nowiki>{{tag|keyword|word}}</nowiki>''' pretty link (not implemented yet) | '''<nowiki>{{tag|keyword|word}}</nowiki>''' pretty link (not implemented yet) | ||
− | == | + | == Code == |
− | </noinclude><includeonly>{{#if:{{{1}}} | | + | </noinclude><includeonly>{{#if:{{{1}}}|[[Category:{{{1}}}]]{{#ifeq:{{{2|}}}|{{{2|-}}}||[[:Category:{{{1}}}|{{{1}}}]]}}}}</includeonly> |
Latest revision as of 00:28, 28 September 2012
the purpose of this template is to perform the function of a tag that simultaneously registers a keyword as a category, and links to that category to list all pages containing the same tag. This is more manageable than adding individual 'see also' items to a page, as each related page will require the same additions to them, compounding maintenance. The tag category becomes a hub for related items, displays as one link, and eliminates the need for maintaining redundant lists of links in related items.
Usage
{{tag|keyword}} inline link
{{tag|keyword|}} hidden
{{tag|keyword|word}} pretty link (not implemented yet)