Difference between revisions of "Template:MultiPubList"

From ChoralWiki
Jump to navigation Jump to search
(New version, 17b)
(One intermediate revision by the same user not shown)

Revision as of 19:42, 23 June 2021


THIS TEMPLATE calls template {{MPList}}; the description below includes both.

This template is for use on a Music publication page, WHERE AT LEAST ONE WORK HAS MULTIPLE PUBLICATION CITATIONS. This template requires the use of the template {{Pub}} on all work pages. If no works in a publication have multiple publication citations, please use Template {{PubList}} instead (which uses {{Published}} on work pages).

This template produces a table listing all the works that have links to the publication within the template {{Pub}} on their work pages. This table will be automatically updated.

Syntax: {{MultiPubList|<code1>,<code2>,…,<coden>|YYYY}}

where <codei> is one of the codes below (comma-delimited, in any order), and YYYY is the year that the publication was first issued (shown on the publication page as the first parameter within template {{PubDatePlace}} (REQUIRED).
Code Output
seq Sequence no. in publication
pg Page number(s) in publication
com Composer
arr Arranger
lyr Lyricist
gen Genre
subg Subgenre
subg2 Subgenre 2
yr Year of (earliest) publication
lan Language
first First Line
instr Instruments
met Meter
vo Number of voices
voices Voices
Sample template calls Columns produced
{{MultiPubList|com,arr,gen,subg,vo,voices}} Title | Composer | Arranger | Genre | Subgenre | No. Voices | Voices
{{MultiPubList|seq,com,gen,subg,vo,voices}} Sequence | Title | Composer | Arranger | Genre | Sungrnere | No. Voices | Voices
{{MultiPubList|com,arr,subg,vo,met}} Title | Composer | Arranger | Subgenre | No. Voices | Meter
{{MultiPubList|first,gen,subg,arr,vo}} Title | First Line | Subgenre | Arranger | No. Voices

Columns in the table depend on what the first code (<code1>) is:

<code1> Columns (* = sorted column)
seq* No. ¦ Title ¦ <code2> ¦ <code3> ¦ …
(other) Title* ¦ <code1> ¦ <code2> ¦ …

Sorting. If seq is is the first code (<code1>), sequence number appears as the first column in the table, and the table is sorted (numerically) on sequence number. If no= is specified anything but an number, the table will not sort correctly; please use another first code. Please do not click the sort arrows for the sequence column; this will cause the column to sort alphabetically (1,10,11,12,13,14,15,16,17,18,19,2,20,21,…).

If the first code is something other than seq then the first column is the work title, in which case the table is sorted by work Title, using sort keys as specified in {{DEFAULTSORT:{{NameSorter}}}} on the work pages.

Guidelines for title of a Music publication page can be found here.

The second parameter is required; enter the year of publication.

IF THERE ARE MULTIPLE BOOKS IN THE SAME PUBLICATION, such as Editions, Volumes, Parts, etc.: Please use the Template {{Volumes}} – see the description of that template for more details. In that case, a command such as {{MultiPubList|yr,com,lyr,gen,subg,vo}} (notice no second parameter) will yield several tables, one for each book specified in the {{Volumes}} command.

(Version 17b – 2020-11-22)