Template:WikipediaLink: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
m (removing registered wordmark)
(updating doc)
Line 1: Line 1:
* View {{#if:{{{lang|}}}|the {{LangName|{{{lang}}}}} }} Wikipedia article for '''[[wikipedia:{{{lang|}}}:{{{1|{{PAGENAME}}}}}|{{{2|{{PAGENAME}}}}}]]'''.<noinclude>
* View {{#if:{{{lang|}}}|the {{LangName|{{{lang}}}}} }} Wikipedia article for '''[[wikipedia:{{{lang|}}}:{{{1|{{PAGENAME}}}}}|{{{2|{{PAGENAME}}}}}]]'''.<noinclude>
{{prot-temp}}<br>
{{prot-temp}}<br>
<div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #3399ff; padding: 1em 1em 1em 1em; background-color:#ddffdd">
{{DisplayBox|title=Documentation|text=
<center><big>'''Documentation'''</big></center>
 
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.
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:
;Examples:
*<tt><nowiki>{{WikipediaLink}}</nowiki></tt>
{{tl|WikipediaLink}}
:which produces:
:which produces:
::{{WikipediaLink}}
{{WikipediaLink}}


*<tt><nowiki>{{WikipediaLink|William Smith (composer)}}</nowiki></tt>
{{tl|WikipediaLink|William Smith (composer)}}
:which produces:
:which produces:
::{{WikipediaLink|William Smith (composer)}}
{{WikipediaLink|William Smith (composer)}}


*<tt><nowiki>{{WikipediaLink|Franz Xaver Engelhart|lang=de‎‎}}</nowiki></tt>
{{tl|WikipediaLink|Franz Xaver Engelhart|lang{{=}}de‎‎}}
:which produces:
:which produces:
::{{WikipediaLink|Franz Xaver Engelhart|lang=de}}
{{WikipediaLink|Franz Xaver Engelhart|lang=de}}
 
}}
</div>[[Category:Templates|{{PAGENAME}}]]</noinclude>
[[Category:External link templates]]</noinclude>

Revision as of 23:55, 17 April 2013


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:

{{WikipediaLink|William Smith (composer)}}

which produces:

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

which produces: