Template:Published: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
<!--OLD CODE, NOT COMPATIBLE WITH DPL 3 OR MEDIAWIKI 1.33
<includeonly>'''Published:''' {{#multireplace:&#32; {{{1|}}} &#32;| /(\d\d\d\d)/i={{Cat|$1 works|$1}} }}{{{2|}}}{{#if: {{{3|}}}
<includeonly>'''Published:''' {{#multireplace:&#32; {{{1|}}} &#32;| /(\d\d\d\d)/i={{Cat|$1 works|$1}} }}{{{2|}}}{{#if: {{{3|}}}
                             |{{#multireplace:&#32; {{{3|}}} &#32;| /(\d\d\d\d)/i={{Cat|$1 works|$1}} }}{{{4|}}}}}{{#if: {{{5|}}}
                             |{{#multireplace:&#32; {{{3|}}} &#32;| /(\d\d\d\d)/i={{Cat|$1 works|$1}} }}{{{4|}}}}}{{#if: {{{5|}}}
                             |{{#multireplace:&#32; {{{5|}}} &#32;| /(\d\d\d\d)/i={{Cat|$1 works|$1}} }}{{{6|}}}}}<!--
                             |{{#multireplace:&#32; {{{5|}}} &#32;| /(\d\d\d\d)/i={{Cat|$1 works|$1}} }}{{{6|}}}}}
-->{{#if:{{{ed|}}}|, {{#ifeq:{{#sub:{{{ed|}}}|-1}}|.|{{#sub:{{{ed|}}}|0|{{#expr:{{#len:{{{ed|}}}}}-1}}}}|{{{ed|}}}}}<!--
{{#if:{{{ed|}}}|, {{#ifeq:{{#sub:{{{ed|}}}|-1}}|.|{{#sub:{{{ed|}}}|0|{{#expr:{{#len:{{{ed|}}}}}-1}}}}|{{{ed|}}}}}
-->{{#if:{{{no|}}}|, no. {{#ifeq:{{#sub:{{{no|}}}|-1}}|.|{{#sub:{{{no|}}}|0|{{#expr:{{#len:{{{no|}}}}}-1}}}}|{{{no|}}}}}<!--
{{#if:{{{no|}}}|, no. {{#ifeq:{{#sub:{{{no|}}}|-1}}|.|{{#sub:{{{no|}}}|0|{{#expr:{{#len:{{{no|}}}}}-1}}}}|{{{no|}}}}}
-->{{#if:{{{pg|}}}||.}}}}{{#if:{{{pg|}}}|, p.  {{#ifeq:{{#sub:{{{pg|}}}|-1}}|.|{{#sub:{{{pg|}}}|0<!--
{{#if:{{{pg|}}}||.}}}}{{#if:{{{pg|}}}|, p.  {{#ifeq:{{#sub:{{{pg|}}}|-1}}|.|{{#sub:{{{pg|}}}|0
-->|{{#expr:{{#len:{{{pg|}}}}}-1}}}}|{{{pg|}}}}}}}}}.}}</includeonly><noinclude><!--
|{{#expr:{{#len:{{{pg|}}}}}-1}}}}|{{{pg|}}}}}}}.}}</includeonly><noinclude>
-->{{Doc|1=
{{Doc|1=
This template scans the text supplied at the '''Published''' line for any four-digit year, and converts it into a link to  "category:YYYY works". The page is simultaneously included in that category. Therefore, works that have a publication date are categorized accordingly.
This template scans the text supplied at the '''Published''' line for any four-digit year, and converts it into a link to  "category:YYYY works". The page is simultaneously included in that category. Therefore, works that have a publication date are categorized accordingly.


Line 27: Line 28:
A list of works available on CPDL can be created using the template {{tl|PubList}} on the appropriate {{CiteCat|Music publications|publication}} page. If there is more than one publication cited for any work, then use the template {{tl|MultiPubList}} (which requires that citation of publications on workpages use the template {{tl|Pub}} instead of {{tl|Published}}).
A list of works available on CPDL can be created using the template {{tl|PubList}} on the appropriate {{CiteCat|Music publications|publication}} page. If there is more than one publication cited for any work, then use the template {{tl|MultiPubList}} (which requires that citation of publications on workpages use the template {{tl|Pub}} instead of {{tl|Published}}).
}}
}}
-->''{{tl|Published}} is obsolete (code commented out), replaced with {{tl|Pub}} for works and {{tl|PubDatePlace}} for publications.''<noinclude>
[[Category:DPL templates]]
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 15:13, 22 May 2020

{{Published}} is obsolete (code commented out), replaced with {{Pub}} for works and {{PubDatePlace}} for publications.