Template:Wikipedia link: Difference between revisions
Jump to navigation
Jump to search
(Shorthand for linking to wikipedia articles) Tag: 2017 source edit |
m (missed closing brackets, whoops) Tag: 2017 source edit |
||
Line 1: | Line 1: | ||
<onlyinclude><includeonly>[[wikipedia:{{{1}}}|{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}</includeonly></onlyinclude> | <onlyinclude><includeonly>[[wikipedia:{{{1}}}|{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}]]</includeonly></onlyinclude> | ||
<noinclude> | <noinclude> | ||
{{Documentation}} | {{Documentation}} |
Latest revision as of 13:13, 17 August 2023
This template is used to more conveniently generate a link to a Wikipedia article.
Usage:
{{Wikipedia link|Max Barry}}
generates [[wikipedia:Max Barry|Max Barry]]
: Max Barry
{{Wikipedia link|NationStates|NS}}
generates [[wikipedia:NationStates|NS]]
: NS
The {{wpl}}
template redirects to this template and can be used as a shorthand for the shorthand.
Shorthand for generating links to Wikipedia articles.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Page name | 1 | The name of the wikipedia article to link to
| String | required |
Display text | 2 | The text to display for the link
| String | optional |