Difference between revisions of "Template:Urgency"

From 2value wiki 2
Jump to navigation Jump to search
Line 1: Line 1:
{{#switch: {{#expr: ( {{{1}}} / {{{2|3}}}) round 0 }}
+
<!--
| -3 = red
+
Urgency: calculates the urgency of an action (current date versus Focalweek-Focalyear) and colorizes characters. We use symbols suchs as &hearts and &diams. The difference in weeks is chopped into blocks of weeks dependent of the total timespan of weeks.
| -2 = darksalmon
+
 
| -1 = salmon
+
Henk van Cann may 3th 2010: Urgency calculates the colors in weeks between the current date and the two arguments that are given
| 0 = white
+
{{{1}}} is the Due date in weeks
| 1 = lime
+
{{{2}}} is de current date in week before enddate, often resulting from WeekDiff call
| 2 = yellowgreen
+
{{{3}}} is the timespan in weeks that is considered
3 = green
+
 
 +
FORMAT: {{Urgency|<yearnumber>|<weeknumber>}}
 +
Valid Calls:
 +
{{Urgency|13|2|30}}
 +
-->
 +
{{#switch: {{Inband {{{2}}}| {{{1}}} | ({{{3}}}*0.2) }}  
 +
| late = red
 +
| early = green
 +
| inband = {{#switch: {{Inband {{{2}}}| {{{1}}} | ({{{3}}}*0.1) }}
 +
| late = salmon
 +
| early = yellowgreen
 +
| inband = white
 +
  }}
 
| #default = black
 
| #default = black
 
}}
 
}}

Revision as of 18:05, 3 May 2010

black