Difference between revisions of "Template:Cat"

From PRIMUS Database
Jump to: navigation, search
m
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:{{{1|}}}|{{{3|{{FULLPAGENAME}}}}}]][[:Category:{{{1|}}}|{{#ifexist: {{{1}}}|<span style="color:green;">{{{2|{{{1}}}}}}</span>|{{{2|{{{1}}}}}}}}]]
+
<noinclude>[[Category:Templates]]<!--please do not delete or overwrite--></noinclude>[[Category:{{{1|}}}|{{{3|{{FULLPAGENAME}}}}}]][[:Category:{{{1|}}}|<span style="color:{{{linkcolor|}}};">{{{2|{{{1}}}}}}</span>]]<noinclude>
<noinclude>
+
 
<br style="clear:both;">
 
<br style="clear:both;">
  
Line 13: Line 12:
 
A: '''<nowiki>{{Cat|British}}</nowiki>'''<br>Will display a link [[:Category:British|British]] and add <nowiki>[[Category:British]]</nowiki> on the page.<br>The British Battler will be listed under T in [[:Category:British|British]] Category<br><br>
 
A: '''<nowiki>{{Cat|British}}</nowiki>'''<br>Will display a link [[:Category:British|British]] and add <nowiki>[[Category:British]]</nowiki> on the page.<br>The British Battler will be listed under T in [[:Category:British|British]] Category<br><br>
 
B: '''<nowiki>{{Cat|British|British|British Battler, The}}</nowiki>'''<br>Will display a link [[:Category:British|British]] and add <nowiki>[[Category:British]]</nowiki> on the page.<br>The British Battler will be listed under B in [[:Category:British|British]] Category<br><br>
 
B: '''<nowiki>{{Cat|British|British|British Battler, The}}</nowiki>'''<br>Will display a link [[:Category:British|British]] and add <nowiki>[[Category:British]]</nowiki> on the page.<br>The British Battler will be listed under B in [[:Category:British|British]] Category<br><br>
 +
 +
There is an additional option for changing the color of the link when used it doesn't display well on a dark background:<br><br>
 +
 +
C: '''<nowiki>{{Cat|British|linkcolor=green}}</nowiki>'''<br>Will display a link [[:Category:British|<span style="color:green;">British</span>]] and add <nowiki>[[Category:British]]</nowiki>. '''linkcolor''' can be any valid html color code or name.<br><br>
 +
  
 
</noinclude>
 
</noinclude>

Latest revision as of 18:59, 21 February 2015

[[Category:|Template:Cat]][[:Category:|{{{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

There is an additional option for changing the color of the link when used it doesn't display well on a dark background:

C: {{Cat|British|linkcolor=green}}
Will display a link British and add [[Category:British]]. linkcolor can be any valid html color code or name.