Template:IMSLP: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(changed to include website's full name)
(first param defaults to id)
Line 1: Line 1:
<includeonly>[[IMSLP:Category:{{{id}}}|Free scores by {{{cname|{{PAGENAME}}}}}]] in the [[ChoralWiki:IMSLP / Petrucci Music Library|Petrucci Music Library]] (IMSLP)</includeonly><noinclude><!--
<includeonly>[[IMSLP:Category:{{{id|{{{1}}}}}}|Free scores by {{{cname|{{PAGENAME}}}}}]] in the [[ChoralWiki:IMSLP / Petrucci Music Library|Petrucci Music Library]] (IMSLP)</includeonly><noinclude><!--
-->{{DisplayBox|bgcolor=g|text=
-->{{DisplayBox|bgcolor=g|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]].
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]].
Line 5: Line 5:
===Usage===
===Usage===
  <nowiki>{{IMSLP|id=composer's name as specified at IMSLP|cname=name to be displayed}}</nowiki>
  <nowiki>{{IMSLP|id=composer's name as specified at IMSLP|cname=name to be displayed}}</nowiki>
<code>{{!}}id=</code> is the part behind the colon of the IMSLP composer category page.<br />
<code>{{!}}id=</code> is the part behind the colon of the IMSLP composer category page. ('''id=''' is optional)<br />
<code>{{!}}cname=</code> is an optional parameter for the name to be displayed; if not set, the page name is used.
<code>{{!}}cname=</code> is an optional parameter for the name to be displayed; if not set, the page name is used.



Revision as of 17:50, 7 April 2012

This template is for linking to composer categories at the Petrucci Music Library (IMSLP). A companion template for linking to IMSLP work pages is available as IMSLP2.

Usage

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

|id= is the part behind the colon of the IMSLP composer category page. (id= is optional)
|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

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

Code

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

Result

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

See also