Difference between revisions of "Template:Tag"

From SC4D Encyclopaedia
Jump to navigation Jump to search
sc4e>JoeST
m (for use on infobox templates that need a tag)
sc4e>JoeST
m (changed (disabled {{pagename}}/tag bitr)
Line 1: Line 1:
[[:Category:{{{2}}}-{{{1}}}|{{{1}}}]][[Category:{{{2}}}-{{{1}}}|{{PAGENAME}}]]
+
<noinclude>This template is used to tag a page with a category, creating a link to said category.
 +
==Synatx==
 +
{{Tag|[tag]|[prefix]|[sortkey]}}
 +
 
 +
*'''[tag]''': What you want to tag it with.
 +
*'''''[prefix]''''': A prefix to the tag.
 +
*'''''[sortkey]''''': For use by the category (default PAGENAME)
 +
==Example==
 +
</noinclude><!--if a subpage tag page exists, use it --{{#ifexist:{{FULLPAGENAME}}/tag|{{:{{FULLPAGENAME}}/tag|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}}}|<!--
 +
 
 +
else just show links -->[[:Category:{{#if:{{{2|}}}|{{{2}}}-{{{1}}}|{{{1}}}}}|{{{1}}}]]<!--
 +
                                  prefix the category with parameter 2 if it exists
 +
and categorise -->[[Category:{{#if:{{{2|}}}|{{{2}}}-{{{1}}}|{{{1}}}}}|{{{3|{{PAGENAME}}}}}]]<!--
 +
                                                                      use 3 for a key if exists
 +
-->}}<noinclude>

Revision as of 06:27, 26 January 2009

This template is used to tag a page with a category, creating a link to said category.

Synatx

[[:Category:[prefix]-[tag]|[tag]]][[Category:[prefix]-[tag]|[sortkey]]]}}
  • [tag]: What you want to tag it with.
  • [prefix]: A prefix to the tag.
  • [sortkey]: For use by the category (default PAGENAME)

Example

[[:Category:{{{1}}}|{{{1}}}]][[Category:{{{1}}}|Tag]]}}