Template:Ln/doc

From TrainzOnline
< Template:Ln(Difference between revisions)
Jump to: navigation, search
(genesis, port slightly changed from Wikipedia+cat w/{{Wikipedia})
 
m (fix cat)
 
Line 126: Line 126:
 
*{{Lts|Tlx}} comparison parameters
 
*{{Lts|Tlx}} comparison parameters
 
*{{Lcs|Internal link templates}}
 
*{{Lcs|Internal link templates}}
<includeonly>{{Wikipedia}}
+
<includeonly>
 
[[Category:Internal link templates|{{PAGENAME}}]]<!--
 
[[Category:Internal link templates|{{PAGENAME}}]]<!--
 
[[Category:Articles for deletion templates|{{PAGENAME}}]]
 
[[Category:Articles for deletion templates|{{PAGENAME}}]]
Line 132: Line 132:
 
[[sl:Predloga:Ln]]
 
[[sl:Predloga:Ln]]
 
[[ur:سانچہ:Ln]]--->
 
[[ur:سانچہ:Ln]]--->
</includeonly>
+
</includeonly><noinclude>{{Wikipedia}}</noinclude>

Latest revision as of 01:59, 6 July 2013

This template, and other related templates listed below, produce a series of links for a particular page, generally in the form: Name of Page (edit|talk|history|links|watch|logs) though there are variations.

The six links are explained below:
editedit the page;
talk – access its talk page ;
history – access its edit history;
links – access the what links here feature;
watch – add the page to one's watchlist; and
log – access its logs.

The major difference between the templates is the namespace of the page to which it is applied.

[edit] Usage

Namespace Link to subject page Link to talk page
General Template:Tlp
Same as for subject page
Template:Tlp Template:Tlp
Article Template:Tlp Template:Tlp
Template Template:Tlp Template:Tlp
Wikipedia Template:Tlp Template:Tlp
Wikipedia:Articles for deletion/ Template:Tlp
User Template:Tlp Template:Tlp
Category Template:Tlp Template:Tlp
File Template:Tlp Template:Tlp
Portal Template:Tlp Template:Tlp
MediaWiki Template:Tlp Template:Tlp
Help Template:Tlp Template:Tlp
Book Template:Tlp Template:Tlp


[edit] Examples

Code Result
Template:Tlp Template:Pagelinks
Template:Tlp Template:Pagelinks
Template:Tlp Category:Stubs (edit|talk|history|links|watch|logs)
Template:Tlp Template:Lnt
Template:Tlp Template:La
Template:Tlp Template:Lat
Template:Tlp Template:Lt
Template:Tlp Template:Ltt
Template:Tlp Template:Lu
Template:Tlp Template:Lut
Template:Tlp Template:Lw
Template:Tlp Template:Lwt
Template:Tlp Category:Stubs (edit|talk|history|links|watch|logs)
Template:Tlp Template:Lct
Template:Tlp Template:Lf
Template:Tlp Template:Lft
Template:Tlp Template:Lp
Template:Tlp Template:Lpt
Template:Tlp Template:Lm
Template:Tlp Template:Lmt
Template:Tlp Template:Lb
Template:Tlp Template:Lbt

{{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>
 [https://online.ts2009.com/mediaWiki/index.php?title=Category:Stubs&action=edit edit]<tt>|</tt>
 [[:Category talk:Stubs|talk]]<tt>|</tt>
 [https://online.ts2009.com/mediaWiki/index.php?title=Special:Whatlinkshere/:Category:Stubs&limit=999 links]<tt>|</tt>
 [https://online.ts2009.com/mediaWiki/index.php?title=Category:Stubs&action=history history]<tt>|</tt>
 [https://online.ts2009.com/mediaWiki/index.php?title=Category:Stubs&action=watch watch]<tt>)</tt></span>

[edit] See also

Personal tools