Template:Wlink/doc: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
Line 13: Line 13:


; <code>{{{<nowiki />s}}}</code> (optional)
; <code>{{{<nowiki />s}}}</code> (optional)
: A named parameter used to specify namespaces on Wikipedia such as <code>wp</code> (Wikipedia project pages), <code>help</code> (help pages), <code>module</code> (Lua modules), and so on.
: A named parameter used to specify namespaces on Wikipedia such as <code>wp</code> (Wikipedia project pages), <code>help</code> (help pages), and <code>module</code> (Lua modules), or for non-English languages (using {{w|ISO 639-1}} abbreviations); for example, <code>fr</code> for French and <code>es</code> for Spanish.
: It can also be used for non-English languages (using {{w|ISO 639-1}} abbreviations); for example, <code>fr</code> for French and <code>es</code> for Spanish.
: The two can be combined; for example, <code>{{<nowiki />wlink|Vandalisme|s=fr:wp}}</code> links to the {{wlink|Vandalisme|French Wikipedia's policy page on vandalism|s=fr:wp}} (always put the language first, then the project namespace).
: The two can be combined; for example, <code>{{<nowiki />wlink|Vandalisme|s=fr:wp}}</code> links to the {{wlink|Vandalisme|French Wikipedia's policy page on vandalism|s=fr:wp}}. In this case, always put the language first, then the project namespace.


=== See also ===
=== See also ===
* [[Template:Wikipedia]] – another template used to display a small navigation box linking to the English Wikipedia
* [[Template:Wikipedia]] – another template used to display a small navigation box linking to the English Wikipedia