Template:Ardayearheader: Difference between revisions

From Tolkien Gateway
m (Hmm)
m (Tweaking things)
Line 4: Line 4:
<tr><td align="right" style="line-height:1em;"><small>'''Year&nbsp;of<br/>the&nbsp;Sun:'''</small></td><td>
<tr><td align="right" style="line-height:1em;"><small>'''Year&nbsp;of<br/>the&nbsp;Sun:'''</small></td><td>
<table width="100%"><tr>
<table width="100%"><tr>
<td width="14%" align="center">{{#if:|{{#explode:{{{1}}}| |-2}}|[[{{{1}}}|{{#explode:{{{1}}}| |-1}}]]}}</td><td width="14%" align="center">-2</td><td width="14%" align="center">-1</td><td width="14%" align="center">'''{{#explode:{{PAGENAME}}| |-1}}'''</td><td width="14%" align="center"> +1 </td><td width="14%" align="center">+2</td><td width="14%" align="center">+3</td>
<td width="14%" align="center">{{#if:|{{#explode:{{{1}}}| |-2}}|[[{{{1}}}|{{#explode:{{{1}}}| |-1}}]]|}}</td><td width="14%" align="center">-2</td><td width="14%" align="center">-1</td><td width="14%" align="center">'''{{#explode:{{PAGENAME}}| |-1}}'''</td><td width="14%" align="center"> +1 </td><td width="14%" align="center">+2</td><td width="14%" align="center">+3</td>
</tr></table>
</tr></table>
</td></tr>
</td></tr>
</table>
</table>
'''{{PAGENAME}}''' (abbreviated to '''{{#switch:{{#explode:{{PAGENAME}}| |0}}|First=F.A. {{#explode:{{PAGENAME}}| |-1}}|Second=S.A. {{#explode:{{PAGENAME}}| |-1}}|Third=T.A. {{#explode:{{PAGENAME}}| |-1}}|Fourth=Fo.A. {{#explode:{{PAGENAME}}| |-1}}''' or '''F.O. {{#explode:{{PAGENAME}}| |-1}}}}''') is the {{#explode:{{PAGENAME}}| |-1}}{{#switch:{{#sub:{{PAGENAME}}|-2}}|01|21|31|41|51|61|71|81|91=st|02|22|32|42|52|62|72|82|92=nd|03|23|33|43|53|63|73|83|93=rd|#default=th}} [[Years of the Sun|year of the Sun]] of the [[{{#explode:{{PAGENAME}}| |-3}} {{#explode:{{PAGENAME}}| |-2}}]] of [[Middle-earth]]. {{#ifeq:{{#explode:{{PAGENAME}}| |0}}|Fourth|{{PAGENAME}} was also known as '''S.R. {{#expr:{{#explode:{{PAGENAME}}| |-1}}+1421}}''' in [[Shire-reckoning]]. }}{{#ifeq:{{#explode:{{PAGENAME}}| |0}}|Third|{{#ifexpr:{{#explode:{{PAGENAME}}| |-1}}>1600|{{PAGENAME}} was also known as '''S.R. {{#expr:{{#explode:{{PAGENAME}}| |-1}}-1600}}''' in [[Shire-reckoning]]. }}}}Notable events in this year include:  
'''{{PAGENAME}}''' (abbreviated to '''{{#switch:{{#explode:{{PAGENAME}}| |0}}|First=F.A. {{#explode:{{PAGENAME}}| |-1}}|Second=S.A. {{#explode:{{PAGENAME}}| |-1}}|Third=T.A. {{#explode:{{PAGENAME}}| |-1}}|Fourth=Fo.A. {{#explode:{{PAGENAME}}| |-1}}''' or '''F.O. {{#explode:{{PAGENAME}}| |-1}}}}''') is the {{#explode:{{PAGENAME}}| |-1}}{{#switch:{{#sub:{{PAGENAME}}|-2}}|01|21|31|41|51|61|71|81|91=st|02|22|32|42|52|62|72|82|92=nd|03|23|33|43|53|63|73|83|93=rd|#default=th}}{{#ifeq:{{PAGENAME}}|Third Age 3021|, and last,}}{{#ifeq:{{PAGENAME}}|First Age 590|, and last,}}{{#ifeq:{{PAGENAME}}|Third Age 3021|, and last,}} [[Years of the Sun|year of the Sun]] of the [[{{#explode:{{PAGENAME}}| |-3}} {{#explode:{{PAGENAME}}| |-2}}]] of [[Middle-earth]]. {{#ifeq:{{#explode:{{PAGENAME}}| |0}}|Fourth|{{PAGENAME}} was also known as '''S.R. {{#expr:{{#explode:{{PAGENAME}}| |-1}}+1421}}''' in [[Shire-reckoning]].}}{{#ifeq:{{#explode:{{PAGENAME}}| |0}}|Third|{{#ifexpr:{{#explode:{{PAGENAME}}| |-1}}>1600|{{PAGENAME}} was also known as '''S.R. {{#expr:{{#explode:{{PAGENAME}}| |-1}}-1600}}''' in [[Shire-reckoning]].}}}}
 
Notable events in this year include:  
<noinclude>[[Category:Calendars and events templates]]</noinclude>
<noinclude>[[Category:Calendars and events templates]]</noinclude>

Revision as of 11:05, 20 September 2014

Ages of the Children of Ilúvatar
Age:
First AgeSecond AgeThird AgeFourth Age
Year of
the Sun:
[[{{{1}}}|{{{1}}}]]-2-1Ardayearheader +1 +2+3

'Ardayearheader (abbreviated to ') is the Ardayearheaderth year of the Sun of the [[ ]] of Middle-earth.

Notable events in this year include: