Difference between revisions of "Timeline"

From Sega Retro

(wip; doesn't look like loops work with tables)
 
(this was more difficult than you might think)
Line 1: Line 1:
<includeonly><div style="overflow:auto;">{{#vardefine:cols|{{#expr:{{{end}}}-{{{start}}}+1}}}}
+
<includeonly><div style="overflow:auto;">{{#vardefine:tlcols|{{#expr:{{{end}}}-{{{start}}}+1}}}}{{#vardefine:tlstart|{{{start|0}}}}}
 
{| class="bottomtemplate" align="center"
 
{| class="bottomtemplate" align="center"
 
|-
 
|-
|class="bottomtemphead" colspan="{{#var:cols}}"| '''{{{title|}}}'''
+
|class="bottomtemphead" colspan="{{#var:tlcols}}"| '''{{{title|}}}'''
 
|-
 
|-
! {{#loop:i|{{{start}}}|{{#expr:{{#var:cols}}-1}}| {{#var:i}} {{!}}{{!}} }} {{{end}}}
+
! {{#loop:i|{{{start}}}|{{#expr:{{#var:tlcols}}-1}}| {{#var:i}} {{!}}{{!}} }} {{{end}}}
 
|-
 
|-
{{#loop:i|0|{{{rows|1}}}|
+
{{#if: {{{rows|}}} | {{{rows}}} }}
{{!}} doop
 
{{!}}-
 
}}
 
 
 
 
|}
 
|}
 
</div></includeonly><noinclude>
 
</div></includeonly><noinclude>
Line 17: Line 13:
 
| start=10
 
| start=10
 
| end=23
 
| end=23
| rows=4
+
| rows=
 +
{{timelinerow|Precambrian|10|14
 +
|Jurassic|15|18
 +
|Cretaceous|19|23
 +
}}
 +
{{timelinerow|Neolithic|12|15
 +
|Roman Empire|17|19
 +
|Victorian|22|22
 +
}}
 
}}
 
}}
 
</noinclude>
 
</noinclude>

Revision as of 19:19, 31 March 2017

History of the World
10 11 12 13 14 15 16 17 18 19 20 21 22 23
Precambrian Jurassic Cretaceous
Neolithic Roman Empire Victorian