Template:Published: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
m (Reverted edits by CHGiffen (talk) to last revision by Carlos)
(second parameter)
Line 1: Line 1:
<includeonly>'''Published:''' {{#multireplace:&#32; {{{1|}}} &#32;|
<includeonly>'''Published:''' {{#multireplace:&#32; {{{1|}}} &#32;|
/(\d\d\d\d)/i={{Cat|$1 works|$1}} }}</includeonly><noinclude><!--
/(\d\d\d\d)/i={{Cat|$1 works|$1}} }}{{{2|}}}</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.


'''Syntax:'''
'''Syntax:'''
:{{tl|Published|<publication data as normal text>}}
:{{tl|Published|<publication data as normal text>|<optional text>}}


}}
}}
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Revision as of 16:36, 2 September 2016

Documentation

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.

Syntax:

{{Published|<publication data as normal text>|<optional text>}}