Difference between revisions of "Template:Timeline color"
From Starsonata Wiki
m (changed category) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | noinclude | + | <noinclude> |
Usage : call this template after a color style code like bgcolor= | Usage : call this template after a color style code like bgcolor= | ||
− | Syntax : nowiki{{/ | + | Syntax : <nowiki>{{</nowiki>Template:Timeline color |
|'''start = '''''startingTimeStamp'' | |'''start = '''''startingTimeStamp'' | ||
Line 14: | Line 14: | ||
|'''future = '''''colorForFutureEvent'' [optionnal, default = lightblue] | |'''future = '''''colorForFutureEvent'' [optionnal, default = lightblue] | ||
− | nowiki}}/nowiki | + | <nowiki>}}</nowiki> |
TimeStamp format : AAAAMMDDHHMMSS | TimeStamp format : AAAAMMDDHHMMSS | ||
Line 20: | Line 20: | ||
This might be useful to refresh : | This might be useful to refresh : | ||
{{purge}} | {{purge}} | ||
+ | {{GW}} | ||
[[Category:Style templates|Timeline color]] | [[Category:Style templates|Timeline color]] | ||
− | / | + | </noinclude><includeonly>{{#ifexpr: {{CURRENTTIMESTAMP}} < {{{start}}} |
| {{{future|lightblue}}} | | {{{future|lightblue}}} | ||
− | | {{#ifexpr: {{CURRENTTIMESTAMP}} = {{{start}}} | + | | {{#ifexpr: {{CURRENTTIMESTAMP}} >= {{{start}}} |
− | and {{CURRENTTIMESTAMP}} = {{{end}}} | + | and {{CURRENTTIMESTAMP}} <= {{{end}}} |
| {{{present|lightcoral}}} | | {{{present|lightcoral}}} | ||
− | | {{{past|gray}}} }} }}/includeonly | + | | {{{past|gray}}} }} }}</includeonly> |
Latest revision as of 16:19, 25 January 2009
Usage : call this template after a color style code like bgcolor=
Syntax : {{Template:Timeline color
|start = startingTimeStamp
|end = endindTimeStamp
|past = colorForPastEvent [Optionnal, default = gray]
|present = colorForCurrentEvent [Optionnal, default = lightcoral]
|future = colorForFutureEvent [optionnal, default = lightblue]
}}
TimeStamp format : AAAAMMDDHHMMSS
This might be useful to refresh :
part of this article was copied from color Template:Timeline color