Template:PubEditions: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly> | `<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 | 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> | ||
IF {{tl|PubEditions}} IS USED WITH {{tl|Volumes}}, then {{tl|Volumes}} must appear before {{tl|PubEditions}}. | |||
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. | |||
'''USAGE WITHOUT VOLUMES'''<br> | |||
{{ | ''(There are several editions of the publication, but only one volume or part)''<br> | ||
< | <tt><nowiki>{{PubEditions|ed1=<edition1>,<year1>|ed2=<edition2>,<year2>|ed3=<edition3>,<year3>…}}</nowiki></tt><br> | ||
<nowiki>{{ | 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> | ||
<u>'''Editions'''</u> | :<tt><nowiki>{{PubEditions|ed1=1,1791|ed2=1B,1792|ed3=2,1794|ed4=4,1796}}</nowiki></tt> | ||
:''' | ::''which results in'' | ||
:'''Edition | ::<u>'''Editions'''</u> | ||
:'''Edition | :::'''Edition 1''' – 1791 | ||
:'''Edition | :::'''Edition 1B''' – 1792 | ||
:::'''Edition 2''' – 1794 | |||
:::'''Edition 4''' – 1796 | |||
{{ | '''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> | |||
''where Year11 is the publication year of Vol. 1 Ed. 1, Year21 is Vol. 2 Ed. 1, etc.''<br> | |||
<tt><nowiki>{{PubEditions|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> | |||
:{{Volumes|3|Part|1835|Part I, Songs and rounds|1836|Part II, Psalm tunes|1840|Part III, Anthems}} | |||
:{{PubEditions|ed1=1,1835,1836,1840|ed2=2,1842,1842,1843}} | |||
::''which results in'' | |||
::<u>'''Parts'''</u> | |||
:::'''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 {{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 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>z1, z2, …, z10</tt> (four-digit years, up to 10 of them); and <tt>ne</tt> (the number of editions). |
Revision as of 04:16, 16 November 2019
`
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|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|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|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
- Parts
- Part I, Songs and rounds – Published 1835 – 1836
- 1840 – Published Part II, Psalm tunes – Part III, Anthems
- `
- 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: z1, z2, …, z10 (four-digit years, up to 10 of them); and ne (the number of editions).