Difference between revisions of "Template:Timeline color"

From Starsonata Wiki
Jump to: navigation, search
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{{/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 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]]
/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>

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 :

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

part of this article was copied from color Template:Timeline color