Difference between revisions of "Template:Tag"

From Organic Design wiki
(no {{category now)
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==  
+
== 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==
+
== Code ==
</noinclude><includeonly>{{#if:{{{1}}} | {{category:{{{1}}} }} {{#ifeq:{{{2|}}}|{{{2|-}}} || [[:category:{{{1}}}|{{{1}}}]] }}  }}</includeonly>
+
</noinclude><includeonly>{{#if:{{{1}}} | [[Category:{{{1}}}]] {{#ifeq:{{{2|}}}|{{{2|-}}} || [[:Category:{{{1}}}|{{{1}}}]] }}  }}</includeonly>

Revision as of 00:27, 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)

Code