Difference between revisions of "Template:Lcs/doc"

From blackwiki
Jump to navigation Jump to search
imported>Sardanaphalus
(→‎See also: sandbox non-categorisation)
imported>Sardanaphalus
(replaced <tt>, Aligned tables, sandbox handing)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- 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__
 
__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>
 
  
=== Example ===
+
<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>
! Code !! Result
+
 
{{!}}-
+
===Example===
{{!}} <code><nowiki>{{Lcs|Interwiki utility templates}}</nowiki></code>
+
{{Aligned table |class=wikitable
{{!}} {{Lcs|Interwiki utility templates}}
+
| '''Code''' | '''Result'''
{{!}}-
+
| <code><nowiki>{{lcs|Interwiki utility templates}}</nowiki></code> | {{lcs{{#ifeq:{{SUBPAGENAME}}|sandbox |/sandbox}}|Interwiki utility templates}}
{{!}} <code><nowiki>{{Lcs}}</nowiki></code>
+
| <code><nowiki>{{lcs}}</nowiki></code> | {{lcs{{#ifeq:{{SUBPAGENAME}}|sandbox |/sandbox}}}}
{{!}} {{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 ===
 
We got a zoo of similar templates, pick what you like.
 
This list is probably incomplete and intentionally
 
omits redirections:
 
  
{{{!}}
+
===Comparison===
! Source !! Code !! Result
+
The following list is probably incomplete and intentionally omits redirections.
{{!}}-
+
{{Aligned table |cols=3 |class=wikitable
{{!}} {{Lts|cl}}
+
| '''Source''' | '''Code''' | '''Result'''
{{!}} <code><nowiki>{{cl|Interwiki utility templates}}</nowiki></code>
+
| {{lts|cl}}   | <code><nowiki>{{cl|Interwiki utility templates}}</nowiki></code> | {{cl|Interwiki utility 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|ccl}}
+
| {{lts|lcs}} | <code><nowiki>{{lcs|Interwiki utility templates}}</nowiki></code> | {{lcs|Interwiki utility templates}}
{{!}} <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 ==
 
== See also ==

Revision as of 03:46, 3 July 2014

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