Template:Wlink/doc: Difference between revisions
ArrowHead294 (talk | contribs) mNo edit summary |
m Readability for editors |
||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{dochead}} | {{dochead}}{{substitute|no}} | ||
Normally, if you want to link to a Wikipedia article such as {{w|just intonation}}, you have to write the entire title twice (<code><nowiki>[[Wikipedia: Just intonation|Just intonation]]</nowiki></code>), 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. | Normally, if you want to link to a Wikipedia article such as {{w|just intonation}}, you have to write the entire title twice (<code><nowiki>[[Wikipedia: Just intonation|Just intonation]]</nowiki></code>), 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. | ||
Line 16: | Line 16: | ||
: Other Wikimedia Foundation projects can also be linked, such as <code>wikt</code> (Wiktionary) or <code>meta</code> (Wikimedia's meta-wiki). | : Other Wikimedia Foundation projects can also be linked, such as <code>wikt</code> (Wiktionary) or <code>meta</code> (Wikimedia's meta-wiki). | ||
: Non-English languages can also be linked using {{w|ISO 639-1}} abbreviations, such as <code>fr</code> for French and <code>es</code> for Spanish. | : Non-English languages can also be linked using {{w|ISO 639-1}} abbreviations, such as <code>fr</code> for French and <code>es</code> for Spanish. | ||
: These can be combined; for example, <code><nowiki>{{wlink|Vandalisme|s=fr:wp}}</nowiki></code> | : These can be combined; for example, <code><nowiki>{{wlink|Vandalisme|s=fr:wp}}</nowiki></code> is equivalent to <code><nowiki>[[wikipedia:fr:wp:Vandalisme|Vandalisme]]</nowiki></code> and will link to the {{wlink|Vandalisme|French Wikipedia's policy page on vandalism|s=fr:wp}}. | ||
=== 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 |