Difference between revisions of "Template:Cat"
From PRIMUS Database
m |
m |
||
Line 1: | Line 1: | ||
− | [[Category:{{{1|}}}|{{{3|{{FULLPAGENAME}}}}}]][[:Category:{{{1|}}}|{{{2|{{{1|}}}}}}]] | + | [[Category:{{{1|}}}|{{{3|{{FULLPAGENAME}}}}}]][[:Category:{{{1|}}}|{{#ifexist: {{{1}}}|<span style="color:green;">{{{2|{{{1}}}}}}</span>|{{{2|{{{1}}}}}}}}]] |
<noinclude> | <noinclude> | ||
<br style="clear:both;"> | <br style="clear:both;"> | ||
+ | |||
'''Usage''': '''<nowiki>{{Cat|</nowiki>''1''|''2''|''3''<nowiki>}}</nowiki>'''<br><br> | '''Usage''': '''<nowiki>{{Cat|</nowiki>''1''|''2''|''3''<nowiki>}}</nowiki>'''<br><br> | ||
'''Where'''<br> | '''Where'''<br> |
Revision as of 20:19, 13 April 2014
[[Category:|Template:Cat]][[:Category:|{{#ifexist: {{{1}}}|{{{1}}}|{{{1}}}}}]]
Usage: {{Cat|1|2|3}}
Where
1 = Category Name (Must be included)
2 = Text to Display for Link
3 = Sort Key for order to display in category listing
Example
You have a British character called The British Battler
A: {{Cat|British}}
Will display a link British and add [[Category:British]] on the page.
The British Battler will be listed under T in British Category
B: {{Cat|British|British|British Battler, The}}
Will display a link British and add [[Category:British]] on the page.
The British Battler will be listed under B in British Category