Template:PubList: Difference between revisions
No edit summary |
No edit summary |
||
Line 21: | Line 21: | ||
{{#switch:{{#explode:{{{1|}}}|,|11}}|seq=,{Published}:no|pg=,{Published}:pg|com=,{Composer}:1|arr=,{Arranger}:1|first=,{FirstLine}:1|gen=,{Genre}:1|lan=,{Language}:1|lyr=,{Lyricist}:1|met=,{Meter}:1|subg=,{Genre}:2|vo=,{Voicing}:1|voices=,{Voicing}:2|yr=,{Published}:1}} | {{#switch:{{#explode:{{{1|}}}|,|11}}|seq=,{Published}:no|pg=,{Published}:pg|com=,{Composer}:1|arr=,{Arranger}:1|first=,{FirstLine}:1|gen=,{Genre}:1|lan=,{Language}:1|lyr=,{Lyricist}:1|met=,{Meter}:1|subg=,{Genre}:2|vo=,{Voicing}:1|voices=,{Voicing}:2|yr=,{Published}:1}} | ||
{{#switch:{{#explode:{{{1|}}}|,|12}}|seq=,{Published}:no|pg=,{Published}:pg|com=,{Composer}:1|arr=,{Arranger}:1|first=,{FirstLine}:1|gen=,{Genre}:1|lan=,{Language}:1|lyr=,{Lyricist}:1|met=,{Meter}:1|subg=,{Genre}:2|vo=,{Voicing}:1|voices=,{Voicing}:2|yr=,{Published}:1}} | {{#switch:{{#explode:{{{1|}}}|,|12}}|seq=,{Published}:no|pg=,{Published}:pg|com=,{Composer}:1|arr=,{Arranger}:1|first=,{FirstLine}:1|gen=,{Genre}:1|lan=,{Language}:1|lyr=,{Lyricist}:1|met=,{Meter}:1|subg=,{Genre}:2|vo=,{Voicing}:1|voices=,{Voicing}:2|yr=,{Published}:1}} | ||
|table=class="wikitable sortable",Title | |table=class="wikitable sortable",Title on CPDL | ||
{{#switch:{{#explode:{{{1|}}}|,|0}}|seq=,No.|pg=,Page|com=,Composer|arr=,Arranger|first=,First Line|gen=,Genre|lan=,Language|lyr=,Lyricist|met=,Meter|subg=,Subgenre|vo=,Vo.|voices=,Voices|yr=,Year}} | {{#switch:{{#explode:{{{1|}}}|,|0}}|seq=,No.|pg=,Page|com=,Composer|arr=,Arranger|first=,First Line|gen=,Genre|lan=,Language|lyr=,Lyricist|met=,Meter|subg=,Subgenre|vo=,Vo.|voices=,Voices|yr=,Year}} | ||
{{#switch:{{#explode:{{{1|}}}|,|1}}|seq=,No.|pg=,Page|com=,Composer|arr=,Arranger|first=,First Line|gen=,Genre|lan=,Language|lyr=,Lyricist|met=,Meter|subg=,Subgenre|vo=,Vo.|voices=,Voices|yr=,Year}} | {{#switch:{{#explode:{{{1|}}}|,|1}}|seq=,No.|pg=,Page|com=,Composer|arr=,Arranger|first=,First Line|gen=,Genre|lan=,Language|lyr=,Lyricist|met=,Meter|subg=,Subgenre|vo=,Vo.|voices=,Voices|yr=,Year}} | ||
Line 43: | Line 43: | ||
{{Doc|1= | {{Doc|1= | ||
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 {{tl|Published}} template. This table will be automatically updated. | 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 {{tl|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. | ||
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>{{PubList|<code1>,<code2>,…,<coden>|YYYY}}</nowiki>, where <codei> is one of the codes below, and YYYY is the year of publication (optional). | Syntax: <nowiki>{{PubList|<code1>,<code2>,…,<coden>|YYYY}}</nowiki>, where <codei> is one of the codes below, and YYYY is the year of publication (optional). | ||
Line 82: | Line 80: | ||
{{!}}- | {{!}}- | ||
{{!}}} | {{!}}} | ||
Correct listing by this template requires that each works page contain a link to the publication page on which the template resides, usually within the {{tl|Published}} template. IF THERE ARE MORE THAN ONE PUBLICATION LISTED ON ANY WORK PAGE, then the template {{tl|MultiPubList}} should be used instead. | |||
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 | 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 |
Revision as of 23:21, 13 March 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 |
Correct listing by this template requires that each works page contain a link to the publication page on which the template resides, usually within the {{Published}} template. IF THERE ARE MORE THAN ONE PUBLICATION LISTED ON ANY WORK PAGE, then the template {{MultiPubList}} should be used instead.
For example, the template {{PubList|yr,seq,pg,first,lyr,met,vo|1795}} on the page The Middlesex Harmony (Samuel Babcock) produces
etc.