Template:WikipediaLink: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
mNo edit summary
(added categorization for easier tracking)
Line 1: Line 1:
<p>{{#if:{{{lang|}}}
<p>{{#if:{{{lang|}}}
|View the {{LangName|{{{lang}}}}} [[wikipedia:{{{lang}}}:{{{1|{{PAGENAME}}}}}|Wikipedia article]] for {{{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>)
|View the {{LangName|{{{lang}}}}} [[wikipedia:{{{lang}}}:{{{1|{{PAGENAME}}}}}|Wikipedia article]] for {{{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>) [[Category:Non-English Wikipedia links|{{{lang}}}]]
|View [[wikipedia:{{{1|{{PAGENAME}}}}}|Wikipedia article]] for {{{2|{{PAGENAME}}}}}.
|View [[wikipedia:{{{1|{{PAGENAME}}}}}|Wikipedia article]] for {{{2|{{PAGENAME}}}}}. [[Category:English Wikipedia links]]
}}</p><noinclude>
}}</p><noinclude>
{{prot-temp}}<br>
{{prot-temp}}<br>

Revision as of 15:45, 7 August 2013

View Wikipedia article for WikipediaLink.


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 Wikipedia article for WikipediaLink.

{{WikipediaLink|William Smith (composer)}}

which produces:

View Wikipedia article for WikipediaLink.

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

which produces:

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