Template:Ln

From TrainzOnline
(Difference between revisions)
Jump to: navigation, search
(genesis, port unchanged from WikiMedia+cat w/{{Mediawiki}})
 

Latest revision as of 02:00, 6 July 2013

[[:{{{1}}}:{{{2}}}]] ([{{fullurl::{{{1}}}:{{{2}}}|action=edit}} edit]|[[:{{{1}}} talk:{{{2}}}|talk]]|[{{fullurl::{{{1}}}:{{{2}}}|action=history}} history]|[{{fullurl:Special:Whatlinkshere/:{{{1}}}:{{{2}}}|limit=999}} links]|[{{fullurl::{{{1}}}:{{{2}}}|action=watch}} watch]|logs)


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

Contents

 

Personal tools