Template:Pub2: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
}} | }} | ||
}} | }} | ||
|{{#if:{{{ms|}}} | |||
|'''Manuscript''' {{{2|}}} | |||
{{#if:{{{3|}}} | |||
| {{#ifeq:{{#sub:{{{3|}}}|-1}}|. | |||
|{{#sub:{{{3|}}}|0|{{#expr:{{#len:{{{3|}}}}}-1}}}} | |||
|{{{3|}}} | |||
}} | |||
}} | }} | ||
}} | }} | ||
}} | }} | ||
|{{#switch:{{#expr:{{{1|}}}}}|1='''First'''|2= '''2nd'''|3= '''3rd'''|21= '''21st'''|22= '''22nd'''|23= | |{{#switch:{{#expr:{{{1|}}}}}|1='''First'''|2= '''2nd'''|3= '''3rd'''|21= '''21st'''|22= '''22nd'''|23= | ||
'''23rd'''| '''{{{1|}}}th'''}} | |||
{{#if:{{{2|}}} | {{#if:{{{2|}}} | ||
| '''published:''' {{#multireplace:{{{2|}}}| /^(.*)?(\d\d\d\d)/=$1{{Cat|$2 works|$2}}}} | | '''published:''' {{#multireplace:{{{2|}}}| /^(.*)?(\d\d\d\d)/=$1{{Cat|$2 works|$2}}}} | ||
Line 28: | Line 28: | ||
|{{#sub:{{{3|}}}|0|{{#expr:{{#len:{{{3|}}}}}-1}}}} | |{{#sub:{{{3|}}}|0|{{#expr:{{#len:{{{3|}}}}}-1}}}} | ||
|{{{3|}}} | |{{{3|}}} | ||
}} | |||
}} | }} | ||
| '''published:''' | | '''published:''' | ||
{{#if:{{{3|}}} | {{#if:{{{3|}}} |
Revision as of 18:08, 13 November 2019
EXPERIMENTAL TEMPLATE
New Features in Bold (proposed, yet to be implemented)
Syntax: {{Pub|N|YYYY|in <Publication Name>|no=S|pg=P|vol=Volname N|ed=E|arr=A|ms=<any>|cps=<any>}}
Ordered Parameters:
- Publication sequence (integer)
- Publication year (four-digit integer, sometimes with prefix such as "ante" or "ca."). Automatically added to Category:YYYY works
- Publication name (optional)
Unordered Parameters (all optional):
- Volume (or Part) number (vol=<type><space><integer>), for example "Volume 1" or "Part 3"). For "type" and "integer" please use the same spelling and capitalization as appears in the {{Volumes}} template on the publication page.
- Sequence in publication (no=<integer>, or at least starting with an integer)
- Page number in publication (pg=<integer>, or at least starting with an integer)
- Edition number (ed=E), where E is the edition designation: could be a number (e.g., 1, 2, 7) or text (e.b., III, 2B, 3Suppl.)
- Arranger name (arr=Arranger), where "Arranger" is the full name of the arranger, spelled exactly as the person's page. This is used ONLY if there is more than one arranger for a work. If arr is not specified, defaults to all people in {{Arranger}} on the page.
- Manuscript (ms=<any text>), which would result in "[First] Manuscript <year>" rather than "[First] Published <year>" to be displayed. If ms is not specified, defaults to "[First] Published <year>".
- Composed (or written) (cpd=<text>), which would result in "First <text> <year>" rather than "First Published <year>" to be displayed. Usually only appropriate for the first line of this template. If cpd is not specified, defaults to "[First] Published <year>".