Difference between revisions of "Template:w"
(Added Wikipedia icon) |
(Fixed) |
||
| Line 2: | Line 2: | ||
-->[[wikipedia:<!-- | -->[[wikipedia:<!-- | ||
-->{{#if:{{{1|}}}<!-- | -->{{#if:{{{1|}}}<!-- | ||
| β | -->|{{ucfirst:{{{1}}}}}{{!}}{{{2|{{{1|}}}}}}]]<!-- | + | -->|{{ucfirst:{{{1}}}}}{{!}}{{{2|{{{1|}}}}}}]] [[File:Wikipedia's W.png|link=|alt=]]<!-- |
-->|{{ucfirst:{{PAGENAME}}}}{{!}}{{PAGENAME}}]] [[File:Wikipedia's W.png|link=|alt=]]<!-- | -->|{{ucfirst:{{PAGENAME}}}}{{!}}{{PAGENAME}}]] [[File:Wikipedia's W.png|link=|alt=]]<!-- | ||
-->}}<!-- | -->}}<!-- | ||
Revision as of 09:44, 18 May 2025
A template to make a link to Wikipedia.
Usage
{{w}} by itself links to the Wikipedia page for the page you use the template on
{{w|Name}} links to the Wikipedia article on "Name"
{{w|Name|Display}} prints "Display" which links to the Wikipedia article on "Name"
The first character of the link target is automatically capitalized, such that e.g. {{w|xkcd}} (xkcd) and {{w|Xkcd|xkcd}} (xkcd) both link to the same URL. (Wikipedia page titles never start with a lowercase character, though they can display with alternative capitalization.) xkcd.com
