Difference between revisions of "Template:Urgency"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
− | {{#switch: {{ | + | <!-- |
− | | | + | 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. |
− | | | + | |
− | | | + | Henk van Cann may 3th 2010: Urgency calculates the colors in weeks between the current date and the two arguments that are given |
− | | | + | {{{1}}} is the Due date in weeks |
− | | | + | {{{2}}} is de current date in week before enddate, often resulting from WeekDiff call |
− | | | + | {{{3}}} is the timespan in weeks that is considered |
− | | | + | |
+ | 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