(Translated by https://www.hiragana.jp/)
Template:Category links short: Difference between revisions - Wikipedia Jump to content

Template:Category links short: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
+{{Interwikitmp-grp}} +{{TOCright}} + --{{Commonscat}} ??? Huh, has no Category:Lcs!
Interwiki cats in examples
Line 8: Line 8:


Example:
Example:
:<tt><nowiki>{{Lcs|Water}}</nowiki></tt>
:<tt><nowiki>{{Lcs|Interwiki utility templates}}</nowiki></tt>
appears as:
appears as:
:<tt>{{Lcs|Water}}</tt>
:<tt>{{Lcs|Interwiki utility templates}}</tt>
== Documentation ==
== Documentation ==
[[Template:Lcs}}
[[Template:Lcs}}
Line 35: Line 35:
| '''Code''' || '''Result'''
| '''Code''' || '''Result'''
|-
|-
| <code><nowiki>{{Lcs|stubs}}</nowiki></code>
| <code><nowiki>{{Lcs|Interwiki utility templates}}</nowiki></code>
| {{Lcs|stubs}}
| {{Lcs|Interwiki utility templates}}
|-
|-
| <code><nowiki>{{Lcs}}</nowiki></code>
| <code><nowiki>{{Lcs}}</nowiki></code>
Line 59: Line 59:
|-
|-
| {{Lts/|cl}}
| {{Lts/|cl}}
| <code><nowiki>{{cl|stubs}}</nowiki></code>
| <code><nowiki>{{cl|Interwiki utility templates}}</nowiki></code>
| {{cl|stubs}}
| {{cl|Interwiki utility templates}}
|-
|-
| {{Lts/|ccl}}
| {{Lts/|ccl}}
| <code><nowiki>{{ccl|stubs}}</nowiki></code>
| <code><nowiki>{{ccl|Interwiki utility templates}}</nowiki></code>
| {{ccl|stubs}}
| {{ccl|Interwiki utility templates}}
|-
|-
| {{Lts/|lc}}
| {{Lts/|lc}}
| <code><nowiki>{{lc|stubs}}</nowiki></code>
| <code><nowiki>{{lc|Interwiki utility templates}}</nowiki></code>
| {{lc|stubs}}
| {{lc|Interwiki utility templates}}
|-
|-
| {{Lts/|lcs}}
| {{Lts/|lcs}}
| <code><nowiki>{{lcs|stubs}}</nowiki></code>
| <code><nowiki>{{lcs|Interwiki utility templates}}</nowiki></code>
| {{lcs|stubs}}
| {{lcs|Interwiki utility templates}}
|}{{-}}
|}{{-}}
[[Category:Internal link templates|{{PAGENAME}}]]
[[Category:Internal link templates|{{PAGENAME}}]]

Revision as of 06:16, 13 September 2006


Template:Interwikitmp-grp

Usage

Template:Category links short(edit talk links history) needs one parameter, the name of an existing Category.


Example:

{{Lcs|Interwiki utility templates}}

appears as:

Category:Interwiki utility templates (edit talk links history)

Documentation

[[Template:Lcs}} is a smaller variant of Template:W2 with pleasant output also on browsers which don't support Template:W2.

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

Usage

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

Example

Code Result
{{Lcs|Interwiki utility templates}} Category:Interwiki utility templates (edit talk links history)
{{Lcs}} Category:Category links short (edit talk links history)

The latter shows bogus links, as long as no category Category links short exists.

See also

Comparison

We got a zoo of similar templates, pick what you like. This list is probably incomplete and intentionally omits redirections:

Source Code Result
links talk edit {{cl|Interwiki utility templates}} Category:Interwiki utility templates
links talk edit {{ccl|Interwiki utility templates}} Category:Interwiki utility templates
links talk edit {{lc|Interwiki utility templates}} Category:Interwiki utility templates (edit | talk | history | links | watch | logs)
links talk edit {{lcs|Interwiki utility templates}} Category:Interwiki utility templates (edit talk links history)