Difference between revisions of "Template:Ccl/doc"

From MidrangeWiki
Jump to: navigation, search
m (change name to Complete Category Link)
m (add note about new nowrap feature)
 
Line 3: Line 3:
 
=Documentation=
 
=Documentation=
 
<big>{{tl|ccl}}</big> 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 <code>[[</code> and trailing <code>]]</code> brackets and the <code>Category:</code> prefix for ease of copy/paste.
 
<big>{{tl|ccl}}</big> 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 <code>[[</code> and trailing <code>]]</code> brackets and the <code>Category:</code> prefix for ease of copy/paste.
 +
 +
It also encloses the entire result inside of {{tag|span}} tags with {{code|style<nowiki>=</nowiki>"white-space:nowrap"}}.
 
:'''{{PAGENAME}}''' stands for {{bu|C}}omplete {{bu|C}}ategory {{bu|L}}ink
 
:'''{{PAGENAME}}''' stands for {{bu|C}}omplete {{bu|C}}ategory {{bu|L}}ink
 
   
 
   

Latest revision as of 04:20, 29 January 2008

48px This is the template documentation page for {{Ccl}}.
It is not intended to be viewed directly. If it uses variables, some links may appear broken. Do not replace these variables with hardcoded page names or URLs.

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/doc 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]]