Template:Pub: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#ifexpr:{{{1|}}}<6|{{#ifexpr:{{{1|}}}=1|'''First'''| '''{{{1|}}}.'''}} <!-- | <includeonly>{{#ifexpr:{{{1|}}}<6|{{#ifexpr:{{{1|}}}=1|'''First'''| '''{{{1|}}}.'''}} <!-- | ||
-->{{#if:{{{2|}}}|'''Published:''' {{Cat|{{{2|}}} works|{{{2|}}}}}{{#if:{{{3|}}}| {{{3|}}}}}}}<!-- | -->{{#if:{{{2|}}}|'''Published:''' {{Cat|{{{2|}}} works|{{{2|}}}}}{{#if:{{{3|}}}| {{{3|}}}}}}}<!-- | ||
-->{{#if:{{{no|}}}|, no. {{#ifeq:{{#sub:{{{no|}}}|-1}}|.|{{#sub:{{{no|}}}|0|{{#expr:{{#len:{{{no|}}}}}-1}}}}<!-- | -->{{#if:{{{no|}}}|, no. {{#ifeq:{{#sub:{{{no|}}}|-1}}|.|{{padleft:{{#sub:{{{no|}}}|0|{{#expr:{{#len:{{{no|}}}}}-1}}}}}}<!-- | ||
-->|{{padleft:{{{no|}}}|3|0}}}}{{#if:{{{pg|}}}|, p. {{#ifeq:{{#sub:{{{pg|}}}|-1}}|.|{{#sub:{{{pg|}}}|0<!-- | -->|{{padleft:{{{no|}}}|3|0}}}}{{#if:{{{pg|}}}|, p. {{#ifeq:{{#sub:{{{pg|}}}|-1}}|.|{{#sub:{{{pg|}}}|0<!-- | ||
-->|{{#expr:{{#len:{{{pg|}}}}}-1}}}}|{{{pg|}}}}}}}}}.<br>}}</includeonly><noinclude> | -->|{{#expr:{{#len:{{{pg|}}}}}-1}}}}|{{{pg|}}}}}}}}}.<br>}}</includeonly><noinclude> |
Revision as of 17:53, 18 February 2019
This template is to be used for a publication of a work.
INCORRECT BELOW HERE
Syntax:
- {{Pub|L|YYYY|in {{NoComp|<Publication1>|<Composer>}}}}
- {{Pub|L|YYYY|in {{NoComp|<Publication1>|<Composer>}}, no. N, p. P1}} (no sequence or page numbers appear in {{PubList}})
- {{Pub|L|YYYY|in {{NoComp|<Publication1>|<Composer>}}|no=N|pg=P}} (if you wish sequence or page numbers to appear in {{PubList}})
Parameters:
- 1. Single-digit number, order of publication: 1 for first publication, 2 for second, etc.
- 2. Four-digit year of publication 1
- 3. Name and details of publication 1
- 4. no=Sequence of work in publication 1 (optional)
- 5. pg=Page number of work in publication 1 (optional)
Parameter 1 should contain only a single-digit integer number. Parameter 2 should contain only a integer number, usually four digits, the year of publication. Parameter 3 should contain a link to a publication page to which this work is linked. The link should use the template {{NoComp}}, for example {{NoComp|Music in Miniature|William Billings}}. Optionally, the sequence number or page in that publication can be specified; if you intend for these parameters (sequence or page number) to appear in the table generated by the template {{PubList}}, they should be declared as parameters, as in Syntax 3 above.
{{Pub|1|1770|in ''{{NoComp|The New-England Psalm-Singer|William Billings}}''}} yields Published 1: 1770 in The New-England Psalm-Singer.
{{Pub|1|1770|in ''{{NoComp|The New-England Psalm-Singer|William Billings}}'', no. 118, p. 90}} yields Published 1: 1770 in The New-England Psalm-Singer, no. 118, p. 90.
{{Pub|1|1770|in ''{{NoComp|The New-England Psalm-Singer|William Billings}}''|no=118|pg=90}} yields Published 1: 1770 in The New-England Psalm-Singer, no. 118, p. 90.