Template:Published: Difference between revisions
Jump to navigation
Jump to search
Documentation
(second parameter) |
|||
Line 1: | Line 1: | ||
<includeonly>'''Published:''' {{#multireplace:  {{{1|}}}  | | <includeonly>'''Published:''' {{#multireplace:  {{{1|}}}  | | ||
/(\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
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>}}