Difference between revisions of "Template:w"
| Line 2: | Line 2: | ||
-->[[wikipedia:<!-- | -->[[wikipedia:<!-- | ||
-->{{#if:{{{1|}}}<!-- | -->{{#if:{{{1|}}}<!-- | ||
| β | -->|{{ucfirst:{{{1}}}}}{{!}}<span title=" | + | -->|{{ucfirst:{{{1}}}}}{{!}}<span title="{{{1}}} on Wikipedia">{{{2|{{{1}}}}}}</span>]]<!-- |
-->|{{ucfirst:{{PAGENAME}}}}{{!}}<span title="{{PAGENAME}} on Wikipedia">{{PAGENAME}}</span>]]<!-- | -->|{{ucfirst:{{PAGENAME}}}}{{!}}<span title="{{PAGENAME}} on Wikipedia">{{PAGENAME}}</span>]]<!-- | ||
-->}}<!-- | -->}}<!-- | ||
Revision as of 09:11, 27 July 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
