Template:PubList: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly> | |||
{{#dpl:category=Sheet music | |||
|category={{#if:{{{2|}}}|{{{2|}}} works}} | |||
|notcategory=Works with all editions withdrawn | |||
|mode=userformat | |||
|linksto={{PAGENAME}} | |||
|namespace= | |||
|ordermethod=sortkey | |||
|include= | |||
{{#switch:{{#explode:{{{1|}}}|,|0}}|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|}}}|,|1}}|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|}}}|,|2}}|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|}}}|,|3}}|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|}}}|,|4}}|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|}}}|,|5}}|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|}}}|,|6}}|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|}}}|,|7}}|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|}}}|,|8}}|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|}}}|,|9}}|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|}}}|,|10}}|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}} | |||
|table=class="wikitable sortable",Title | |||
{{#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|}}}|,|2}}|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|}}}|,|3}}|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|}}}|,|4}}|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|}}}|,|5}}|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|}}}|,|6}}|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|}}}|,|7}}|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|}}}|,|8}}|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|}}}|,|9}}|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|}}}|,|10}}|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|}}}|,|11}}|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|}}}|,|12}}|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}} | |||
|format=,\n[[%PAGE%|%TITLE%]] | |||
|replaceintitle=/\([^\)]+\)$/, | |||
|tablesortcol= | |||
{{#ifeq:{{#explode:{{{1|}}}|,|0}}|seq|2|{{#ifeq:{{#explode:{{{1|}}}|,|1}}|seq|3|{{#ifeq:{{#explode:{{{1|}}}|,|2}}|seq|4|{{#ifeq:{{#explode:{{{1|}}}|,|3}}|seq|5|{{#ifeq:{{#explode:{{{1|}}}|,|4}}|seq|6|{{#ifeq:{{#explode:{{{1|}}}|,|5}}|seq|7|{{#ifeq:{{#explode:{{{1|}}}|,|6}}|seq|8|{{#ifeq:{{#explode:{{{1|}}}|,|7}}|seq|9|{{#ifeq:{{#explode:{{{1|}}}|,|8}}|seq|10|{{#ifeq:{{#explode:{{{1|}}}|,|9}}|seq|11|{{#ifeq:{{#explode:{{{1|}}}|,|10}}|seq|12|{{#ifeq:{{#explode:{{{1|}}}|,|11}}|seq|13|{{#ifeq:{{#explode:{{{1|}}}|,|12}}|seq|14|}}}}}}}}}}}}}}}}}}}}}}}}}} | |||
|noresultsheader= | |||
}}</includeonly><noinclude> | |||
{{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. | |||
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>{{PubList3|<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. | |||
{{{!}}class="wikitable" align="center" | |||
!color=#ddffdd{{!}}Code | |||
!color=#ddffdd{{!}}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 <tt><nowiki>{{PubList3|yr,seq,pg,first,lyr,met,vo|1795}}</nowiki></tt> on the page [[The Middlesex Harmony (Samuel Babcock)]] produces | |||
[[Image:MiddHarmScreen1.png|Thumb|800px]] | |||
etc. | |||
}} | |||
[[Category:Templates]] | |||
</noinclude> | |||
<!--==Old code (obsolete)== | |||
<includeonly>{{#dpl:category=Sheet music|mode=userformat|namespace=|order=ascending|ordermethod=sortkey|format=,\n*[[%PAGE%|%TITLE%]]<!-- | <includeonly>{{#dpl:category=Sheet music|mode=userformat|namespace=|order=ascending|ordermethod=sortkey|format=,\n*[[%PAGE%|%TITLE%]]<!-- | ||
|notcategory=Works with all editions withdrawn|include=#Editions,{Published}:1|includematch=,/\{{!}}\s*{{{2|}}}/s,|secseparators= |linksto={{PAGENAME}}|columns={{{1|3}}}|rowcolformat=width=100%|noresultsheader= }}</includeonly><noinclude> | |||
{{Doc|1= | {{Doc|1= | ||
Line 17: | Line 111: | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> | ||
--> |
Revision as of 01:17, 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: {{PubList3|<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 {{PubList3|yr,seq,pg,first,lyr,met,vo|1795}} on the page The Middlesex Harmony (Samuel Babcock) produces
etc.