Template:Ln/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Lightsup55
m the Image: namespace is now File: - made minor changes to that - also {{Li}}/{{Lit}} were moved to {{Lf}}/{{Lft}}
meta>Lightsup55
m Examples: minor changes
Line 46: Line 46:
| {{tlp|lnt|<nowiki>Category|Stubs</nowiki>}}||{{lnt|Category|Stubs}}
| {{tlp|lnt|<nowiki>Category|Stubs</nowiki>}}||{{lnt|Category|Stubs}}
|-
|-
| {{tlp|la|article}}||{{la|article}}
| {{tlp|la|Article}}||{{la|Article}}
|-
|-
| {{tlp|lat|article}}||{{lat|article}}
| {{tlp|lat|Article}}||{{lat|Article}}
|-
|-
| {{tlp|lt|tdeprecated}}||{{lt|tdeprecated}}
| {{tlp|lt|Tdeprecated}}||{{lt|Tdeprecated}}
|-
|-
| {{tlp|ltt|tdeprecated}}||{{ltt|tdeprecated}}
| {{tlp|ltt|Tdeprecated}}||{{ltt|Tdeprecated}}
|-
|-
| {{tlp|lu|example}}||{{lu|example}}
| {{tlp|lu|Example}}||{{lu|Example}}
|-
|-
| {{tlp|lut|example}}||{{lut|example}}
| {{tlp|lut|Example}}||{{lut|Example}}
|-
|-
| {{tlp|lw|help}}||{{lw|help}}
| {{tlp|lw|Help}}||{{lw|Help}}
|-
|-
| {{tlp|lwt|help}}||{{lwt|help}}
| {{tlp|lwt|Help}}||{{lwt|Help}}
|-
|-
| {{tlp|lc|stubs}}||{{lc|stubs}}
| {{tlp|lc|Stubs}}||{{lc|Stubs}}
|-
|-
| {{tlp|lct|stubs}}||{{lct|stubs}}
| {{tlp|lct|Stubs}}||{{lct|Stubs}}
|-
|-
| {{tlp|lf|Barnstar.png}}||{{lf|Barnstar.png}}
| {{tlp|lf|Barnstar.png}}||{{lf|Barnstar.png}}

Revision as of 18:55, 24 January 2009

Template:Interwikitmp-grp

etc.

Usage

Namespace Link to page Link to talk page
Generic {{ln|NAMESPACE|PAGE NAME}} {{lnt|NAMESPACE|PAGE NAME}}
Article {{la|ARTICLE}} {{lat|ARTICLE}}
Template {{lt|TEMPLATE}} {{ltt|TEMPLATE}}
Wikipedia {{lw|PAGE}} {{lwt|PAGE}}
User {{lu|PAGE}} {{lut|PAGE}}
Category {{lc|PAGE}} {{lct|PAGE}}
File {{lf|FILE}} {{lft|FILE}}
Portal {{lp|PORTAL}} {{lpt|PORTAL}}
MediaWiki {{lm|MESSAGE}} {{lmt|MESSAGE}}
Help {{lh|PAGE}} {{lht|PAGE}}

Examples

Code Result
{{ln|Category|Stubs}} Category:Stubs (edit | talk | history | links | watch | logs)
{{lnt|Category|Stubs}} Category talk:Stubs (edit | category | history | links | watch | logs)
{{la|Article}} Article (edit | talk | history | protect | delete | links | watch | logs | views)
{{lat|Article}} Talk:Article (edit | article | history | links | watch | logs)
{{lt|Tdeprecated}} Template:Tdeprecated (edit | talk | history | links | watch | logs)
{{ltt|Tdeprecated}} Template talk:Tdeprecated (edit | template | history | links | watch | logs)
{{lu|Example}} User:Example (edit | talk | history | links | watch | logs)
{{lut|Example}} User talk:Example (edit | user page | history | links | watch | logs)
{{lw|Help}} Wikipedia:Help (edit | talk | history | links | watch | logs)
{{lwt|Help}} Wikipedia talk:Help (edit | project page | history | links | watch | logs)
{{lc|Stubs}} Category:Stubs (edit | talk | history | links | watch | logs)
{{lct|Stubs}} Category talk:Stubs (edit | category | history | links | watch | logs)
{{lf|Barnstar.png}} File:Barnstar.png (edit | talk | history | links | watch | logs)
{{lft|Barnstar.png}} File talk:Barnstar.png (edit | file | history | links | watch | logs)
{{lp|Television}} Portal:Television (edit | talk | history | links | watch | logs)
{{lpt|Television}} Portal talk:Television (edit | portal | history | links | watch | logs)
{{lm|Common.css}} MediaWiki:Common.css (edit | talk | history | links | watch | logs)
{{lmt|Common.css}} MediaWiki talk:Common.css (edit | message | history | links | watch | logs)

{{subst:ln|Category|Stubs}} results (or resulted) in this code:

{{lx|1=:{{ucfirst:Category}}:|2={{ucfirst:Stubs}}|3=:Category talk|4=talk}}

Note the important colon in 1=:, unnecessary (?) for other Lx namespaces.
Substituting both Lx and Ucfirst finally arrived at (line breaks added manually):

 <span class="plainlinksneverexpand">[[:Category:Stubs]] <tt>(</tt>
 [{{fullurl::Category:Stubs|action=edit}} edit]<tt>|</tt>
 [[:Category talk:Stubs|talk]]<tt>|</tt>
 [{{fullurl:Special:Whatlinkshere/:Category:Stubs|limit=999}} links]<tt>|</tt>
 [{{fullurl::Category:Stubs|action=history}} history]<tt>|</tt>
 [{{fullurl::Category:Stubs|action=watch}} watch]<tt>)</tt></span>

See also