Template:Wlink: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
No edit summary
Tag: Undo
ArrowHead294 (talk | contribs)
mNo edit summary
Line 1: Line 1:
<includeonly>{{#if: {{{1|}}}
<includeonly>{{#if: {{{1|}}}|{{#invoke: Utils | wlink
| [[Wikipedia:{{{1}}}|{{{2|{{{1}}}}}}]]
| a = {{{a|{{{1}}}}}}
| [[Wikipedia:Main Page|Wikipedia]]
| b = {{{b|{{{2|{{{1}}}}}}}}}
}}</includeonly><noinclude>
| l = {{{l|}}}
|
}}|[[Wikipedia:Main Page|Wikipedia]]}}</includeonly><noinclude>
{{documentation}}
{{documentation}}


[[Category:Formatting templates]]
[[Category:Formatting templates]]
</noinclude>
</noinclude>

Revision as of 16:55, 19 May 2025

Template documentation[view] [edit] [history] [purge]
This template should not be substituted.

Normally, if you want to link to a Wikipedia article such as Script error: The function "wlink" does not exist., 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. If omitted the template will simply link to the English Wikipedia's cover page.
{{{2}}} (optional)
Text to be displayed.
{{{s}}} (optional)
A named parameter used to specify namespaces on Wikipedia such as wp (Wikipedia project pages), help (help pages), and module (Lua modules).
Other Wikimedia Foundation projects can also be linked, such as wikt (Wiktionary) or meta (Wikimedia's meta-wiki).
Non-English languages can also be linked using Script error: The function "wlink" does not exist. abbreviations, such as fr for French and es for Spanish.
These can be combined; for example, {{wlink|Vandalisme|s=fr:wp}} is equivalent to [[wikipedia:fr:wp:Vandalisme|Vandalisme]] and will link to the Script error: The function "wlink" does not exist..

See also

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