Difference between revisions of "Template:Lcs/doc"

From blackwiki
Jump to navigation Jump to search
imported>Steel1943
(→‎See also: more cleanup)
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(13 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
+
{{Documentation subpage}} __NOTOC__
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
+
<!----Categories where indicated at the bottom of this page, please; interwikis to Wikidata---->
[[Template:Lcs]] is a smaller variant of [[Template:Lc|Lc]] with pleasant output also on browsers which don't support <tt>[[interpunct|&amp;middot;]]</tt>.
+
[[Template:Lcs]] is a smaller variant of [[Template:Lc|Lc]] with pleasant output also on browsers which don't support <code>[[Interpunct|&amp;middot;]]</code>.
 
   
 
   
[[Template:Lcs|Lcs]] allows one parameter, the name of an existing [[Wikipedia:Category|Category]]. It can be used on talk and user pages related to an existing [[WP:TPG|talk page]] of the category, but the linked category talk page might also not yet exist.
+
[[Template:Lcs]] allows one parameter, the name of an existing [[Wikipedia:Category|category]]. It can be used on talk and user pages related to an existing [[WP:TPG|talk page]] of the category, but the linked category talk page might also not yet exist.
__NOTOC__
+
 
 
== Usage ==
 
== Usage ==
{{Tl|Lcs}} needs one parameter, the name of an existing [[Wikipedia:Category|Category]].
 
  
<code><nowiki>{{Lcs|category}}</nowiki></code> shows links for the specified category<br />
+
{{tl|Lcs}} needs one parameter, the name of an existing [[Wikipedia:Category|category]].
<code><nowiki>{{Lcs}}</nowiki></code> shows links for a category wrt the <code><nowiki>{{PAGENAME}}</nowiki></code>
+
 
 +
<code><nowiki>{{lcs|category}}</nowiki></code> shows links for the specified category;<br/>
 +
<code><nowiki>{{lcs}}</nowiki></code> shows links for a category wrt the <code><nowiki>{{PAGENAME}}</nowiki></code>
  
=== Example ===
+
===Example===
{{{!}}
+
{{Aligned table |class=wikitable
! Code !! Result
+
| '''Code''' | '''Result'''
{{!}}-
+
| <code><nowiki>{{lcs|Category:Internal link templates}}</nowiki></code> | {{lcs|Category:Internal link templates}}
{{!}} <code><nowiki>{{Lcs|Interwiki utility templates}}</nowiki></code>
+
| <code><nowiki>{{lcs|internal link templates}}</nowiki></code> | {{lcs|internal link templates}}
{{!}} {{Lcs|Interwiki utility templates}}
+
| <code><nowiki>{{lcs}}</nowiki></code> | {{lcs}}
{{!}}-
+
}}
{{!}} <code><nowiki>{{Lcs}}</nowiki></code>
 
{{!}} {{Lcs}}
 
{{!}}}
 
 
''The latter shows bogus links, as long as no category'' {{PAGENAME}} ''exists.''
 
''The latter shows bogus links, as long as no category'' {{PAGENAME}} ''exists.''
  
:<tt><nowiki>{{Lcs|Interwiki utility templates}}</nowiki></tt>
+
: <code><nowiki>{{lcs|Interwiki utility templates}}</nowiki></code>
appears as:
+
produces:
:<tt>{{Lcs|Interwiki utility templates}}</tt>
+
: {{lcs{{#ifeq:{{SUBPAGENAME}}|sandbox |/sandbox}}|Interwiki utility templates}}
  
=== Comparison ===
+
===Comparison===
We got a zoo of similar templates, pick what you like.
+
The following list is probably incomplete and intentionally omits redirections.
This list is probably incomplete and intentionally
+
{{Aligned table |cols=3 |class=wikitable
omits redirections:
+
| '''Source''' | '''Code''' | '''Result'''
 +
| {{lts|cl}}  | <code><nowiki>{{cl|Internal link templates}}</nowiki></code>  | {{cl|Internal link templates}}
 +
| {{lts|ccl}}  | <code><nowiki>{{ccl|Internal link templates}}</nowiki></code> | {{ccl|Internal link templates}}
 +
| {{lts|lc}}  | <code><nowiki>{{lc|Internal link templates}}</nowiki></code>  | {{lc|Internal link templates}}
 +
| {{lts|lcs}}  | <code><nowiki>{{lcs|Internal link templates}}</nowiki></code> | {{lcs|Internal link templates}}
 +
}}
  
{{{!}}
+
== See also ==
! Source !! Code !! Result
+
* {{tl|Lps}} for {&#123;ns:Project&#125;}
{{!}}-
+
* {{tl|Lts}} for templates
{{!}} {{Lts|cl}}
+
* {{lcs|Internal link templates}}
{{!}} <code><nowiki>{{cl|Interwiki utility templates}}</nowiki></code>
+
{{Internal category-link templates}}
{{!}} {{cl|Interwiki utility templates}}
 
{{!}}-
 
{{!}} {{Lts|ccl}}
 
{{!}} <code><nowiki>{{ccl|Interwiki utility templates}}</nowiki></code>
 
{{!}} {{ccl|Interwiki utility templates}}
 
{{!}}-
 
{{!}} {{Lts|lc}}
 
{{!}} <code><nowiki>{{lc|Interwiki utility templates}}</nowiki></code>
 
{{!}} {{lc|Interwiki utility templates}}
 
{{!}}-
 
{{!}} {{Lts|lcs}}
 
{{!}} <code><nowiki>{{lcs|Interwiki utility templates}}</nowiki></code>
 
{{!}} {{lcs|Interwiki utility templates}}
 
{{!}}}{{-}}
 
  
== See also ==
+
<includeonly>{{Sandbox other||
  
* {{Tl|Lps}} for {&#123;ns:Project&#125;}
+
<!----Categories below this line, please; interwikis to Wikidata---->
* {{Tl|Lts}} for Templates
+
[[Category:Internal category-link templates]]
* {{Lcs|Internal link templates}}
 
  
<includeonly>
+
}}</includeonly>
<!-- Categories go here, and interwikis go in Wikidata -->
 
[[Category:Internal link templates|{{PAGENAME}}]]
 
</includeonly>
 

Latest revision as of 23:42, 25 April 2020

Template:Lcs is a smaller variant of Lc with pleasant output also on browsers which don't support &middot;.

Template:Lcs allows one parameter, the name of an existing category. It can be used on talk and user pages related to an existing talk page of the category, but the linked category talk page might also not yet exist.

Usage

{{Lcs}} needs one parameter, the name of an existing category.

{{lcs|category}} shows links for the specified category;
{{lcs}} shows links for a category wrt the {{PAGENAME}}

Example

Script error: No such module "aligned table". The latter shows bogus links, as long as no category Lcs/doc exists.

{{lcs|Interwiki utility templates}}

produces:

Category:Interwiki utility templates(edit talk links history)

Comparison

The following list is probably incomplete and intentionally omits redirections. Script error: No such module "aligned table".

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)