Difference between revisions of "Template:WikipediaLink"

From ChoralWiki
Jump to navigation Jump to search
m (language name inside of link)
(one more example)
Line 1: Line 1:
<p>{{#if:{{{lang|}}}
+
<includeonly><p>{{#if:{{{lang|}}}
 
|View the [[wikipedia:{{{lang}}}:{{{1|{{PAGENAME}}}}}|{{LangName|{{{lang}}}}} Wikipedia article]] on {{{2|{{PAGENAME}}}}}. (<small>[http://translate.google.com/translate?sl={{{lang}}}&tl=en&u={{urlencode:http://{{{lang}}}.wikipedia.org/wiki/{{{1|{{PAGENAME}}}}} }} English translation] by Google</small>) {{#ifeq:{{NAMESPACE}}|Template||[[Category:Non-English Wikipedia links|{{{lang}}}]]}}
 
|View the [[wikipedia:{{{lang}}}:{{{1|{{PAGENAME}}}}}|{{LangName|{{{lang}}}}} Wikipedia article]] on {{{2|{{PAGENAME}}}}}. (<small>[http://translate.google.com/translate?sl={{{lang}}}&tl=en&u={{urlencode:http://{{{lang}}}.wikipedia.org/wiki/{{{1|{{PAGENAME}}}}} }} English translation] by Google</small>) {{#ifeq:{{NAMESPACE}}|Template||[[Category:Non-English Wikipedia links|{{{lang}}}]]}}
 
|View the [[wikipedia:{{{1|{{PAGENAME}}}}}|Wikipedia article]] on {{{2|{{PAGENAME}}}}}. {{#ifeq:{{NAMESPACE}}|Template||[[Category:English Wikipedia links]]}}
 
|View the [[wikipedia:{{{1|{{PAGENAME}}}}}|Wikipedia article]] on {{{2|{{PAGENAME}}}}}. {{#ifeq:{{NAMESPACE}}|Template||[[Category:English Wikipedia links]]}}
}}</p><noinclude>
+
}}</p></includeonly><noinclude>
 
{{prot-temp}}<br>
 
{{prot-temp}}<br>
 
{{DisplayBox|title=Documentation|text=
 
{{DisplayBox|title=Documentation|text=
Line 15: Line 15:
 
:which produces:
 
:which produces:
 
{{WikipediaLink|William Smith (composer)}}
 
{{WikipediaLink|William Smith (composer)}}
 +
 +
{{tl|WikipediaLink|William Smith (composer)|William Smith}}
 +
:which produces:
 +
{{WikipediaLink|William Smith (composer)|William Smith}}
  
 
{{tl|WikipediaLink|Franz Xaver Engelhart|lang{{=}}de‎‎}}
 
{{tl|WikipediaLink|Franz Xaver Engelhart|lang{{=}}de‎‎}}

Revision as of 14:59, 7 August 2015


Documentation

This template is used on composer and lyricist pages to output a link to the Wikipedia article for that individual. It may simply be used without any variables or, if the spelling of the page title of the Wikipedia article differs from the CPDL page, a single variable should be used to specify the Wikipedia article title. In this latter case the name displayed will be that of the page title instead of the variable informed.

Examples

{{WikipediaLink}}

which produces:

View the Wikipedia article on WikipediaLink.

{{WikipediaLink|William Smith (composer)}}

which produces:

View the Wikipedia article on WikipediaLink.

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

which produces:

View the Wikipedia article on William Smith.

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

which produces:

View the German Wikipedia article on WikipediaLink. (English translation by Google)