Difference between revisions of "Template:Ccl/doc"
Jump to navigation
Jump to search
MrDolomite (talk | contribs) m (chg to 1st level section) |
m (cleanup) |
||
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. |
It also encloses the entire result inside of {{tag|span}} tags with {{code|style<nowiki>=</nowiki>"white-space:nowrap"}}. | 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 | ||
− | + | ||
== Usage == | == Usage == | ||
<pre> | <pre> | ||
Line 11: | Line 11: | ||
</pre> | </pre> | ||
:''Note that the '''Category:''' prefix is NOT to be used.'' | :''Note that the '''Category:''' prefix is NOT to be used.'' | ||
+ | |||
== Examples == | == Examples == | ||
− | {| | + | {| |
! Code | ! Code | ||
! Result | ! Result | ||
Line 19: | Line 20: | ||
| {{ccl|Books}} | | {{ccl|Books}} | ||
|- | |- | ||
− | | <pre>{{ccl|Skills}}</pre> | + | | <pre>{{ccl|Skills}}</pre> |
| {{ccl|Skills}} | | {{ccl|Skills}} | ||
|} | |} | ||
− | |||
− | |||
<includeonly><!-- ADD CATEGORIES BELOW THIS LINE --> | <includeonly><!-- ADD CATEGORIES BELOW THIS LINE --> | ||
</includeonly> | </includeonly> |
Latest revision as of 04:55, 11 December 2010
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]] |