Difference between revisions of "Template:Cls"

From blackwiki
Jump to navigation Jump to search
blackwiki>Paine Ellsworth
("Cl" was altered, so here is its replacement)
 
blackwiki>Ahecht
(strip out "Category:" if present in parameter 1)
Line 1: Line 1:
[[:Category:{{{1}}}|Cat:{{{1}}}]]<noinclude>
+
[[:Category:{{#titleparts:{{PAGENAME:{{{1}}}}}}}|Cat:{{#titleparts:{{PAGENAME:{{{1}}}}}}}]]<noinclude>
  
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 16:10, 28 April 2016

[[:Category:|Cat:]]

50px Template documentation[view] [edit] [history] [purge]

This template is a shortcut for category lists that shortens "Category" to "Cat". Similar to {{tl}} for templates, it automatically places a colon (:) before "Category" so the page will not populate the category:

{{cls|Wikipedians}} produces: Cat:Wikipedians
{{cls|Category:wikipedians}} produces: Cat:Wikipedians

See also

Template Example output
{{c}} Example
{{cl}} Category:Example
{{cls}} Cat:Example
Template Example output
{{cconly}} Template:Cconly
{{clc}} Category:Example (0)
{{lc}} Category:Example (edit | talk | history | links | watch | logs)
{{lcs}} Category:Example(edit talk links history)