Template:W: Difference between revisions
Jump to navigation
Jump to search
Documentation
(improved doc) |
mNo edit summary |
||
Line 13: | Line 13: | ||
where | where | ||
*{{para|1}} article's title as seen on Wikipedia. It is mandatory; | *{{para|1}} article's title as seen on Wikipedia. It is mandatory; | ||
*{{para|2}} optional text to be displayed in the link. If not | *{{para|2}} optional text to be displayed in the link. If not specified, the Wikipedia title will be used; | ||
*{{para|lang}} language of the Wikipedia article. It's the first two digits of the link (for example, '''de''' in de.wikipedia.org); it defaults to English, so informing {{para|lang|en}} is not necessary. | *{{para|lang}} language of the Wikipedia article. It's the first two digits of the link (for example, '''de''' in de.wikipedia.org); it defaults to English, so informing {{para|lang|en}} is not necessary. | ||
Revision as of 22:19, 7 December 2020
This template is used to create an inline link to the corresponding Wikipedia article for that subject.
Syntax
{{W|1=<Wikipedia article>|2=<displayed text>|lang=<2-digit language code>}}
- or
{{w|<Wikipedia article>|<displayed text>|lang=<2-digit language code>}}
where
|1=
article's title as seen on Wikipedia. It is mandatory;|2=
optional text to be displayed in the link. If not specified, the Wikipedia title will be used;|lang=
language of the Wikipedia article. It's the first two digits of the link (for example, de in de.wikipedia.org); it defaults to English, so informing|lang=en
is not necessary.
Note that hovering the mouse over the will display a tooltip box with information about the link.
Examples
{{W|counterpoint}}
- produces:
{{W|William Smith (composer)|William Smith}}
- produces:
{{W|Franz Xaver Engelhart|lang=de}}
- produces:
Categorization
The page is categorized according to the language of the Wikipedia article: English Wikipedia links, French Wikipedia links etc.