Template:PubDatePlace: Difference between revisions
Jump to navigation
Jump to search
Documentation
No edit summary |
No edit summary |
||
(25 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>'''Publication date and place:''' {{# | <includeonly>{{#ifeq:{{{format|}}}|basic|<font color=white>{{{1|}}}-{{#replaceset:{{{3|}}}|&!32;= }}</font>|{{#if:{{{3|}}}|{{#ifeq:{{{3|}}}|Manuscript|{{#dplvar:set|mse|Yes}}|{{#dplvar:set|mse|No}}}}}}{{#ifeq:{{{format|}}}|invert| Published {{#replaceset:  {{{1|}}}  | /(\d\d\d\d)/i={{Cat|$1 publications|'''$1'''}}}}{{#if:{{{2|}}}| – {{{2|}}}}}|'''Publication date and place:''' {{#replaceset:  {{{1|}}}  | /(\d\d\d\d)/i={{Cat|$1 publications|$1}} }}{{{2|}}}{{#ifeq:{{#sub:{{{2|}}}|-1}}|.||.}} {{#if:{{{3|}}}|{{#ifeq:{{{3|}}}| || – {{#replaceset:{{{3|}}}|&!32;= }}}}}}<br>}}}}</includeonly><noinclude><!-- | ||
-->{{Doc|1= | -->{{Doc|1= | ||
This template is for use on <b>Music publication</b> pages; for <b>Work</b> pages, use the Template | This template is for use on <b>Music publication</b> pages; for <b>Work</b> pages, use the Template {{tl|Pub}}. | ||
This template scans the text of the first parameter of '''PubDatePlace''' for any four-digit year, and converts it into a link to " | This template scans the text of the first parameter of '''PubDatePlace''' for any four-digit year, and converts it into a link to "Category:YYYY publications". The page is simultaneously included in that category. Therefore, publications that have a date are categorized accordingly. | ||
The template accepts | The template accepts four parameters: | ||
# A four digit date or substitute, such as "0850" or "ca. 1550" | # A four digit date or substitute, such as "0850" or "ca. 1550"; text is scanned for four-digit year | ||
# Details about the publication, such as name of publisher and place of publication | # Details about the publication, such as name of publisher and place of publication | ||
# | # Manuscript (if appropriate), Edition, Volume, Revision | ||
# <tt>format=</tt> (''optional'') – "invert" for inverted display; default is normal display. | |||
Please always include the first three parameters; if the third parameter is not used, put <tt>&nbsp;</code></tt> in its place nonetheless. | |||
'''Syntax:''' | '''Syntax:''' | ||
:{{tl|PubDatePlace|<text (scanned)>|<text (displayed as-is)>|< | :{{tl|PubDatePlace|<text (scanned)>|<text (displayed as-is)>|<text (displayed as-is)>|format="invert"}} | ||
'''Examples:''' | |||
*<tt><nowiki>{{PubDatePlace|1564|by Le Roy and Ballard in Paris|Volume 1}}</nowiki></tt> – '''Publication date and place:''' <font color=blue>1564</font> by Le Roy and Ballard in Paris – Volume 1 | |||
*<tt><nowiki>{{PubDatePlace|ca. 1450||Manuscript}}</nowiki></tt> – '''Publication date and place:''' ca. <font color=blue>1450</font> – Manuscript | |||
*<tt><nowiki>{{PubDatePlace|1720|by George Halman in London, 278 pp., nos. 121-195|Volume 2a|format=invert}}</nowiki></tt> – | |||
:: '''2a''' – Published <font color=blue>1720</font> by George Halman in London, 278 pp., nos. 121-195. | |||
This template sets a variable, "mse", to yes or no, depending on whether the third parameter is "Manuscript"; the variable is used by Template:MultiPubList later on the same page. | |||
}} | }} | ||
[[Category:DPL templates]] | |||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 00:54, 1 September 2022
This template is for use on Music publication pages; for Work pages, use the Template {{Pub}}.
This template scans the text of the first parameter of PubDatePlace for any four-digit year, and converts it into a link to "Category:YYYY publications". The page is simultaneously included in that category. Therefore, publications that have a date are categorized accordingly.
The template accepts four parameters:
- A four digit date or substitute, such as "0850" or "ca. 1550"; text is scanned for four-digit year
- Details about the publication, such as name of publisher and place of publication
- Manuscript (if appropriate), Edition, Volume, Revision
- format= (optional) – "invert" for inverted display; default is normal display.
Please always include the first three parameters; if the third parameter is not used, put in its place nonetheless.
Syntax:
- {{PubDatePlace|<text (scanned)>|<text (displayed as-is)>|<text (displayed as-is)>}}
Examples:
- {{PubDatePlace|1564|by Le Roy and Ballard in Paris|Volume 1}} – Publication date and place: 1564 by Le Roy and Ballard in Paris – Volume 1
- {{PubDatePlace|ca. 1450||Manuscript}} – Publication date and place: ca. 1450 – Manuscript
- {{PubDatePlace|1720|by George Halman in London, 278 pp., nos. 121-195|Volume 2a|format=invert}} –
- 2a – Published 1720 by George Halman in London, 278 pp., nos. 121-195.
This template sets a variable, "mse", to yes or no, depending on whether the third parameter is "Manuscript"; the variable is used by Template:MultiPubList later on the same page.