Template:MultiPubList: Difference between revisions
Jump to navigation
Jump to search
Documentation
No edit summary |
No edit summary |
||
Line 54: | Line 54: | ||
{{#switch:{{#explode:{{{1|}}}|,|11}}|seq=,data-type=number align=right¦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=,data-type=number align=right¦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=,data-type=number align=right¦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=,data-type=number align=right¦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}} | ||
|tablerow={{#ifeq:{{#explode:{{{1|}}}|,|0}}|align | |tablerow={{#ifeq:{{#explode:{{{1|}}}|,|0}}|style="data-type:number align:right"¦%%,¦%%, | ||
{{#switch:{{#explode:{{{1|}}}|,|1}}|pg=align=right¦%%|com=%%|arr=%%|first=%%|gen=%%|lan=%%|lyr=%%|met=%%|subg=%%|vo=align=right¦%%|voices=%%|yr=align=right¦%%}} | {{#switch:{{#explode:{{{1|}}}|,|1}}|pg=align=right¦%%|com=%%|arr=%%|first=%%|gen=%%|lan=%%|lyr=%%|met=%%|subg=%%|vo=align=right¦%%|voices=%%|yr=align=right¦%%}} | ||
|{{#switch:{{#explode:{{{1|}}}|,|0}}|pg=align=right¦%%|com=%%|arr=%%|first=%%|gen=%%|lan=%%|lyr=%%|met=%%|subg=%%|vo=align=right¦%%|voices=%%|yr=align=right¦%%}} | |{{#switch:{{#explode:{{{1|}}}|,|0}}|pg=align=right¦%%|com=%%|arr=%%|first=%%|gen=%%|lan=%%|lyr=%%|met=%%|subg=%%|vo=align=right¦%%|voices=%%|yr=align=right¦%%}} |
Revision as of 17:33, 19 February 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 template {{Pub}} on their work pages. This table will be automatically updated.
Syntax: {{PubList5|<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 |
---|---|
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 |
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> ¦ … |
If seq is is the first code (<code1>), sequence number appears as the first column in the table, and the table sorts on that column. If the first code is something other than seq then the first column is the work title, using sort keys as specified in {{DEFAULTSORT:{{NameSorter}}}} on the work pages.
The second parameter is required; enter the year of publication.