Template:Ln/doc

From TrainzOnline
< Template:Ln
Revision as of 01:26, 6 July 2013 by Fabartus (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.

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


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

See also

Personal tools