Difference between revisions of "Template:w"
m |
(→Usage) |
||
| Line 11: | Line 11: | ||
*<code><nowiki>{{w}}</nowiki></code> by itself links to the wikipedia page for the page you use the template on | *<code><nowiki>{{w}}</nowiki></code> by itself links to the wikipedia page for the page you use the template on | ||
**{{w}} | **{{w}} | ||
| − | *<code><nowiki>{{w| | + | *<code><nowiki>{{w|Name}}</nowiki></code> links to the Wikipedia article on "Name" |
**{{w|Name}} | **{{w|Name}} | ||
*<code><nowiki>{{w|Page|Display}}</nowiki></code> prints "Display" which links to the Wikipedia article on "Name" | *<code><nowiki>{{w|Page|Display}}</nowiki></code> prints "Display" which links to the Wikipedia article on "Name" | ||
Revision as of 17:25, 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|Page|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.)
