Difference between revisions of "Template:Tag"

From Organic Design wiki
(no {{category now)
(rm whitespace)
 
Line 9: Line 9:
  
 
== 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>

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