Template:IMSLP2: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly>[[imslp:{{{id|{{{1}}}}}}|{{{cname|{{{2|{{PAGENAME}}}}}}}}]]{{#if:{{{id2|}}}|, [[imslp:{{{id2}}}|{{{cname2}}}]]}}{{#if:{{{id3|}}}|, [[imslp:{{{id3}}}|{{{cname3}}}]]}}{{#if:{{{id4|}}}|, [[imslp:{{{id4}}}|{{{cname4}}}]]}} at the [[ChoralWiki:Petrucci Music Library (IMSLP)|Petrucci Music Library]] (IMSLP)</includeonly><noinclude><!-- | <includeonly>[[imslp:{{{id|{{{1}}}}}}|{{{cname|{{{2|{{PAGENAME}}}}}}}}]]{{#if:{{{id2|}}}|, [[imslp:{{{id2}}}|{{{cname2}}}]]}}{{#if:{{{id3|}}}|, [[imslp:{{{id3}}}|{{{cname3}}}]]}}{{#if:{{{id4|}}}|, [[imslp:{{{id4}}}|{{{cname4}}}]]}} at the [[ChoralWiki:Petrucci Music Library (IMSLP)|Petrucci Music Library]] (IMSLP)</includeonly><noinclude><!-- | ||
-->{{ | -->{{Doc|text= | ||
This template | This template creates links to one or more work pages at the [[ChoralWiki:Petrucci Music Library (IMSLP)|Petrucci Music Library]] (IMSLP). A companion template for linking to IMSLP composer categories is available as [[template:IMSLP|IMSLP]]. | ||
===Usage=== | ===Usage=== | ||
{{tl|IMSLP2|2=id=name of the work as specified at IMSLP|3=cname=name to be displayed}} | {{tl|IMSLP2|2=id=name of the work as specified at IMSLP|3=cname=name to be displayed}} | ||
:{{para|id}} is the page name at IMSLP. | :{{para|id}} is the page name at IMSLP. | ||
:{{para|cname}} is an optional parameter for the name to be displayed. | :{{para|cname}} is an optional parameter for the name to be displayed. | ||
:In the basic syntax, {{para|id}} and {{para|cname}} are optional and may be left out: | :In the basic syntax, {{para|id}} and {{para|cname}} are optional and may be left out: | ||
Line 35: | Line 35: | ||
===See also=== | ===See also=== | ||
*{{tl|IMSLP}} | *{{tl|IMSLP}} | ||
*{{tl| | *{{tl|IMSLP3}} | ||
}} | }} | ||
[[Category:External link templates]] | [[Category:External link templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 17:47, 3 June 2020
This template creates links to one or more work pages at the Petrucci Music Library (IMSLP). A companion template for linking to IMSLP composer categories is available as IMSLP.
Usage
{{IMSLP2|id=name of the work as specified at IMSLP|cname=name to be displayed}}
|id=
is the page name at IMSLP.|cname=
is an optional parameter for the name to be displayed.- In the basic syntax,
|id=
and|cname=
are optional and may be left out:
{{IMSLP2|name of the work as specified at IMSLP|name to be displayed}}
Up to 4 work pages can be linked with the optional parameters |id2=
|cname2=
; |id3=
|cname3=
; |id4=
|cname4=
.
Examples
Single work
- Code
{{IMSLP2|id=Songs of the Sea, Op.91 (Stanford, Charles Villiers)|cname=''Songs of the Sea''}}
- Result
Songs of the Sea at the Petrucci Music Library (IMSLP)
Multiple works
- Code
{{IMSLP2
|id=Jerusalem (Parry, Charles Hubert Hastings)|cname=''Jerusalem''
|id2=Voces Clamantium (Parry, Charles Hubert Hastings)|cname2=''Voces Clamantium''
|id3=English Lyrics (Parry, Charles Hubert Hastings)|cname3=''English Lyrics''
|id4=England (Parry, Charles Hubert Hastings)|cname=''England'' by C. Hubert H. Parry}}
- Result
Jerusalem, Voces Clamantium, English Lyrics, England by C. Hubert H. Parry at the Petrucci Music Library (IMSLP)