Difference between revisions of "Template:IMSLP/doc"

From blackwiki
Jump to navigation Jump to search
imported>Capmo
(descr)
imported>Primefac
(updating doc post-merge)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
This template is for linking to composer categories at the International Music Score Library Project (IMSLP). A companion template for linking to IMSLP work pages is available as {{Tl|IMSLP2}}.
+
This template is for linking to composer categories and work pages at the International Music Score Library Project (IMSLP).
  
 
===Usage===
 
===Usage===
  <nowiki>{{IMSLP|id=composer's name as specified at IMSLP|cname=name to be displayed}}</nowiki>
+
  <nowiki>{{IMSLP|author=composer's name as specified at IMSLP|cname=name to be displayed}}</nowiki>
{{Para|id}} is the part behind the colon of the IMSLP composer category page.<br />
+
{{Para|author}} is the part behind the colon of the IMSLP composer category page.<br />
 
{{Para|cname}} is an optional parameter for the name to be displayed; if not set, the page name is used.<br />
 
{{Para|cname}} is an optional parameter for the name to be displayed; if not set, the page name is used.<br />
 
{{Para|descr}} is an optional parameter for customizing the text displayed. If not informed, "Free scores" is used.
 
{{Para|descr}} is an optional parameter for customizing the text displayed. If not informed, "Free scores" is used.
 +
 +
<nowiki>{{IMSLP|work=name of the work as specified at IMSLP|cname=name to be displayed}}</nowiki>
 +
{{Para|work}} is the page name at IMSLP.<br />
 +
{{Para|cname}} is an optional parameter for the name to be displayed.<br />
 +
{{Para|descr}} is an optional parameter for customizing the text displayed. If not informed, "Scores" is used.<br />
  
 
===Examples===
 
===Examples===
 +
====Author====
 
;1. Code
 
;1. Code
<tt><nowiki>{{IMSLP|id=Mozart, Wolfgang Amadeus|cname=Wolfgang Amadeus Mozart}}</nowiki></tt>
+
<tt><nowiki>{{IMSLP|author=Mozart, Wolfgang Amadeus|cname=Wolfgang Amadeus Mozart}}</nowiki></tt>
 
:or
 
:or
 
<tt><nowiki>{{IMSLP|Mozart, Wolfgang Amadeus}}</nowiki></tt>
 
<tt><nowiki>{{IMSLP|Mozart, Wolfgang Amadeus}}</nowiki></tt>
 
;Result
 
;Result
{{IMSLP|id=Mozart, Wolfgang Amadeus|cname=Wolfgang Amadeus Mozart}}
+
{{IMSLP|author=Mozart, Wolfgang Amadeus|cname=Wolfgang Amadeus Mozart}}
 
;2. Code
 
;2. Code
<tt><nowiki>{{IMSLP|id=Dvořák, Antonín|cname=Antonín Dvořák}}</nowiki></tt>
+
<tt><nowiki>{{IMSLP|author=Dvořák, Antonín|cname=Antonín Dvořák}}</nowiki></tt>
 
:or
 
:or
 
<tt><nowiki>{{IMSLP|Dvořák, Antonín}}</nowiki></tt>
 
<tt><nowiki>{{IMSLP|Dvořák, Antonín}}</nowiki></tt>
 
;Result
 
;Result
{{IMSLP|id=Dvořák, Antonín|cname=Antonín Dvořák}}
+
{{IMSLP|author=Dvořák, Antonín|cname=Antonín Dvořák}}
 +
 
 +
====Single work====
 +
;Code
 +
<tt><nowiki>{{IMSLP|work=Le Nozze di Figaro, K.492 (Mozart, Wolfgang Amadeus)|cname=''The Marriage of Figaro''}}</nowiki></tt>
 +
;Result
 +
{{IMSLP|work=Le Nozze di Figaro, K.492 (Mozart, Wolfgang Amadeus)|cname=''The Marriage of Figaro''}}
 +
 
 +
====Multiple works====
 +
;Code
 +
<tt><nowiki>{{IMSLP</nowiki><br /><nowiki>
 +
|work=Piano Trio No.1, Op.1 No.1 (Beethoven, Ludwig van)|cname=Piano Trio No. 1</nowiki><br /><nowiki>
 +
|work2=Piano Trio No.2, Op.1 No.2 (Beethoven, Ludwig van)|cname2=Piano Trio No. 2</nowiki><br /><nowiki>
 +
|work3=Piano Trio No.3, Op.1 No.3 (Beethoven, Ludwig van)|cname3=Piano Trio No. 3 by Ludwig van Beethoven}}</nowiki></tt>
 +
;Result
 +
{{IMSLP
 +
|work=Piano Trio No.1, Op.1 No.1 (Beethoven, Ludwig van)|cname=Piano Trio No. 1
 +
|work2=Piano Trio No.2, Op.1 No.2 (Beethoven, Ludwig van)|cname2=Piano Trio No. 2
 +
|work3=Piano Trio No.3, Op.1 No.3 (Beethoven, Ludwig van)|cname3=Piano Trio No. 3 by Ludwig van Beethoven}}
  
 
===See also===
 
===See also===
*[[:Template:IMSLP2]]
 
  
 
<includeonly>
 
<includeonly>

Revision as of 17:02, 10 February 2016

This template is for linking to composer categories and work pages at the International Music Score Library Project (IMSLP).

Usage

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

|author= is the part behind the colon of the IMSLP composer category page.
|cname= is an optional parameter for the name to be displayed; if not set, the page name is used.
|descr= is an optional parameter for customizing the text displayed. If not informed, "Free scores" is used.

{{IMSLP|work=name of the work as specified at IMSLP|cname=name to be displayed}}

|work= is the page name at IMSLP.
|cname= is an optional parameter for the name to be displayed.
|descr= is an optional parameter for customizing the text displayed. If not informed, "Scores" is used.

Examples

Author

1. Code

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

or

{{IMSLP|Mozart, Wolfgang Amadeus}}

Result

Free scores by Wolfgang Amadeus Mozart at the International Music Score Library Project (IMSLP)

2. Code

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

or

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

Result

Free scores by Antonín Dvořák at the International Music Score Library Project (IMSLP)

Single work

Code

{{IMSLP|work=Le Nozze di Figaro, K.492 (Mozart, Wolfgang Amadeus)|cname=''The Marriage of Figaro''}}

Result

The Marriage of Figaro: Scores at the International Music Score Library Project

Multiple works

Code

{{IMSLP
|work=Piano Trio No.1, Op.1 No.1 (Beethoven, Ludwig van)|cname=Piano Trio No. 1
|work2=Piano Trio No.2, Op.1 No.2 (Beethoven, Ludwig van)|cname2=Piano Trio No. 2
|work3=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: Scores at the International Music Score Library Project

See also