Difference between revisions of "Template:Cls/doc"

From blackwiki
Jump to navigation Jump to search
imported>Sardanaphalus
m (template name)
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(8 intermediate revisions by 7 users not shown)
Line 2: Line 2:
 
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
 
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
  
This template is a shortcut for category lists that shortens "Category" to "Cat".  Similar to {{tlpad|tl}} for templates, it automatically places a colon (:) before "Category" so the page will not populate the category:  
+
This template is a shortcut for category lists that shortens "Category" to "Cat".  Similar to {{tl|tl}} for templates, it automatically places a colon (:) before "Category" so the page will not populate the category:  
<code><nowiki>{{cls|Wikipedians}}</nowiki></code>
+
: {{tlx|cls|Wikipedians}} produces: {{cls|Wikipedians}}  
: produces: {{cls|Wikipedians}}  
+
: {{tlx|cls|Category:wikipedians}} produces: {{cls|Category:wikipedians}}  
  
 
== See also ==
 
== See also ==
* {{tlpad|c}}, which produces {{c|Philosophy}}.
+
* {{tl|c}}, which produces {{c|Philosophy}}.
* {{tlpad|cl}}, which produces {{cl|Philosophy}}.
+
* {{tl|cl}}, which produces {{cl|Philosophy}}.
* {{tlpad|lcs}}, which produces {{lcs|Philosophy}} for use in discussions.
+
* {{tl|lcs}}, which produces {{lcs|Philosophy}} for use in discussions.
 +
{{Internal category-link templates}}
  
<includeonly>
+
<includeonly>{{Sandbox other||
 
<!-- Categories go here, and interwikis go in Wikidata -->
 
<!-- Categories go here, and interwikis go in Wikidata -->
 
[[Category:Internal category-link templates]]
 
[[Category:Internal category-link templates]]
</includeonly>
+
}}</includeonly>

Latest revision as of 15:22, 24 April 2020

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)