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: | + | <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: | + | |class="bottomtemphead" colspan="{{#var:tlcols}}"| '''{{{title|}}}''' |
|- | |- | ||
− | ! {{#loop:i|{{{start}}}|{{#expr:{{#var: | + | ! {{#loop:i|{{{start}}}|{{#expr:{{#var:tlcols}}-1}}| {{#var:i}} {{!}}{{!}} }} {{{end}}} |
|- | |- | ||
− | {{# | + | {{#if: {{{rows|}}} | {{{rows}}} }} |
− | {{ | ||
− | |||
− | }} | ||
− | |||
|} | |} | ||
</div></includeonly><noinclude> | </div></includeonly><noinclude> | ||
Line 17: | Line 13: | ||
| start=10 | | start=10 | ||
| end=23 | | end=23 | ||
− | | rows= | + | | 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 |