Template:Ardayearheader: Difference between revisions

From Tolkien Gateway
m (New plan)
m (abbreviation bit)
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}}]]|[[{{#explode:{{PAGENAME}}| |-5}} {{#explode:{{PAGENAME}}| |-4}} {{#explode:{{PAGENAME}}| |-3}} {{#explode:{{PAGENAME}}| |-2}} {{{1}}}|{{{1}}}]]}}</td><td width="14%" align="center">[[Third Age 462|462]]</td><td width="14%" align="center">[[Third Age 480|480]]</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}}]]|[[{{#explode:{{PAGENAME}}| |-3}} {{#explode:{{PAGENAME}}| |-2}} {{{1}}}|{{{1}}}]]}}</td><td width="14%" align="center">[[Third Age 462|462]]</td><td width="14%" align="center">[[Third Age 480|480]]</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}}''' 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]]. Notable events in this year include:  
'''{{PAGENAME}}''' (often 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]]. Notable events in this year include:  
<noinclude>[[Category:Calendars and events templates]]</noinclude>
<noinclude>[[Category:Calendars and events templates]]</noinclude>

Revision as of 10:20, 20 September 2014

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

Ardayearheader (often abbreviated to {{#switch:Ardayearheader|First=F.A. {{#explode:Template:PAGENAME|Second=S.A. {{#explode:Template:PAGENAME|Third=T.A. {{#explode:Template:PAGENAME|Fourth=Fo.A. {{#explode:Template:PAGENAME or F.O. Template:PAGENAME)is the Ardayearheaderth year of the Sun of the [[ ]] of Middle-earth. Notable events in this year include: