Difference between revisions of "Template:Wikipedia link"
Jump to navigation
Jump to search
imported>Kicoax |
imported>Qazaaq (Added categories.) |
||
(4 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
[https://{{CONTENTLANG}}.wikipedia.org/wiki/{{#if:{{{1|}}}|{{urlencode:{{{1}}}|WIKI}}|{{FULLPAGENAMEE}}}} {{{2|{{{1|{{FULLPAGENAME}}}}}}}}] | [https://{{CONTENTLANG}}.wikipedia.org/wiki/{{#if:{{{1|}}}|{{urlencode:{{{1}}}|WIKI}}|{{FULLPAGENAMEE}}}} {{{2|{{{1|{{FULLPAGENAME}}}}}}}}]<noinclude> | ||
Makes a link to a Wikipedia page. This exists only because the "wikipedia" [[Special:Interwiki|interwiki]] prefix is missing. | |||
==Parameters== | |||
#The Wikipedia page name (default: current page name) | |||
#The link text (default: first parameter if specified, otherwise the current page name) | |||
==Examples== | |||
{| class="wikitable" | |||
! Source || Output | |||
|- | |||
| <code><nowiki>{{Wikipedia link}}</nowiki></code> || {{Wikipedia link}} | |||
|- | |||
| <code><nowiki>{{Wikipedia link|The Hitchhiker's Guide to the Galaxy}}</nowiki></code> || {{Wikipedia link|The Hitchhiker's Guide to the Galaxy}} | |||
|- | |||
| <code><nowiki>{{Wikipedia link|The Hitchhiker's Guide to the Galaxy|More information}}</nowiki></code> || {{Wikipedia link|The Hitchhiker's Guide to the Galaxy|More information}} | |||
|} | |||
[[Category:Templates]] | |||
</noinclude> |
Latest revision as of 21:55, 3 September 2019
Makes a link to a Wikipedia page. This exists only because the "wikipedia" interwiki prefix is missing.
Parameters[edit source]
- The Wikipedia page name (default: current page name)
- The link text (default: first parameter if specified, otherwise the current page name)
Examples[edit source]
Source | Output |
---|---|
{{Wikipedia link}} |
Template:Wikipedia link |
{{Wikipedia link|The Hitchhiker's Guide to the Galaxy}} |
The Hitchhiker's Guide to the Galaxy |
{{Wikipedia link|The Hitchhiker's Guide to the Galaxy|More information}} |
More information |