Template:PubEditions: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><u>'''Editions'''</u>{{#dplvar:set|ne|{{{1|}}}}}{{#if:{{{2|}}}|{{#if:{{{3|}}}|:'''Edition {{{3|}}}''',&nbsp;{{#dplvar:set|n1|{{{3|}}}}}|:'''Edition 1'',&nbsp;{{#dplvar:set|y1|{{{2|}}}}}}}{{#multireplace:{{{2|}}}|/^(.*)?(\d\d\d\d)/=$1{{Cat|$2 publications|$2}}}}{{#if:{{{4|}}}|{{#dplvar:set|u1|{{{4|}}}}}&nbsp;– {{{4|}}}}}}}{{#if:{{{5|}}}|{{#if:{{{6|}}}|:'''Edition {{{6|}}}''',&nbsp;{{#dplvar:set|n2|{{{6|}}}}}|:'''Edition 2'',&nbsp;{{#dplvar:set|y2|{{{5|}}}}}}}{{#multireplace:{{{5|}}}|/^(.*)?(\d\d\d\d)/=$1{{Cat|$2 publications|$2}}}}{{#if:{{{7|}}}|{{#dplvar:set|u2|{{{7|}}}}}&nbsp;– {{{7|}}}}}}}{{#if:{{{8|}}}|{{#if:{{{9|}}}|:'''Edition {{{9|}}}''',&nbsp;{{#dplvar:set|n3|{{{9|}}}}}|:'''Edition 3'',&nbsp;{{#dplvar:set|y3|{{{8|}}}}}}}{{#multireplace:{{{8|}}}|/^(.*)?(\d\d\d\d)/=$1{{Cat|$2 publications|$2}}}}{{#if:{{{10|}}}|{{#dplvar:set|u3|{{{10|}}}}}&nbsp;– {{{10|}}}}}}}{{#if:{{{11|}}}|{{#if:{{{12|}}}|:'''Edition {{{12|}}}''',&nbsp;{{#dplvar:set|n4|{{{12|}}}}}|:'''Edition 4'',&nbsp;{{#dplvar:set|y4|{{{11|}}}}}}}{{#multireplace:{{{11|}}}|/^(.*)?(\d\d\d\d)/=$1{{Cat|$2 publications|$2}}}}{{#if:{{{13|}}}|{{#dplvar:set|u4|{{{13|}}}}}&nbsp;– {{{13|}}}}}}}{{#if:{{{14|}}}|{{#if:{{{15|}}}|:'''Edition {{{15|}}}''',&nbsp;{{#dplvar:set|n5|{{{15|}}}}}|:'''Edition 5'',&nbsp;{{#dplvar:set|y5|{{{14|}}}}}}}{{#multireplace:{{{14|}}}|/^(.*)?(\d\d\d\d)/=$1{{Cat|$2 publications|$2}}}}{{#if:{{{16|}}}|{{#dplvar:set|u5|{{{16|}}}}}&nbsp;– {{{16|}}}}}}}{{#if:{{{17|}}}|{{#if:{{{18|}}}|:'''Edition {{{18|}}}''',&nbsp;{{#dplvar:set|n6|{{{18|}}}}}|:'''Edition 6'',&nbsp;{{#dplvar:set|y6|{{{17|}}}}}}}{{#multireplace:{{{17|}}}|/^(.*)?(\d\d\d\d)/=$1{{Cat|$2 publications|$2}}}}{{#if:{{{19|}}}|{{#dplvar:set|u6|{{{19|}}}}}&nbsp;– {{{19|}}}}}}}{{#if:{{{20|}}}|{{#if:{{{21|}}}|:'''Edition {{{21|}}}''',&nbsp;{{#dplvar:set|n7|{{{21|}}}}}|:'''Edition 7'',&nbsp;{{#dplvar:set|y7|{{{20|}}}}}}}{{#multireplace:{{{20|}}}|/^(.*)?(\d\d\d\d)/=$1{{Cat|$2 publications|$2}}}}{{#if:{{{22|}}}|{{#dplvar:set|u7|{{{22|}}}}}&nbsp;– {{{22|}}}}}}}{{#if:{{{23|}}}|{{#if:{{{24|}}}|:'''Edition {{{24|}}}''',&nbsp;{{#dplvar:set|n8|{{{24|}}}}}|:'''Edition 8'',&nbsp;{{#dplvar:set|y8|{{{23|}}}}}}}{{#multireplace:{{{23|}}}|/^(.*)?(\d\d\d\d)/=$1{{Cat|$2 publications|$2}}}}{{#if:{{{25|}}}|{{#dplvar:set|u8|{{{25|}}}}}&nbsp;– {{{25|}}}}}}}{{#if:{{{26|}}}|{{#if:{{{27|}}}|:'''Edition {{{27|}}}''',&nbsp;{{#dplvar:set|n9|{{{27|}}}}}|:'''Edition 9'',&nbsp;{{#dplvar:set|y9|{{{26|}}}}}}}{{#multireplace:{{{26|}}}|/^(.*)?(\d\d\d\d)/=$1{{Cat|$2 publications|$2}}}}{{#if:{{{28|}}}|{{#dplvar:set|u9|{{{28|}}}}}&nbsp;– {{{28|}}}}}}}{{#if:{{{29|}}}|{{#if:{{{30|}}}|:'''Edition {{{30|}}}''',&nbsp;{{#dplvar:set|n10|{{{30|}}}}}|:'''Edition 10'',&nbsp;{{#dplvar:set|y10|{{{29|}}}}}}}{{#multireplace:{{{29|}}}|/^(.*)?(\d\d\d\d)/=$1{{Cat|$2 publications|$2}}}}{{#if:{{{31|}}}|{{#dplvar:set|u10|{{{31|}}}}}&nbsp;– {{{31|}}}}}}}{{#if:{{{32|}}}|{{#if:{{{33|}}}|:'''Edition {{{33|}}}''',&nbsp;{{#dplvar:set|n11|{{{33|}}}}}|:'''Edition 11'',&nbsp;{{#dplvar:set|y11|{{{32|}}}}}}}{{#multireplace:{{{32|}}}|/^(.*)?(\d\d\d\d)/=$1{{Cat|$2 publications|$2}}}}{{#if:{{{34|}}}|{{#dplvar:set|u11|{{{34|}}}}}&nbsp;– {{{34|}}}}}}}{{#if:{{{35|}}}|{{#if:{{{36|}}}|:'''Edition {{{36|}}}''',&nbsp;{{#dplvar:set|n12|{{{36|}}}}}|:'''Edition 12'',&nbsp;{{#dplvar:set|y12|{{{35|}}}}}}}{{#multireplace:{{{35|}}}|/^(.*)?(\d\d\d\d)/=$1{{Cat|$2 publications|$2}}}}{{#if:{{{37|}}}|{{#dplvar:set|u12|{{{37|}}}}}&nbsp;– {{{37|}}}}}}}{{#if:{{{38|}}}|{{#if:{{{39|}}}|:'''Edition {{{39|}}}''',&nbsp;{{#dplvar:set|n13|{{{39|}}}}}|:'''Edition 13'',&nbsp;{{#dplvar:set|y13|{{{38|}}}}}}}{{#multireplace:{{{38|}}}|/^(.*)?(\d\d\d\d)/=$1{{Cat|$2 publications|$2}}}}{{#if:{{{40|}}}|{{#dplvar:set|u13|{{{40|}}}}}&nbsp;– {{{40|}}}}}}}{{#if:{{{41|}}}|{{#if:{{{42|}}}|:'''Edition {{{42|}}}''',&nbsp;{{#dplvar:set|n14|{{{42|}}}}}|:'''Edition 14'',&nbsp;{{#dplvar:set|y14|{{{41|}}}}}}}{{#multireplace:{{{41|}}}|/^(.*)?(\d\d\d\d)/=$1{{Cat|$2 publications|$2}}}}{{#if:{{{43|}}}|{{#dplvar:set|u14|{{{43|}}}}}&nbsp;– {{{43|}}}}}}}{{#if:{{{44|}}}|{{#if:{{{45|}}}|:'''Edition {{{45|}}}''',&nbsp;{{#dplvar:set|n15|{{{45|}}}}}|:'''Edition 15'',&nbsp;{{#dplvar:set|y15|{{{44|}}}}}}}{{#multireplace:{{{44|}}}|/^(.*)?(\d\d\d\d)/=$1{{Cat|$2 publications|$2}}}}{{#if:{{{46|}}}|{{#dplvar:set|u15|{{{46|}}}}}&nbsp;– {{{46|}}}}}}}
<includeonly>
 
</includeonly><noinclude>
</includeonly><noinclude>
{{Doc|1=
{{Doc|1=
THIS TEMPLATE is to be used on a '''{{CiteCat|Music publications|music publication}} page''', where more than one '''Edition''' of a '''publication''' exists. It has up to parameters, for up to 10 editions. This is similar to the template '''Volumes''', but '''PubEditions''' operates independently. This is to allow for different Editions of a Volume (or Part).<br>
THIS TEMPLATE is to be used on a '''{{CiteCat|Music publications|music publication}} page''', where more than one '''Edition''' of a '''publication''' exists. It has up to 30 parameters, for up to 30 editions. Template {{tl|PubEditions}} can be used independently or in conjunction with the template {{tl|Volumes}}. This is to allow for different Editions of a Volume (or Part).<br>
{{top}}
 
1. Number of editions<br>
IF {{tl|PubEditions}} IS USED WITH {{tl|Volumes}}, then {{tl|Volumes}} must appear before {{tl|PubEditions}}.
2. Four-digit year of publication of first edition 1.<br>
3. Name of first edition 1, capitalized, singular and in the appropriate language. If parameter is blank, defaults to '''Edition 1'''.<br>
4. Text comments on the first edition 1, such as number of pages, publisher.


5. Four-digit year of second edition<br>
EACH PARAMETER is a comma-delimited list. The first item is always '''ed<i>n</i>=<edition name>''', where <i>n</i> is the edition number, sometimes the same as <edition name>, but not always.
6. Name of second edition, capitalized and singular as before.
7. Text comments on second edition<br>


8. Four-digit year of third edition<br>
'''USAGE WITHOUT VOLUMES'''<br>
9. Name of third edition
''(There are several editions of the publication, but only one volume or part)''<br>
10. Text comments on third edition<br>
<tt><nowiki>{{PubEditions|NE|ed1=<edition1>,<year1>|ed2=<edition2>,<year2>|ed3=<edition3>,<year3>…}}</nowiki></tt><br>
ON THE WORKS PAGES, <tt><nowiki>{{Pub|n|YYYY|in ''[[<Pub. name>]]''|</nowiki>'''ed=e'''<nowiki>}}</nowiki></tt>; '''e''' is the Edition ''number'' (not the name)<br>
<u>Example 1</u>
:<tt><nowiki>{{PubEditions|4|ed1=1,1791|ed2=1B,1792|ed3=2,1794|ed4=4,1796}}</nowiki></tt>
::''which results in''
::<u>'''Editions'''</u>
:::'''Edition 1''' – 1791
:::'''Edition 1B''' – 1792
:::'''Edition 2''' – 1794
:::'''Edition 4''' – 1796


... and so on, up to  parameters.
{{mdl}}
<u>Example 1</u><br>
<nowiki>{{PubEditions|4|1830|First Edition|178 pp., published in London.|1835|Edition 2A|232 pp.|1837|Edition 2B|234 pp.|1840|Edition 3|259 pp.}}</nowiki>
:would yield
<u>'''Editions'''</u>
:'''First Edition''', <font color=blue>1830</font> – 178 pp., published in London.
:'''Edition 2A''', <font color=blue>1835</font> – 232 pp.
:'''Edition 2B''', <font color=blue>1837</font> – 234 pp.
:'''Edition 3''', <font color=blue>1840</font> – 259 pp.


<u>Example 2</u><br>
'''USAGE WITH VOLUMES'''<br>
''(There are several editions of the publications, and several volumes or parts)''<br>
<tt><nowiki>{{Volumes|NV|<Name>|<Year11>|<Text1>|<Year21>|<Text2>|<Year31>|<Text3>| … }}</nowiki></tt><br>
&nbsp;&nbsp;&nbsp;''where Year11 is the publication year of Vol. 1 Ed. 1, Year21 is Vol. 2 Ed. 1, etc.''<br>
<tt><nowiki>{{PubEditions|NE|ed1=<edition1>,<Year11>,<Year21>,<Year31>, … |ed2=<edition2>,<Year12>,<Year22>,<Year32>, … | … }}</nowiki></tt><br>
ON THE WORKS PAGES, <tt><nowiki>{{Pub|n|YYYY|in ''[[<Pub. name>]]''|vol=<name> <number>|</nowiki>'''ed=e'''<nowiki>}}</nowiki></tt>; '''e''' is the Edition ''number'' (not the name)<br>
<u>Example 2</u>
:<tt><nowiki>{{Volumes|3|Part|1835|Part I, Songs and rounds|1836|Part II, Psalm tunes|1840|Part III, Anthems}}</nowiki></tt>
:<tt><nowiki>{{PubEditions|2|ed1=1,1835,1836,1840|ed2=2,1842,1842,1843}}</nowiki></tt>
::''which results in''
::<u>'''Parts'''</u>
:::'''Part 1''' <font color=blue>1835</font> – Part I, Songs and rounds (Edition 2, <font color=blue>1842</font>)
:::'''Part 2''' <font color=blue>1836</font> – Part II, Psalm tunes (Edition 2, <font color=blue>1842</font>)
:::'''Part 3''' <font color=blue>1840</font> – Part III, Anthems (Edition 2, <font color=blue>1843</font>)


{{btm}}
TEMPLATE {{tl|PubEditions}} is designed for use with Template {{tl|MultiPubList}}; when the two are used together, and with "ed=" in the {{tl|Pub}} template on all work pages, several tables are produced, one for each edition (four tables in Example 1 above). If {{tl|Volumes}} is also used, one table is produced for each edition of each volume (six tables in Example 2 above).  
This template is designed for use with Template {{tl|MultiPubList}}; when the two are used together, and with "ed=" in the {{tl|Pub}} template on all work pages, several tables are produced, one for each edition. For examples, see .


This template produces several DPL variables (dplvar) that are used in {{tl|MultiPubList}} later in the page: <tt>z1, z2, …, z10</tt> (four-digit years, up to 10 of them); and <tt>ne</tt> (the number of editions).  
This template produces several DPL variables (dplvar) that are used in {{tl|MultiPubList}} later in the page: <tt>z0101, z0102, …, z3050</tt> (four-digit years); and <tt>ne</tt> (the number of editions).  


}}
}}


[[Category:Experimental templates]]
[[Category:Experimental templates]]

Latest revision as of 16:16, 18 November 2019


Documentation

THIS TEMPLATE is to be used on a music publication page, where more than one Edition of a publication exists. It has up to 30 parameters, for up to 30 editions. Template {{PubEditions}} can be used independently or in conjunction with the template {{Volumes}}. This is to allow for different Editions of a Volume (or Part).

IF {{PubEditions}} IS USED WITH {{Volumes}}, then {{Volumes}} must appear before {{PubEditions}}.

EACH PARAMETER is a comma-delimited list. The first item is always edn=<edition name>, where n is the edition number, sometimes the same as <edition name>, but not always.

USAGE WITHOUT VOLUMES
(There are several editions of the publication, but only one volume or part)
{{PubEditions|NE|ed1=<edition1>,<year1>|ed2=<edition2>,<year2>|ed3=<edition3>,<year3>…}}
ON THE WORKS PAGES, {{Pub|n|YYYY|in ''[[<Pub. name>]]''|ed=e}}; e is the Edition number (not the name)
Example 1

{{PubEditions|4|ed1=1,1791|ed2=1B,1792|ed3=2,1794|ed4=4,1796}}
which results in
Editions
Edition 1 – 1791
Edition 1B – 1792
Edition 2 – 1794
Edition 4 – 1796


USAGE WITH VOLUMES
(There are several editions of the publications, and several volumes or parts)
{{Volumes|NV|<Name>|<Year11>|<Text1>|<Year21>|<Text2>|<Year31>|<Text3>| … }}
   where Year11 is the publication year of Vol. 1 Ed. 1, Year21 is Vol. 2 Ed. 1, etc.
{{PubEditions|NE|ed1=<edition1>,<Year11>,<Year21>,<Year31>, … |ed2=<edition2>,<Year12>,<Year22>,<Year32>, … | … }}
ON THE WORKS PAGES, {{Pub|n|YYYY|in ''[[<Pub. name>]]''|vol=<name> <number>|ed=e}}; e is the Edition number (not the name)
Example 2

{{Volumes|3|Part|1835|Part I, Songs and rounds|1836|Part II, Psalm tunes|1840|Part III, Anthems}}
{{PubEditions|2|ed1=1,1835,1836,1840|ed2=2,1842,1842,1843}}
which results in
Parts
Part 1 1835 – Part I, Songs and rounds (Edition 2, 1842)
Part 2 1836 – Part II, Psalm tunes (Edition 2, 1842)
Part 3 1840 – Part III, Anthems (Edition 2, 1843)

TEMPLATE {{PubEditions}} is designed for use with Template {{MultiPubList}}; when the two are used together, and with "ed=" in the {{Pub}} template on all work pages, several tables are produced, one for each edition (four tables in Example 1 above). If {{Volumes}} is also used, one table is produced for each edition of each volume (six tables in Example 2 above).

This template produces several DPL variables (dplvar) that are used in {{MultiPubList}} later in the page: z0101, z0102, …, z3050 (four-digit years); and ne (the number of editions).