Template:PubList: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
No edit summary
(Made this template obsolete and unusable)
 
(17 intermediate revisions by the same user not shown)
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={Pub}:no|pg={Pub}: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={Pub}:2}}
{{#switch:{{#explode:{{{1|}}}|,|1}}|seq=,{Pub}:no|pg=,{Pub}: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=,{Pub}:2}}
{{#switch:{{#explode:{{{1|}}}|,|2}}|seq=,{Pub}:no|pg=,{Pub}: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=,{Pub}:2}}
{{#switch:{{#explode:{{{1|}}}|,|3}}|seq=,{Pub}:no|pg=,{Pub}: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=,{Pub}:2}}
{{#switch:{{#explode:{{{1|}}}|,|4}}|seq=,{Pub}:no|pg=,{Pub}: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=,{Pub}:2}}
{{#switch:{{#explode:{{{1|}}}|,|5}}|seq=,{Pub}:no|pg=,{Pub}: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=,{Pub}:2}}
{{#switch:{{#explode:{{{1|}}}|,|6}}|seq=,{Pub}:no|pg=,{Pub}: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=,{Pub}:2}}
{{#switch:{{#explode:{{{1|}}}|,|7}}|seq=,{Pub}:no|pg=,{Pub}: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=,{Pub}:2}}
{{#switch:{{#explode:{{{1|}}}|,|8}}|seq=,{Pub}:no|pg=,{Pub}: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=,{Pub}:2}}
{{#switch:{{#explode:{{{1|}}}|,|9}}|seq=,{Pub}:no|pg=,{Pub}: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=,{Pub}:2}}
{{#switch:{{#explode:{{{1|}}}|,|10}}|seq=,{Pub}:no|pg=,{Pub}: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=,{Pub}:2}}
{{#switch:{{#explode:{{{1|}}}|,|11}}|seq=,{Pub}:no|pg=,{Pub}: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=,{Pub}:2}}
{{#switch:{{#explode:{{{1|}}}|,|12}}|seq=,{Pub}:no|pg=,{Pub}: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=,{Pub}:2}}
|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|}}}|,|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=&nbsp;
}}--></includeonly><noinclude>
{{Doc|1=
THIS TEMPLATE is obsolete. Please use {{tl|MultiPubList}} instead.
<!--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|Pub}} 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>{{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.
{{{!}}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
{{!}}-
{{!}}}
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
[[Image:MiddHarmScreen1.png|Thumb|800px]]
etc.
-->
}}
[[Category:DPL templates]]
[[Category:Obsolete 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*{{{3|}}}/s,|secseparators=&nbsp;<!--
|notcategory=Works with all editions withdrawn|include=#Editions,{Published}:1|includematch=,/\{{!}}\s*{{{2|}}}/s,|secseparators=&nbsp;|linksto={{PAGENAME}}|columns={{{1|3}}}|rowcolformat=width=100%|noresultsheader=&nbsp;}}</includeonly><noinclude>
-->|linksto={{PAGENAME}}|columns={{{2|3}}}|rowcolformat=width=100%<!--
-->|noresultsheader=&nbsp;|replaceintitle={{#if:{{{1}}}{{!}}/\([^\)]+\)$/,}} }}</includeonly><noinclude>
{{Doc|1=
{{Doc|1=


Line 8: Line 103:


The template has two parameters, both optional.
The template has two parameters, both optional.
# If there is any text (not blank or length=0) in this parameter, the composer's name will be suppressed in the output.
# User can specify number of columns for output; default is 3.
# User can specify number of columns for output; default is 3.
# Specify a different publication page or section, with "ed="
# Specify a different edition or volume of the publication, by listing the year the new publication was issued.


Examples of syntax:
Examples of syntax:
*<tt><nowiki>{{PubList}}</nowiki></tt> – produces a list of works with composer names in two columns.
*<tt><nowiki>{{PubList}}</nowiki></tt> – produces a list of works that link to the publication page, in three columns.
*<tt><nowiki>{{PubList|s|4}}</nowiki></tt> – produces a list of works without composer names in four columns.
*<tt><nowiki>{{PubList|4|1803}}</nowiki></tt> – produces a list of works that link to the publication page and were published in the 1803 edition, in four columns.


}}
}}
[[Category:DPL templates]]
[[Category:Templates]]
[[Category:Templates]]
<!---->
</noinclude>
</noinclude>
-->

Latest revision as of 00:24, 13 August 2020


Documentation

THIS TEMPLATE is obsolete. Please use {{MultiPubList}} instead.