Difference between revisions of "Template:Cat"
m |
m |
||
Line 13: | Line 13: | ||
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> |
Revision as of 20:34, 13 April 2014
[[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.