Difference between revisions of "Template:w"
(→Usage) |
|||
| Line 13: | Line 13: | ||
*<code><nowiki>{{w|Name}}</nowiki></code> links to the Wikipedia article on "Name" | *<code><nowiki>{{w|Name}}</nowiki></code> links to the Wikipedia article on "Name" | ||
**{{w|Name}} | **{{w|Name}} | ||
| − | *<code><nowiki>{{w| | + | *<code><nowiki>{{w|Name|Display}}</nowiki></code> prints "Display" which links to the Wikipedia article on "Name" |
**{{w|Name|Display}} | **{{w|Name|Display}} | ||
Revision as of 21:29, 24 April 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.)
