Template:Dyr-yr: Difference between revisions

From Guild of Archivists
(Created page with "<includeonly>{{#switch:{{{2}}}|y={{{1}}}|c={{#expr:25^{{{1}}}{{#ifexpr: {{{1}}}<0|-626|+0}}}}}}</includeonly><noinclude> {{documentation|content=Converts a D'ni hahr/century n...")
 
No edit summary
 
Line 1: Line 1:
<includeonly>{{#switch:{{{2}}}|y={{{1}}}|c={{#expr:25^{{{1}}}{{#ifexpr: {{{1}}}<0|-626|+0}}}}}}</includeonly><noinclude>
<includeonly>{{#switch:{{{2}}}|y={{{1}}}|c={{#expr:25^{{{1}}}{{#ifexpr: {{{1}}}<=0|-626|+0}}}}}}</includeonly><noinclude>
{{documentation|content=Converts a D'ni hahr/century number (use zero for BE) into a representative year of that period, for use in {{tl|dyr}}. Second parameter is y/c.
{{documentation|content=Converts a D'ni hahr/century number (use zero for BE) into a representative year of that period, for use in {{tl|dyr}}. Second parameter is y/c.


[[Category:Historical period subtemplates|Dyr-yr]]
[[Category:Historical period subtemplates|Dyr-yr]]
}}</noinclude>
}}</noinclude>

Latest revision as of 22:15, 23 May 2018

Template documentation

Converts a D'ni hahr/century number (use zero for BE) into a representative year of that period, for use in {{dyr}}. Second parameter is y/c.