Sjabloon:Ln/doc: verschil tussen versies

Uit informatiestandaarden
Naar navigatie springen Naar zoeken springen
k (1 versie)
 
(Een tussenliggende versie door dezelfde gebruiker niet weergegeven)
Regel 1: Regel 1:
 
<!-- {{Interwikitmp-grp|V=1|wdy=|wnw=|wqt=|wsr=|wbk=|wsp=|cms=|Ln|Ln|updated=18:12, Friday 15 August 2008 (UTC)}} -->
 
<!-- {{Interwikitmp-grp|V=1|wdy=|wnw=|wqt=|wsr=|wbk=|wsp=|cms=|Ln|Ln|updated=18:12, Friday 15 August 2008 (UTC)}} -->
This template, and other related templates listed below, produce a series of links for a particular page, generally in the form: <font color=#002BB8>Name&nbsp;of&nbsp;Page</font>&nbsp;(<font color=#002BB8>edit</font><span style="padding:.2em;">|</span><font color=#002BB8>talk</font><span style="padding:.2em;">|</span><font color=#002BB8>history</font><span style="padding:.2em;">|</span><font color=#002BB8>links</font><span style="padding:.2em;">|</span><font color=#002BB8>watch</font><span style="padding:.2em;">|</span><font color=#002BB8>logs</font>) though there are variations.
+
This template, and other related templates listed below, produce a series of links for a particular page, generally in the form: <font color=#002BB8>Paginanaam</font>&nbsp;(<font color=#002BB8>bewerken</font><span style="padding:.2em;">|</span><font color=#002BB8>talk</font><span style="padding:.2em;">|</span><font color=#002BB8>geschiedenis</font><span style="padding:.2em;">|</span><font color=#002BB8>links</font><span style="padding:.2em;">|</span><font color=#002BB8>volgen</font><span style="padding:.2em;">|</span><font color=#002BB8>logs</font>) though there are variations.
 
:The six links are explained below:
 
:The six links are explained below:
::<code>edit</code> – [[Help:Editing|edit]] the page;
+
::<code>bewerken</code> – [[Help:Editing|edit]] the page;
::<code>talk</code> – access its [[Help:Using talk pages|talk page]] ;
+
::<code>discussie</code> – access its [[Help:Using talk pages|talk page]] ;
::<code>history</code> – access its [[Help:Edit history|edit history]];
+
::<code>geschiedenis</code> – access its [[Help:Edit history|edit history]];
 
::<code>links</code> – access the [[Help:What links here|what links here]] feature;
 
::<code>links</code> – access the [[Help:What links here|what links here]] feature;
::<code>watch</code> – add the page to one's [[Help:Watching pages|watchlist]]; and
+
::<code>volgen</code> – add the page to one's [[Help:Watching pages|watchlist]]; and
::<code>log</code> – access its [[Help:Log|logs]].
+
::<code>logs</code> – access its [[Help:Log|logs]].
 
The major difference between the templates is the [[Wikipedia:Namespace|namespace]] of the page to which it is applied.
 
The major difference between the templates is the [[Wikipedia:Namespace|namespace]] of the page to which it is applied.
  
*General:
+
*Algemeen:
 
**{{pagelinks|Template:Pagelinks}} creates links for any page in any namespace.
 
**{{pagelinks|Template:Pagelinks}} creates links for any page in any namespace.
 
** {{lt|Ln}} creates links for pages in any subject namespace.
 
** {{lt|Ln}} creates links for pages in any subject namespace.

Huidige versie van 22 jul 2013 om 11:27

This template, and other related templates listed below, produce a series of links for a particular page, generally in the form: Paginanaam (bewerken|talk|geschiedenis|links|volgen|logs) though there are variations.

The six links are explained below:
bewerkenedit the page;
discussie – access its talk page ;
geschiedenis – access its edit history;
links – access the what links here feature;
volgen – add the page to one's watchlist; and
logs – 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 {{pagelinks|FULL PAGE NAME}}
Same as for subject page
{{ln|NAMESPACE|PAGE NAME}} {{lnt|NAMESPACE|PAGE NAME}}
Article {{la|ARTICLE}} {{lat|ARTICLE}}
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}}


Examples

Code Result
{{pagelinks|Category:Stubs}} Categorie:Stubs (bewerken|overleg|geschiedenis|links|volgen|logs)
{{pagelinks|Category talk:Stubs}} Overleg categorie:Stubs (bewerken|onderwerp|geschiedenis|links|volgen|logs)
{{ln|Category|Stubs}} Category:Stubs (bewerken|overleg|geschiedenis|links|volgen|logs)
{{lnt|Category|Stubs}} Category talk:Stubs (bewerken|category|geschiedenis|links|volgen|logs)
{{la|Article}} Article (bewerken|overleg|geschiedenis|beveiligen|links|volgen|logs)
{{lat|Article}} Talk:Article (bewerken|artikel|geschiedenis|links|volgen|logs)
{{lt|Tdeprecated}} Sjabloon:Tdeprecated (bewerken|overleg|geschiedenis|links|volgen|logs)
{{ltt|Tdeprecated}} Template talk:Tdeprecated (bewerken|sjabloon|geschiedenis|links|volgen|logs)
{{lu|Example}} User:Example (bewerken|overleg|geschiedenis|links|volgen|logs)
{{lut|Example}} User talk:Example (bewerken|gebruikerpagina|geschiedenis|links|volgen|logs)
{{lw|About}} Wikipedia:About (bewerken|overleg|geschiedenis|links|volgen|logs)
{{lwt|About}} Wikipedia talk:About (bewerken|project page|geschiedenis|links|volgen|logs)
{{lc|Stubs}} Category:Stubs (bewerken|overleg|geschiedenis|links|volgen|logs)
{{lct|Stubs}} Category talk:Stubs (bewerken|categorie|geschiedenis|links|volgen|logs)
{{lf|1944 NormandyLST.jpg}} File:1944 NormandyLST.jpg (bewerken|overleg|geschiedenis|links|volgen|logs)
{{lft|1944 NormandyLST.jpg}} File talk:1944 NormandyLST.jpg (bewerken|bestand|geschiedenis|links|volgen|logs)
{{lp|Television}} Portal:Television (bewerken|overleg|geschiedenis|links|volgen|logs)
{{lpt|Television}} Portal talk:Television (bewerken|portal|geschiedenis|links|volgen|logs)
{{lm|Common.css}} MediaWiki:Common.css (bewerken|overleg|geschiedenis|links|volgen|logs)
{{lmt|Common.css}} MediaWiki talk:Common.css (bewerken|melding|geschiedenis|links|volgen|logs)
{{lb|Business}} Book:Business (bewerken|overleg|geschiedenis|links|volgen|logs)
{{lbt|Business}} Book talk:Business (bewerken|boek|geschiedenis|links|volgen|logs)

{{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://informatiestandaarden.test-nictiz.nl/index.php?title=Categorie:Stubs&action=edit edit]<tt>|</tt>
 [[:Category talk:Stubs|talk]]<tt>|</tt>
 [https://informatiestandaarden.test-nictiz.nl/index.php?title=Speciaal:Whatlinkshere/:Category:Stubs&limit=999 links]<tt>|</tt>
 [https://informatiestandaarden.test-nictiz.nl/index.php?title=Categorie:Stubs&action=history history]<tt>|</tt>
 [https://informatiestandaarden.test-nictiz.nl/index.php?title=Categorie:Stubs&action=watch watch]<tt>)</tt></span>

See also