Difference between revisions of "Template:Ccl/doc"

From ELWiki
Jump to navigation Jump to search
m (New page: ==Documentation== <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> <big>{{tl|ccl}}</big> is a shorthand notation for displaying a category's name with a link, but not actually putting ...)
 
m (chg to 1st level section)
Line 1: Line 1:
==Documentation==
+
=Documentation=
 
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
 
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
 
<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.   

Revision as of 21:24, 28 February 2009

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|Books}}
[[Category:Books]]
{{ccl|Skills}}
[[Category:Skills]]