Template:Ln
From Wikipedia, the free encyclopedia
:This 'interwikitmp-grp1' template documentation is transcluded from Template:Interwikitmp-grp [edit].
Similar templates at English sister projects [edit] | |||
---|---|---|---|
mta | Meta-wiki | Ln | |
wpd | Wikipedia | Ln | |
cms | Commons | Ln | |
wbk | Wikibooks | Ln | |
wsp | Wikispecies | Ln | |
wvy | Wikiversity | Ln |
- general:
- creates a link and additional links to a page of a namespace.
- creates a link to the talk page of a page.
- article:
- template:
etc.
[edit] 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}} |
Image | {{li|IMAGE}} | {{lit|IMAGE}} |
Portal | {{lp|PORTAL}} | {{lpt|PORTAL}} |
MediaWiki | {{lm|MESSAGE}} | {{lmt|MESSAGE}} |
Help | {{lh|PAGE}} | {{lht|PAGE}} |
[edit] Examples
Code | Result |
---|---|
{{ln|Category|Stubs}} | |
{{lnt|Category|Stubs}} | |
{{la|article}} | |
{{lat|article}} | |
{{lt|tdeprecated}} | |
{{ltt|tdeprecated}} | |
{{lu|example}} | |
{{lut|example}} | |
{{lw|help}} | |
{{lwt|help}} | |
{{lc|stubs}} | |
{{lct|stubs}} | |
{{li|Barnstar.png}} | |
{{lit|Barnstar.png}} | |
{{lp|Television}} | |
{{lpt|Television}} | |
{{lm|Common.css}} | |
{{lmt|Common.css}} |
{{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>
[edit] See also
- Lx-family comparison
- provides edit/history links for both article and talk page
- comparison categories
- comparison Wikipedia
- comparison templates
- comparison parameters
- Category:Internal link templates