Difference between revisions of "Timelinerow"
From Sega Retro
Line 1: | Line 1: | ||
− | <includeonly>{{#vardefine:k|0}}{{incvar|tlcolor}}{{#ifeq:{{#var:tlcolor}}|8|{{#vardefine:tlcolor|1}}}} | + | <includeonly>{{#vardefine:k|0}}{{incvar|tlcolor}}{{#if:{{{header|}}}|{{addvar|tlcolor|-1}}}}{{#ifeq:{{#var:tlcolor}}|8|{{#vardefine:tlcolor|1}}}} |
{{#vardefine:tlcolorx|{{#switch:{{#var:tlcolor}} | {{#vardefine:tlcolorx|{{#switch:{{#var:tlcolor}} | ||
|1=colour-bg-red | |1=colour-bg-red | ||
Line 22: | Line 22: | ||
{{#ifeq: {{#var:i}} | 0 | {{#ifexpr: {{#var:tlstart}} <> {{#var:vstart}} | colspan="{{#expr:{{#var:vstart}}-{{#var:tlstart}}}}" {{!}} {{!}}{{!}} }} | | {{#ifeq: {{#var:i}} | 0 | {{#ifexpr: {{#var:tlstart}} <> {{#var:vstart}} | colspan="{{#expr:{{#var:vstart}}-{{#var:tlstart}}}}" {{!}} {{!}}{{!}} }} | | ||
{{#ifexpr: {{#var:vstart}}-{{#var:vprev}} > 1 | colspan="{{#expr:{{#var:vstart}}-{{#var:vprev}}-1}}" {{!}} {{!}}{{!}} }} | {{#ifexpr: {{#var:vstart}}-{{#var:vprev}} > 1 | colspan="{{#expr:{{#var:vstart}}-{{#var:vprev}}-1}}" {{!}} {{!}}{{!}} }} | ||
− | }} style="border:1px solid grey; text-align:{{#if:{{{header|}}}|center; background:gainsboro; font-weight:bold | + | }} style="border:1px solid grey; text-align:{{#if:{{{header|}}}|center; background:gainsboro; font-weight:bold|left}};" class="{{#var:tlcolorx}}" colspan="{{#expr:{{#var:vend}}-{{#var:vstart}}+1}}" {{!}} {{#var:val_{{#expr: ({{#var:i}}*3)+1 }}}} {{#ifexpr: {{#var:i}} < {{#expr:({{#var:k}}/3)-1}} | {{!}}{{!}} }} |
}} | }} | ||
{{!}}-style="font-size:12px;"</includeonly><noinclude> | {{!}}-style="font-size:12px;"</includeonly><noinclude> |
Revision as of 19:16, 8 April 2017
See Template:Timeline for usage.