Template:PubList: Difference between revisions
No edit summary |
No edit summary |
||
Line 47: | Line 47: | ||
The first column of the table is always the title of the work, without the composer's name. Following columns of the table are specified in the list in the first parameter, comma-delimited with no spaces. A second, optional parameter would give the year of publication, if necessary to distinguish different editions of the publication. | The first column of the table is always the title of the work, without the composer's name. Following columns of the table are specified in the list in the first parameter, comma-delimited with no spaces. A second, optional parameter would give the year of publication, if necessary to distinguish different editions of the publication. | ||
Syntax: <nowiki>{{ | Syntax: <nowiki>{{PubList|<code1>,<code2>,…,<coden>|YYYY}}</nowiki>, where <codei> is one of the codes below, and YYYY is the year of publication (optional). | ||
If "seq" is specified, the table sorts on that column; otherwise sorting is on work title, using sort keys as specified in <nowiki>{{DEFAULTSORT:{{NameSorter}}}}</nowiki> on the work pages. | If "seq" is specified, the table sorts on that column; otherwise sorting is on work title, using sort keys as specified in <nowiki>{{DEFAULTSORT:{{NameSorter}}}}</nowiki> on the work pages. | ||
Line 83: | Line 83: | ||
{{!}}} | {{!}}} | ||
For example, the template <tt><nowiki>{{ | For example, the template <tt><nowiki>{{PubList|yr,seq,pg,first,lyr,met,vo|1795}}</nowiki></tt> on the page [[The Middlesex Harmony (Samuel Babcock)]] produces | ||
[[Image:MiddHarmScreen1.png|Thumb|800px]] | [[Image:MiddHarmScreen1.png|Thumb|800px]] | ||
Revision as of 01:37, 14 January 2019
This template is for use on a Music publication page; it produces a table listing all the works that have links to the publication within the {{Published}} template. This table will be automatically updated.
The first column of the table is always the title of the work, without the composer's name. Following columns of the table are specified in the list in the first parameter, comma-delimited with no spaces. A second, optional parameter would give the year of publication, if necessary to distinguish different editions of the publication.
Syntax: {{PubList|<code1>,<code2>,…,<coden>|YYYY}}, where <codei> is one of the codes below, and YYYY is the year of publication (optional).
If "seq" is specified, the table sorts on that column; otherwise sorting is on work title, using sort keys as specified in {{DEFAULTSORT:{{NameSorter}}}} on the work pages.
Code | Output |
---|---|
arr | Arranger |
com | Composer |
first | First Line |
gen | Genre |
lan | Language |
lyr | Lyricist |
met | Meter |
pg | Page number(s) in publication |
seq | Sequence no. in publication |
subg | Subgenre |
vo | Number of voices |
voices | Voices |
yr | Year of publication |
For example, the template {{PubList|yr,seq,pg,first,lyr,met,vo|1795}} on the page The Middlesex Harmony (Samuel Babcock) produces
etc.