Template:IMSLP2: Difference between revisions
(new, based on wikipedia:Template:IMSLP2) |
(cname made optional) |
||
Line 1: | Line 1: | ||
<includeonly>[[imslp:{{{id}}}|{{{cname}}}]]{{#if:{{{id2|}}}|, [[imslp:{{{id2}}}|{{{cname2}}}]]}}{{#if:{{{id3|}}}|, [[imslp:{{{id3}}}|{{{cname3}}}]]}}{{#if:{{{id4|}}}|, [[imslp:{{{id4}}}|{{{cname4}}}]]}}: Free scores at the [[ChoralWiki:IMSLP.org|Petrucci Music Library]] (IMSLP).</includeonly><noinclude> | <includeonly>[[imslp:{{{id}}}|{{{cname|{{PAGENAME}}}}}]]{{#if:{{{id2|}}}|, [[imslp:{{{id2}}}|{{{cname2}}}]]}}{{#if:{{{id3|}}}|, [[imslp:{{{id3}}}|{{{cname3}}}]]}}{{#if:{{{id4|}}}|, [[imslp:{{{id4}}}|{{{cname4}}}]]}}: Free scores at the [[ChoralWiki:IMSLP.org|Petrucci Music Library]] (IMSLP).</includeonly><noinclude> | ||
{{DisplayBox|bgcolor=g|text= | {{DisplayBox|bgcolor=g|text= | ||
This template is for linking to work pages at the International Music Score Library Project (IMSLP). A companion template for linking to IMSLP composer categories is available as [[template:IMSLP|IMSLP]]. | This template is for linking to work pages at the International Music Score Library Project (IMSLP). A companion template for linking to IMSLP composer categories is available as [[template:IMSLP|IMSLP]]. |
Revision as of 20:01, 18 February 2010
This template is for linking to work pages at the International Music Score Library Project (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.
Up to 4 work pages can be linked with the optional parameters |id2=
|cname2=
; |id3=
|cname3=
; |id4=
|cname4=
.
Examples
Single work
- Code
{{IMSLP2|id=Le Nozze di Figaro, K.492 (Mozart, Wolfgang Amadeus)|cname=''The Marriage of Figaro''}}
- Result
The Marriage of Figaro: Free scores at the Petrucci Music Library (IMSLP).
Multiple works
- Code
{{IMSLP2
|id=Piano Trio No.1, Op.1 No.1 (Beethoven, Ludwig van)|cname=Piano Trio No. 1
|id2=Piano Trio No.2, Op.1 No.2 (Beethoven, Ludwig van)|cname2=Piano Trio No. 2
|id3=Piano Trio No.3, Op.1 No.3 (Beethoven, Ludwig van)|cname3=Piano Trio No. 3 by Ludwig van Beethoven}}
- Result
Piano Trio No. 1, Piano Trio No. 2, Piano Trio No. 3 by Ludwig van Beethoven: Free scores at the Petrucci Music Library (IMSLP).