Template:WikipediaLink: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(added documentation)
(changed so that the displayed text is always = PAGENAME)
Line 1: Line 1:
View [[wikipedia:Main_Page|Wikipedia]] article for '''[[wikipedia:{{{1|{{PAGENAME}}}}}|{{{1|{{PAGENAME}}}}}]]'''.<noinclude>
View [[wikipedia:Main_Page|Wikipedia]] article for '''[[wikipedia:{{{1|{{PAGENAME}}}}}|{{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">
<div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #3399ff; padding: 1em 1em 1em 1em; background-color:#ddffdd">
<center><big>'''Documentation'''</big></center>
<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.
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.


'''For example:''' <tt><nowiki>{{WikipediaLink}}</nowiki></tt>
;Examples:
*<tt><nowiki>{{WikipediaLink}}</nowiki></tt>
:which produces:
::{{WikipediaLink}}
 
*<tt><nowiki>{{WikipediaLink|William Smith (composer)}}</nowiki></tt>
:which produces:
::{{WikipediaLink|William Smith (composer)}}


'''or:''' <tt><nowiki>{{WikipediaLink|William Smith (composer)}}</nowiki></tt>
</div>[[Category:Templates|{{PAGENAME}}]]</noinclude>
</div>[[Category:Templates|{{PAGENAME}}]]</noinclude>

Revision as of 17:22, 16 December 2008

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.