Difference between revisions of "Template:Ccl"
From MidrangeWiki
MrDolomite (talk | contribs) m (revert own edit, created a redlink somehow) |
MrDolomite (talk | contribs) m (add nowrap functionality) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | [[[[Special:Categories|Category]]:[[:Category:{{{1}}}|{{{1}}}]]]]<noinclude> | + | <span style="white-space:nowrap"><span style="color:#2A52BE">[[</span>[[Special:Categories|Category]]:[[:Category:{{{1}}}|{{{1}}}]]<span style="color:#2A52BE">]]</span></span><noinclude> |
− | + | {{{{FULLPAGENAME}}/doc}} | |
− | + | <!-- Add categories to the /doc subpage, not here! --> | |
− | |||
− | ---- | ||
− | |||
</noinclude> | </noinclude> |
Latest revision as of 04:19, 29 January 2008
[[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|Definitions}} |
[[Category:Definitions]] |
{{ccl|Programming}} |
[[Category:Programming]] |
- This template is a self-reference and so is part of the MidrangeWiki project rather than the content itself.