Template:YearField: Difference between revisions

From Greyhawk Wiki
Jump to navigation Jump to search
Rexidos (talk | contribs)
No edit summary
Rexidos (talk | contribs)
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#if:{{{1|}} {{#iferror: {{#expr: {{{1|}}} }} | {{{1|}}} | [[{{{1|}}} CY]] }} }}
<noinclude>'''YearField''' is a template for use in infoboxes.
 
If a straight number is given (e.g. 591), this template will turn it into a link to the relevant year page, e.g. [[591 CY]]. If not, it will just return the contents verbatim.
 
</noinclude><includeonly>{{#if:{{{1|}}}|{{#iferror: {{#expr: {{{1|}}} }} | {{{1|}}} | [[{{{1|}}} CY]] }} }}</includeonly>

Latest revision as of 00:13, 20 August 2023

YearField is a template for use in infoboxes.

If a straight number is given (e.g. 591), this template will turn it into a link to the relevant year page, e.g. 591 CY. If not, it will just return the contents verbatim.