Template:Volumes3: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly><u>'''{{#switch:{{{2|}}}|Livre=Livres|Volume=Volumes|Part=Parts|Edition=Editions|Pars=Partes|Parte|parte=Parti|Heft=Hefte|Teil=Teile|Volumen=Volumina|Book=Books|Liber=Libri}}'''</u>{{#dplvar:set|vname|{{{2|}}}}}{{#dplvar:set|vn|{{{1|}}}}}<br>{{top}}{{#ifexpr:{{#expr:{{#dplvar:vn}}}}>9|{{#dplvar:set|breakr|{{#expr:{{#expr:{{#dplvar:vn}}/2 round 0}}+1}}|{{#dplvar:set|breakr|0}}}}}}{{#if:{{{3|}}}|:'''{{{4|1}}}''' – {{PubDatePlace|{{{3}}}|{{{5}}}|{{{2|Volume}}} {{{4|1}}}|format=invert}}{{#dplvar:set|y1|{{{3|}}}}}{{#dplvar:set|z1|{{{4|1}}}}}}}{{#if:{{{6|}}}|:'''{{{7|2}}}''' – {{PubDatePlace|{{{6}}}|{{{8}}}|{{{2|Volume}}} {{{7|2}}}|format=invert}}{{#dplvar:set|y2|{{{6|}}}}}{{#dplvar:set|z2|{{{7|2}}}}}}}{{#if:{{{9|}}}|:'''{{{10|3}}}''' – {{PubDatePlace|{{{9}}}|{{{11}}}|{{{2|Volume}}} {{{10|3}}}|format=invert}}{{#dplvar:set|y3|{{{9|}}}}}{{#dplvar:set|z3|{{{10|3}}}}}}}{{#if:{{{12|}}}|:'''{{{13|4}}}''' – {{PubDatePlace|{{{12}}}|{{{14}}}|{{{2|Volume}}} {{{13|4}}}|format=invert}}{{#dplvar:set|y4|{{{12|}}}}}{{#dplvar:set|z4|{{{13|4}}}}}}}{{#if:{{{15|}}}|:'''{{{16|5}}}''' – {{PubDatePlace|{{{15}}}|{{{17}}}|{{{2|Volume}}} {{{16|5}}}|format=invert}}{{#dplvar:set|y5|{{{15|}}}}}{{#dplvar:set|z5|{{{165}}}}}}}{{#if:{{{18|}}}|:'''{{{19|6}}}''' – {{PubDatePlace|{{{18}}}|{{{20}}}|{{{2|Volume}}} {{{19|6}}}|format=invert}}
<includeonly><u>'''{{#switch:{{{2|}}}|Livre=Livres|Volume=Volumes|Part=Parts|Edition=Editions|Pars=Partes|Parte|parte=Parti|Heft=Hefte|Teil=Teile|Volumen=Volumina|Book=Books|Liber=Libri}}'''</u>{{#dplvar:set|vname|{{{2|}}}}}{{#dplvar:set|vn|{{{1|}}}}}<br>{{top}}{{#ifexpr:{{#expr:{{#dplvar:vn}}}}>9|{{#dplvar:set|breakr|{{#expr:{{#expr:{{#dplvar:vn}}/2 round 0}}+1}}|{{#dplvar:set|breakr|{{#expr:0}}}}}}}}{{#if:{{{3|}}}|:'''{{{4|1}}}''' – {{PubDatePlace|{{{3}}}|{{{5}}}|{{{2|Volume}}} {{{4|1}}}|format=invert}}{{#dplvar:set|y1|{{{3|}}}}}{{#dplvar:set|z1|{{{4|1}}}}}}}{{#if:{{{6|}}}|:'''{{{7|2}}}''' – {{PubDatePlace|{{{6}}}|{{{8}}}|{{{2|Volume}}} {{{7|2}}}|format=invert}}{{#dplvar:set|y2|{{{6|}}}}}{{#dplvar:set|z2|{{{7|2}}}}}}}{{#if:{{{9|}}}|:'''{{{10|3}}}''' – {{PubDatePlace|{{{9}}}|{{{11}}}|{{{2|Volume}}} {{{10|3}}}|format=invert}}{{#dplvar:set|y3|{{{9|}}}}}{{#dplvar:set|z3|{{{10|3}}}}}}}{{#if:{{{12|}}}|:'''{{{13|4}}}''' – {{PubDatePlace|{{{12}}}|{{{14}}}|{{{2|Volume}}} {{{13|4}}}|format=invert}}{{#dplvar:set|y4|{{{12|}}}}}{{#dplvar:set|z4|{{{13|4}}}}}}}{{#if:{{{15|}}}|:'''{{{16|5}}}''' – {{PubDatePlace|{{{15}}}|{{{17}}}|{{{2|Volume}}} {{{16|5}}}|format=invert}}{{#dplvar:set|y5|{{{15|}}}}}{{#dplvar:set|z5|{{{165}}}}}}}{{#if:{{{18|}}}|:'''{{{19|6}}}''' – {{PubDatePlace|{{{18}}}|{{{20}}}|{{{2|Volume}}} {{{19|6}}}|format=invert}}
{{#dplvar:set|y6|{{{18|}}}}}{{#dplvar:set|z6|{{{19|6}}}}}{{#ifexpr:{{#dplvar:breakr}}=6|{{mdl}}}}}}{{#if:{{{21|}}}|:'''{{{22|7}}}''' – {{PubDatePlace|{{{21}}}|{{{23}}}|{{{2|Volume}}} {{{22|7}}}|format=invert}}
{{#dplvar:set|y6|{{{18|}}}}}{{#dplvar:set|z6|{{{19|6}}}}}{{#ifexpr:{{#dplvar:breakr}}=6|{{mdl}}}}}}{{#if:{{{21|}}}|:'''{{{22|7}}}''' – {{PubDatePlace|{{{21}}}|{{{23}}}|{{{2|Volume}}} {{{22|7}}}|format=invert}}
{{#dplvar:set|y7|{{{21|}}}}}{{#dplvar:set|z7|{{{22|7}}}}}{{#ifexpr:{{#dplvar:breakr}}=7|{{mdl}}}}}}{{#if:{{{24|}}}|:'''{{{25|8}}}''' – {{PubDatePlace|{{{24}}}|{{{26}}}|{{{2|Volume}}} {{{25|8}}}|format=invert}}
{{#dplvar:set|y7|{{{21|}}}}}{{#dplvar:set|z7|{{{22|7}}}}}{{#ifexpr:{{#dplvar:breakr}}=7|{{mdl}}}}}}{{#if:{{{24|}}}|:'''{{{25|8}}}''' – {{PubDatePlace|{{{24}}}|{{{26}}}|{{{2|Volume}}} {{{25|8}}}|format=invert}}

Revision as of 16:05, 20 November 2020


Documentation

EXPERIMENTAL TEMPLATE

THIS TEMPLATE is to be used on a music publication page, where more than one Edition, Volume, or Part exist. It has up to 212 parameters, for up to 70 volumes, editions, or parts. If this template is used, it will automatically produce the template {{PubDatePlace}} for each volume.

RECOMMENDED FORMAT

{{Volumes|<n>|<title>
|<year1>|<vol designation 1>|<comments 1>
|<year2>|<vol designation 2>|<comments 2>
|<year3>|<vol designation 3>|<comments 3>
|<year4>|<vol designation 4>|<comments 4>
|<year5>|<vol designation 5>|<comments 5>
}}

1. Number of volumes (editions, parts, etc.)
2. Title of different volumes, capitalized, singular and in the appropriate language. Defaults to Volume. Such as:

  • Book
  • Edition
  • Heft
  • Livre
  • Part
  • Parte
  • Teil
  • Volume
  • Volumen

3. Four-digit year of publication of volume (part, edition, etc.) 1.
4. Designation of volume (part, edition, etc.); could be an integer number or something else.

Do not use spaces or symbols such as "| / \ [ ] { } & ! < > = +".
You can use a dash ( - – — ), period ( . ), underscore ( _ ), parentheses ( ( ) ) are acceptable. Examples: 2a 15 A27-2

5. Text comments, such as number of pages, publisher of volume 1.

6. Four-digit year of second volume
7. Designation of second volume
8. Text comments on second volume

9. Four-digit year of third volume
10. Designation of third volume
11. Text comments on third volume

... and so on, up to 212 parameters.


Example 1
{{Volumes|4|Edition|1830|1|178 pp., published in London.|1835|2|232 pp.|1837|3|234 pp.|1840|4|259 pp.}}

would yield

Editions

Edition 1, 1830 – 178 pp., published in London.
Edition 2, 1835 – 232 pp.
Edition 3, 1837 – 234 pp.
Edition 4, 1840 – 259 pp.

Example 2
{{Volumes|2||1604|A|Madrigals|1609|B|Motets}}

would yield

Volumes

Volume A, 1604 – Madrigals
Volume B, 1609 – Motets

This template is designed for use with Template {{MultiPubList}}; when the two are used together, and with "vol=" in the {{Pub}} template on all work pages, several tables are produced, one for each volume. For examples, see Musica Transalpina or Heinrich Schütz: Sämtliche Werke.

This template produces several DPL variables (dplvar) that are used in {{MultiPubList}} later in the page: y1, y2, …, y70 (four-digit years, up to 70 of them); z1, z2, z3, …,z70 (designation of volumes, up to 70 of them); vn (the number of volumes); and vname (the name of books, "Volume" or "Edition", etc.)

(Version 7 - 2020-10-14)