Vés al contingut

Plantilla:Lc

De la Viquipèdia, l'enciclopèdia lliure

[[:Categoria:{{{1}}}]] ([{{fullurl::Categoria:{{{1}}}|action=edit}} modifica] | [[Discussió de la categoria:{{{1}}}|discussió]] | [{{fullurl::Categoria:{{{1}}}|action=history}} historial] | [{{fullurl:Special:Whatlinkshere/:Categoria:{{{1}}}|limit=999}} què hi enllaça] | [{{fullurl::Categoria:{{{1}}}|action=watch}} vigila] | registres)

Icona de documentació de mòdul Documentació de la plantilla[ mostra ] [ modifica el codi ] [ mostra l'historial ] [ refresca ]

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:

Pàgina (modifica discussió historial què hi enllaça vigila registres)

The six links are:

editmodifica the page;
talk – access its discussió ;
history – access its historial;
links – access the què hi enllaça feature;
watch – add the page to one's vigila; and
log – access its registres.

The major difference between the templates is the espai de noms of the page to which it is applied.

  • General:
    • Plantilla:Pagelinks creates links for any page in any namespace.
    • (lituà) creates links for pages in any subject namespace.
    • (lituà) creates links for pages in any talk namespace.

Ús

Espai de nomsLink to subject pageLink 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}}
Categoria{{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}}


Exemples

Code Result
{{pagelinks|Categoria:Esborranys}}Plantilla:Pagelinks
{{pagelinks|Categoria Discussió:Esborranys}}Plantilla:Pagelinks
{{ln|Categoria|Esborranys}}Categoria:Esborranys (modifica | discussió | historial | què hi enllaça | vigila | registres)
{{lnt|Categoria|Esborranys}}Plantilla:Lnt
{{la|Article}}(llatí)
{{lat|Article}}Plantilla:Lat
{{ld|Draft}}Plantilla:Ld
{{ldt|Draft}}Plantilla:Ldt
{{lt|Tdeprecated}}(lituà)
{{ltt|Tdeprecated}}Plantilla:Ltt
{{lu|Example}}Plantilla:Lu
{{lut|Example}}Plantilla:Lut
{{lw|About}}Plantilla:Lw
{{lwt|About}}Plantilla:Lwt
{{lc|Esborranys}}Categoria:Esborranys (modifica | discussió | historial | què hi enllaça | vigila | registres)
{{lct|Esborranys}}Plantilla:Lct
{{lf|1944 NormandyLST.jpg}}Plantilla:Lf
{{lft|1944 NormandyLST.jpg}}Plantilla:Lft
{{lp|Television}}Plantilla:Lp
{{lpt|Television}}Plantilla:Lpt
{{lm|Common.css}}Plantilla:Lm
{{lmt|Common.css}}Plantilla:Lmt
{{lb|Business}}(luxemburguès)
{{lbt|Business}}Plantilla:Lbt

{{subst:ln|Categoria|Esborranys}} results (or resulted) in this code:

{{lx|1=:{{ucfirst:Categoria}}:|2={{ucfirst:Esborranys}}|3=:Categoria Discussió|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">[[:Categoria:Esborranys]] <tt>(</tt>
 [//ca.wikipedia.org/w/index.php?title=Categoria:Esborranys&action=edit edit]<tt>|</tt>
 [[:Categoria Discussió:Esborranys|talk]]<tt>|</tt>
 [//ca.wikipedia.org/w/index.php?title=Especial:Whatlinkshere/:Categoria:Esborranys&limit=999 links]<tt>|</tt>
 [//ca.wikipedia.org/w/index.php?title=Categoria:Esborranys&action=history history]<tt>|</tt>
 [//ca.wikipedia.org/w/index.php?title=Categoria:Esborranys&action=watch watch]<tt>)</tt></span>

Vegeu també