Difference between revisions of "Timeline"

From Sega Retro

Line 4: Line 4:
 
|class="bottomtemphead" colspan="{{#var:tlcols}}"| '''{{{title|}}}'''
 
|class="bottomtemphead" colspan="{{#var:tlcols}}"| '''{{{title|}}}'''
 
|-style="font-size:12px;"
 
|-style="font-size:12px;"
! {{#loop:i|{{{start}}}|{{#expr:{{#var:tlcols}}-1}}| {{#if:{{{{{#var:i}}|}}}|{{{{{#var:i}}|}}}|{{#if:{{{trimyears|}}}|{{#sub:{{#var:i}}|-2|2}}|{{#var:i}}}}}} {{!}}{{!}} }} {{#if:{{{{{{end}}}|}}}|{{{{{{end}}}|}}}|{{#if:{{{trimyears|}}}|{{#sub:{{{end}}}|-2|2}}|{{{end}}}}}}}
+
!style="padding:4px;"| {{#loop:i|{{{start}}}|{{#expr:{{#var:tlcols}}-1}}| {{#if:{{{{{#var:i}}|}}}|{{{{{#var:i}}|}}}|{{#if:{{{trimyears|}}}|{{#sub:{{#var:i}}|-2|2}}|{{#var:i}}}}}} {{!}}{{!}}style="padding:4px;"{{!}} }} {{#if:{{{{{{end}}}|}}}|{{{{{{end}}}|}}}|{{#if:{{{trimyears|}}}|{{#sub:{{{end}}}|-2|2}}|{{{end}}}}}}}
 
|-style="font-size:12px;"
 
|-style="font-size:12px;"
 
{{#if: {{{rows|}}} | {{{rows}}} }}
 
{{#if: {{{rows|}}} | {{{rows}}} }}
 
|}
 
|}
 
</div></includeonly><noinclude>
 
</div></includeonly><noinclude>
 +
 
==Usage==
 
==Usage==
 
<pre>
 
<pre>

Revision as of 21:12, 14 April 2017


Usage

{{timeline
| title=
| start=
| end=
| trimyears=
| rows=
{{timelinerow|text|start|end
}}
}}

Example

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