Difference between revisions of "Template:Tag"

From Organic Design wiki
(eliminate unwanted linebreaks)
(rm whitespace)
 
(8 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
+
<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
  
 
'''<nowiki>{{tag|keyword|}}</nowiki>''' hidden
 
'''<nowiki>{{tag|keyword|}}</nowiki>''' hidden
==code==
+
 
</noinclude><includeonly>{{#if:{{{1}}} | {{category:{{{1}}} }} {{#ifeq:{{{2|}}}|{{{2|-}}} || [[:category:{{{1}}}|{{{1}}}]] }} }}</includeonly>
+
'''<nowiki>{{tag|keyword|word}}</nowiki>''' pretty link (not implemented yet)
 +
 
 +
== Code ==
 +
</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)

Code