Template:Lcs: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Chriswaterguy
(example)
meta>Fabartus
(+{{commonstmp}}+usage+port to commons)
Line 1: Line 1:
<includeonly><span class="plainlinksneverexpand">[[:Category:{{{1|{{PAGENAME}}}}}|Category:{{ucfirst:{{{1|{{PAGENAME}}}}}}}]]&#160;<tt>(</tt><small>[{{fullurl:Category:{{{1|{{PAGENAME}}}}}|action=edit}} edit]&#160;[[:Category talk:{{{1|{{PAGENAME}}}}}|talk]]&#160;[{{fullurl:Special:Whatlinkshere/Category:{{{1|{{PAGENAME}}}}}|limit=500}} links]&#160;[{{fullurl:Category:{{{1|{{PAGENAME}}}}}|action=history}} history]</small><tt>)</tt></span></includeonly><noinclude>
<includeonly><span class="plainlinksneverexpand">[[:Category:{{{1|{{PAGENAME}}}}}|Category:{{ucfirst:{{{1|{{PAGENAME}}}}}}}]]&#160;<tt>(</tt><small>[{{fullurl:Category:{{{1|{{PAGENAME}}}}}|action=edit}} edit]&#160;[[:Category talk:{{{1|{{PAGENAME}}}}}|talk]]&#160;[{{fullurl:Special:Whatlinkshere/Category:{{{1|{{PAGENAME}}}}}|limit=500}} links]&#160;[{{fullurl:Category:{{{1|{{PAGENAME}}}}}|action=history}} history]</small><tt>)</tt></span></includeonly><noinclude>{{commonscat}}
==Usage==
{{Lts|{{PAGENAME}}}} needs one parameter, the name of an existing [[Wikipedia:Category|Category]].
{{Lts|{{PAGENAME}}}} needs one parameter, the name of an existing [[Wikipedia:Category|Category]].


Line 7: Line 8:
appears as:
appears as:
:<tt>{{Lcs|Water}}</tt>
:<tt>{{Lcs|Water}}</tt>
== Documentation ==
[[Template:Lcs}}
is a smaller variant of
{{w2|Template:Lc|Lc}}
with pleasant output also on browsers which don't
support <tt>{{w2|interpunct|&amp;middot;}}</tt>.
{{w2|Template:Lcs|Lcs}}
allows one parameter, the name of an existing
{{w2|Wikipedia:Category|Category}}.
It can be used on talk and user
pages related to an existing {{w2|WP:TPG|talk page}}
of the category, but the linked category talk page
might also not yet exist.
=== Usage ===
<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 ===
{|
| '''Code''' || '''Result'''
|-
| <code><nowiki>{{Lcs|stubs}}</nowiki></code>
| {{Lcs|stubs}}
|-
| <code><nowiki>{{Lcs}}</nowiki></code>
| {{Lcs}}
|}
''The latter shows bogus links, as long as no category'' {{PAGENAME}} ''exists.''
=== See also ===
* <tt>{{Lts|Lcs}}</tt> for Categories
* <tt>{{Lts|Lps}}</tt> for {&#123;ns:Project&#125;}
* <tt>{{Lts|Lts}}</tt> for Templates
* {{Lcs|Internal link templates}}
=== Comparison ===
We got a zoo of similar templates, pick what you like.
This list is probably incomplete and intentionally
omits redirections:
{|
| '''Source''' || '''Code''' || '''Result'''
|-
| {{Lts/|cl}}
| <code><nowiki>{{cl|stubs}}</nowiki></code>
| {{cl|stubs}}
|-
| {{Lts/|ccl}}
| <code><nowiki>{{ccl|stubs}}</nowiki></code>
| {{ccl|stubs}}
|-
| {{Lts/|lc}}
| <code><nowiki>{{lc|stubs}}</nowiki></code>
| {{lc|stubs}}
|-
| {{Lts/|lcs}}
| <code><nowiki>{{lcs|stubs}}</nowiki></code>
| {{lcs|stubs}}
|}{{-}}
[[Category:Internal link templates|{{PAGENAME}}]]
[[Category:Internal link templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revision as of 23:28, 20 August 2006

Usage

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


Example:

{{Lcs|Water}}

appears as:

Category:Water (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|stubs}} Category:Stubs (edit talk links history)
{{Lcs}} Category:Lcs (edit talk links history)

The latter shows bogus links, as long as no category Lcs 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
Template:Lts/ {{cl|stubs}} Category:stubs
Template:Lts/ {{ccl|stubs}} Template:Ccl
Template:Lts/ {{lc|stubs}} Category:Stubs (edit | talk | history | links | watch | logs)
Template:Lts/ {{lcs|stubs}} Category:Stubs (edit talk links history)