Difference between revisions of "Template:Cat"

From PRIMUS Database
Jump to: navigation, search
(Undo revision 83788 by Fwine (talk))
Line 1: Line 1:
 
<noinclude>[[Category:Templates]]<!--please do not delete or overwrite--></noinclude>
 
<noinclude>[[Category:Templates]]<!--please do not delete or overwrite--></noinclude>
[[Category:{{{1|}}}|{{{3|{{FULLPAGENAME}}}}}]][[:Category:{{{1|}}}|{{{2|{{{1}}}}}}</span>]]
+
[[Category:{{{1|}}}|{{{3|{{FULLPAGENAME}}}}}]][[:Category:{{{1|}}}|<span style="color:{{{linkcolor|blue}}};">{{{2|{{{1}}}}}}</span>]]
 
<noinclude>
 
<noinclude>
 
<br style="clear:both;">
 
<br style="clear:both;">

Revision as of 15:40, 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.