Template:Wlink/doc: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
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), etc.
: 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.
: It can also be used with Wikipedia sites in different 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 article on vandalism|s=fr:wp}}.
: The two can be combined; for example, <code>{{<nowiki />wlink|Vandalisme|s=fr:wp}}</code> links to the {{wlink|Vandalisme|French Wikipedia's article 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

Revision as of 17:14, 19 May 2025

Normally, if you want to link to a Wikipedia article such as just intonation, you have to write the entire title twice ([[Wikipedia:Just intonation|Just intonation]]), and it's a hassle. This template skips that step when the displayed text will be the same as the title of the article you are linking to.

Note: You can use {{w}} as a shortcut.

Parameters

This parameter takes one or two unnamed parameters.

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

See also

  • Template:Wikipedia – another template used to display a small navigation box linking to the English Wikipedia