Difference between revisions of "Template:Ccl"

From ELWiki
Jump to navigation Jump to search
m (template for Complete Category Linking like http://skyrates.wikia.com/wiki/Template:Ccl)
 
m (change link from Special:Categories to Category:Contents)
 
Line 1: Line 1:
<span style="white-space:nowrap"><span style="color:#2A52BE">&#91;&#91;</span>[[Special:Categories|Category]]:[[:Category:{{{1}}}|{{{1}}}]]<span style="color:#2A52BE">]]</span></span><noinclude>
+
<span style="white-space:nowrap"><span style="color:#2A52BE">&#91;&#91;</span>[[:Category:Contents|Category]]:[[:Category:{{{1}}}|{{{1}}}]]<span style="color:#2A52BE">]]</span></span><noinclude>
 
{{{{FULLPAGENAME}}/doc}}
 
{{{{FULLPAGENAME}}/doc}}
 
<!-- ADD CATEGORIES TO THE /DOC SUBPAGE, NOT HERE -->
 
<!-- ADD CATEGORIES TO THE /DOC SUBPAGE, NOT HERE -->
 
</noinclude>
 
</noinclude>

Latest revision as of 13:00, 5 March 2009

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

Documentation

{{ccl}} is a shorthand notation for displaying a category's name with a link, but not actually putting an article INTO said category. It automatically adds the leading [[ and trailing ]] brackets and the Category: prefix for ease of copy/paste.

It also encloses the entire result inside of <span> tags with style="white-space:nowrap".

Ccl stands for Complete Category Link

Usage

{{ccl|categoryname}}
Note that the Category: prefix is NOT to be used.

Examples

Code Result
{{ccl|Books}}
[[Category:Books]]
{{ccl|Skills}}
[[Category:Skills]]