Template:W: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(nowrap)
mNo edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{lang|}}}<!--
<includeonly>{{#if:{{{lang|}}}<!--
-->|[[wikipedia:{{{lang}}}:{{{1}}}|<span style="text-decoration: underline; text-decoration-style: dashed;">{{{2|{{{1}}}}}}</span>]]<span style="white-space: nowrap;">{{spc|2}}<sup>[[File:Wikipedia's W.svg|12px|link=|Link to the {{LangName|{{{lang}}}}} Wikipedia article]]</sup></span>{{#ifeq:{{NAMESPACE}}|Template||[[Category:Non-English Wikipedia links|{{{lang}}}]]}}<!--
-->|[[wikipedia:{{{lang}}}:{{{1}}}|<span style="text-decoration: underline; text-decoration-style: dashed;">{{{2|{{{1}}}}}}</span>]]<span style="white-space: nowrap;">{{spc|2}}<sup>[[File:Wikipedia's W.svg|12px|link=|Link to the {{LangName|{{{lang}}}}} Wikipedia article]]</sup></span>{{#ifeq:{{NAMESPACE}}|Template||[[Category:{{LangName|{{{lang}}}}} Wikipedia links]]}}<!--
-->|[[wikipedia:{{{1}}}|<span style="text-decoration: underline; text-decoration-style: dashed;">{{{2|{{{1}}}}}}</span>]]<span style="white-space: nowrap;">{{spc|2}}<sup>[[File:Wikipedia's W.svg|12px|link=|Link to the English Wikipedia article]]</sup></span>{{#ifeq:{{NAMESPACE}}|Template||[[Category:English Wikipedia links]]}}<!--
-->|[[wikipedia:{{{1}}}|<span style="text-decoration: underline; text-decoration-style: dashed;">{{{2|{{{1}}}}}}</span>]]<span style="white-space: nowrap;">{{spc|2}}<sup>[[File:Wikipedia's W.svg|12px|link=|Link to the English Wikipedia article]]</sup></span>{{#ifeq:{{NAMESPACE}}|Template||[[Category:English Wikipedia links]]}}<!--
-->}}</includeonly><noinclude>
-->}}</includeonly><noinclude>
Line 6: Line 6:
This template is used to create an '''inline link''' to the corresponding Wikipedia article for that subject.
This template is used to create an '''inline link''' to the corresponding Wikipedia article for that subject.


;Syntax:
===Syntax===
{{tl|W|1{{=}}<''Wikipedia article''>|2{{=}}<''displayed text''>|lang{{=}}<''2-digit language code''>}}
:or
{{tl|w|<''Wikipedia article''>|<''displayed text''>|lang{{=}}<''2-digit language code''>}}
 
where
*{{para|1}} the {{w|Wikipedia:Article titles|Wikipedia article title}}. It is mandatory;
*{{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); when not specified, the template defaults to English.
 
Note that hovering the mouse over the <sup>[[File:Wikipedia's W.svg|12px|link=|]]</sup> will display a tooltip box with information about the link and the article's language.
 
===Examples===
{{tl|W|counterpoint}}
{{tl|W|counterpoint}}
:which produces:
:produces:
{{W|counterpoint}}
{{W|counterpoint}}


{{tl|W|William Smith (composer)|William Smith}}
{{tl|W|William Smith (composer)|William Smith}}
:which produces:
:produces:
{{W|William Smith (composer)|William Smith}}
{{W|William Smith (composer)|William Smith}}


{{tl|W|Franz Xaver Engelhart|lang{{=}}de‎‎}}
{{tl|W|Franz Xaver Engelhart|lang{{=}}de‎‎}}
:which produces:
:produces:
{{W|Franz Xaver Engelhart|lang=de}}
{{W|Franz Xaver Engelhart|lang=de}}


===Categorization===
The page is categorized according to the language of the Wikipedia article: {{CiteCat|English Wikipedia links}}, {{CiteCat|French Wikipedia links}} etc.


;Categorization
===See also===
The page is categorized according to the language of the Wikipedia article: {{CiteCat|English Wikipedia links}} or {{CiteCat|Non-English Wikipedia links}}
 
 
;See also
*[[Template:WikipediaLink]]
*[[Template:WikipediaLink]]
}}
}}
[[Category:External link templates]]</noinclude>
[[Category:External link templates]]</noinclude>

Latest revision as of 00:37, 8 December 2020


Documentation

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= the Wikipedia article titleLink to the English Wikipedia article. 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); when not specified, the template defaults to English.

Note that hovering the mouse over the Wikipedia's W.svg will display a tooltip box with information about the link and the article's language.

Examples

{{W|counterpoint}}

produces:

counterpointLink to the English Wikipedia article

{{W|William Smith (composer)|William Smith}}

produces:

William SmithLink to the English Wikipedia article

{{W|Franz Xaver Engelhart|lang=de‎‎}}

produces:

Franz Xaver EngelhartLink to the German Wikipedia article

Categorization

The page is categorized according to the language of the Wikipedia article: English Wikipedia links, French Wikipedia links etc.

See also