Template:IMSLP: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(first param defaults to id)
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>[[IMSLP:Category:{{{id|{{{1}}}}}}|Free scores by {{{cname|{{PAGENAME}}}}}]] in the [[ChoralWiki:IMSLP / Petrucci Music Library|Petrucci Music Library]] (IMSLP)</includeonly><noinclude><!--
<includeonly>[[IMSLP:Category:{{{id|{{{1|{{LastNameFirst}}}}}}}}|Works by {{{cname|{{PAGENAME}}}}}]] in the [[ChoralWiki:Petrucci Music Library (IMSLP)|Petrucci Music Library]] (IMSLP)</includeonly><noinclude><!--
-->{{DisplayBox|bgcolor=g|text=
-->{{Doc|text=
This template is for linking to composer categories at the [[ChoralWiki:IMSLP / Petrucci Music Library|Petrucci Music Library]] (IMSLP). A companion template for linking to IMSLP work pages is available as [[template:IMSLP2|IMSLP2]].
A template for linking to composer categories at the [[ChoralWiki:Petrucci Music Library (IMSLP)|Petrucci Music Library]] (IMSLP). A companion template for linking to IMSLP work pages is available as {{tl|IMSLP2}}. Another one for linking to specific editions is available at {{tl|IMSLP3}}


===Usage===
===Usage===
<nowiki>{{IMSLP|id=composer's name as specified at IMSLP|cname=name to be displayed}}</nowiki>
{{tl|IMSLP|2=id=composer's name as specified at IMSLP|3=cname=name to be displayed}}</nowiki>
<code>{{!}}id=</code> is the part behind the colon of the IMSLP composer category page. ('''id=''' is optional)<br />
:{{para|id}} is the part behind the colon of the IMSLP composer category page. ('''id=''' is optional). If the composer name on CPDL and on IMSLP coincide (except for the last surname coming first), then this parameter is not required. Example: CPDL's [[Johann Sebastian Bach]] coincides with IMSLP's [[imslp:category:Bach, Johann Sebastian|Bach, Johann Sebastian]].
<code>{{!}}cname=</code> is an optional parameter for the name to be displayed; if not set, the page name is used.
:{{para|cname}} is an optional parameter for the name to be displayed; if not set, the page name is used.


===Examples===
===Examples===
Line 20: Line 20:


===See also===
===See also===
*[[:Template:IMSLP2]]
*{{tl|IMSLP2}}
*{{tl|IMSLP3}}
*{{tl|IMSLPLink}}
}}
}}
[[Category:Templates|{{PAGENAME}}]]
[[Category:External link templates]]
</noinclude>
</noinclude>

Latest revision as of 18:13, 3 June 2020

Documentation

A template for linking to composer categories at the Petrucci Music Library (IMSLP). A companion template for linking to IMSLP work pages is available as {{IMSLP2}}. Another one for linking to specific editions is available at {{IMSLP3}}

Usage

{{IMSLP|id=composer's name as specified at IMSLP|cname=name to be displayed}}</nowiki>

|id= is the part behind the colon of the IMSLP composer category page. (id= is optional). If the composer name on CPDL and on IMSLP coincide (except for the last surname coming first), then this parameter is not required. Example: CPDL's Johann Sebastian Bach coincides with IMSLP's Bach, Johann Sebastian.
|cname= is an optional parameter for the name to be displayed; if not set, the page name is used.

Examples

Code

{{IMSLP|id=Mozart, Wolfgang Amadeus|cname=Wolfgang Amadeus Mozart}}

Result

Works by Wolfgang Amadeus Mozart in the Petrucci Music Library (IMSLP)

Code

{{IMSLP|id=Dvořák, Antonín|cname=Antonín Dvořák}}

Result

Works by Antonín Dvořák in the Petrucci Music Library (IMSLP)

See also