Difference between revisions of "Template:Ccl"

From MidrangeWiki
Jump to: navigation, search
m (removed a pair of closing ]] had too many)
m (creating doc sub-page)
Line 1: Line 1:
 
<span style="color:#2A52BE">&#91;&#91;</span>[[Special:Categories|Category]]:[[:Category:{{{1}}}|{{{1}}}]]<span style="color:#2A52BE">]]</span><noinclude>
 
<span style="color:#2A52BE">&#91;&#91;</span>[[Special:Categories|Category]]:[[:Category:{{{1}}}|{{{1}}}]]<span style="color:#2A52BE">]]</span><noinclude>
----
+
{{{{FULLPAGENAME}}/doc}}
*This [[Wikipedia:Template|template]] is a [[Wikipedia:Avoid self-references|self-reference]] and so is part of the {{SITENAME}} project rather than the content itself.
+
<!-- Add cats and interwikis to the /doc subpage, not here! -->
*See [[{{ns:Template_talk}}:{{PAGENAME}}]] for instructions.
+
</noinclude>
----
 
[[Category:Internal link templates|{{PAGENAME}}]]</noinclude>
 

Revision as of 19:29, 26 January 2007

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


The template documentation below is transcluded from Template:Ccl/doc [edit]

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|Definitions}}
[[Category:Definitions]]
{{ccl|Programming}}
[[Category:Programming]]