Difference between revisions of "Template:Timeline color"

From Starsonata Wiki
Jump to: navigation, search
m (1 revision)
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{{/nowikiTemplate:Timeline color
+
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 21: Line 21:
 
{{purge}}
 
{{purge}}
 
[[Category:Style templates|Timeline color]]
 
[[Category:Style templates|Timeline color]]
/noincludeincludeonly{{#ifexpr: {{CURRENTTIMESTAMP}} {{{start}}}
+
</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>

Revision as of 16:05, 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 :

Click here to purge the server cache, this forces the server to update the contents