Šablon:Ln

S Vikipedije, slobodne enciklopedije

[[{{{2}}}]] ([{{fullurl:{{{2}}}|action=edit}} uredi] | [[:{{{1}}} talk:{{{2}}}|razgovor]] | [{{fullurl:{{{2}}}|action=history}} istorija] | [{{fullurl:Special:Whatlinkshere/{{{2}}}}} veze] | [{{fullurl:{{{2}}}|action=watch}} nadgledaj] | dnevnici)

Dokumentacija šablona[prikaži] [uredi] [istorija] [osveži]

This template and the other related templates listed below produce a series of links for a specified page that is generally, though not always, of the form:

Page (edit | talk | history | links | watch | logs)

The six links are:

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[uredi izvor]

Namespace Link to subject page Link to talk page
General {{pagelinks|FULL PAGE NAME}}
Same as for subject page
{{ln|NAMESPACE|PAGE NAME}} {{lnt|NAMESPACE|PAGE NAME}}
Article {{la|ARTICLE}} {{lat|ARTICLE}}
Draft {{ld|DRAFT}} {{ldt|DRAFT}}
Template {{lt.|TEMPLATE}} {{ltt|TEMPLATE}}
Wikipedia {{lw|PAGE}} {{lwt|PAGE}}
Wikipedia:Articles for deletion/ {{lafd|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}}
Book {{lb|BOOK}} {{lbt|BOOK}}
Education Program {{lep|PROGRAM}} {{lept|PROGRAM}}
TimedText {{lttxt|TIMEDTEXT}} {{lttxtt|TIMEDTEXT}}
Module {{lmd|MODULE}} {{lmdt|MODULE}}
Topic {{ltp|TOPIC}}

Examples[uredi izvor]

Code Result
{{pagelinks|Category:Stubs}} Kategorija:Stubs (uredi | razgovor | istorija | veze | nadgledaj | izveštaji)
{{pagelinks|Category talk:Stubs}} Razgovor o kategoriji:Stubs (uredi | tema | istorija | veze | nadgledaj | dnevnici)
{{ln|Category|Stubs}} Category:Stubs (uredi | razgovor | istorija | veze | nadgledaj | dnevnici)
{{lnt|Category|Stubs}} Category talk:Stubs (uredi | category | istorija | veze | nadgledaj | dnevnici)
{{la|Article}} (jezik: latinski)
{{lat|Article}} Članak ([{{fullurl:{{{1}}}|action=edit}} uredi] | [[Talk:{{{1}}}|razgovor]] | [{{fullurl:{{{1}}}|action=history}} istorija] | [{{fullurl:{{{1}}}|action=protect}} zaštiti] | [{{fullurl:{{{1}}}|action=delete}} obriši] | [{{fullurl:Special:Whatlinkshere/{{{1}}}|limit=999}} veze] | [{{fullurl:{{{1}}}|action=watch}} nadgledaj] | izveštaji | pregledi)
{{ld|Draft}} Šablon:Ld
{{ldt|Draft}} Šablon:Ldt
{{lt.|Tdeprecated}} (jezik: litvanski)
{{ltt|Tdeprecated}} Šablon:Ltt
{{lu|Example}} Šablon:Lu
{{lut|Example}} Šablon:Lut
{{lw|About}} Vikipedija:About (uredi | razgovor | istorija | veze | nadgledaj | dnevnici)
{{lwt|About}} Šablon:Lwt
{{lc|Stubs}} Kategorija:Stubs (uredi | razgovor | istorija | veze | nadgledaj | dnevnici)
{{lct|Stubs}} Šablon:Lct
{{lf|1944 NormandyLST.jpg}} Šablon:Lf
{{lft|1944 NormandyLST.jpg}} Šablon:Lft
{{lp|Television}} Šablon:Lp
{{lpt|Television}} Šablon:Lpt
{{lm|Common.css}} Šablon:Lm
{{lmt|Common.css}} Šablon:Lmt
{{lb|Business}} (jezik: luksemburški)
{{lbt|Business}} Šablon: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>
 [//sr.wikipedia.org/w/index.php?title=%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%98%D0%B0:Stubs&action=edit edit]<tt>|</tt>
 [[:Category talk:Stubs|talk]]<tt>|</tt>
 [//sr.wikipedia.org/w/index.php?title=%D0%9F%D0%BE%D1%81%D0%B5%D0%B1%D0%BD%D0%BE:Whatlinkshere/:Category:Stubs&limit=999 links]<tt>|</tt>
 [//sr.wikipedia.org/w/index.php?title=%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%98%D0%B0:Stubs&action=history history]<tt>|</tt>
 [//sr.wikipedia.org/w/index.php?title=%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%98%D0%B0:Stubs&action=watch watch]<tt>)</tt></span>

See also[uredi izvor]