Difference between revisions of "Template:Urgency"
Jump to navigation
Jump to search
(5 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
{{{3}}} is the timespan in weeks that is considered | {{{3}}} is the timespan in weeks that is considered | ||
− | FORMAT: {{Urgency|< | + | Be carefull the values 0.2 in this codesnippet is very important |
+ | {{#switch: {{InBand | {{{1}}}| {{{2}}}| {{{3}}}*0.2 }} | ||
+ | The sequence in the switch statement below is crucial: the first match will be returned, which results in a outer-in evaluation of the possible Urgency-situation. | ||
+ | |||
+ | FORMAT: {{Urgency|<weeknumber>|<weeknumber>|<number of weeks>}} | ||
Valid Calls: | Valid Calls: | ||
{{Urgency|13|12|30}} | {{Urgency|13|12|30}} | ||
− | |||
− | |||
− | |||
--> | --> | ||
− | {{#switch: {{InBand {{{1}}}| {{{2}}}| {{{3}}}*0.2 }} | + | {{#switch: {{InBand | {{{1}}}| {{{2}}}| {{{3}}}*0.2 }} |
| late = red | | late = red | ||
| early = green | | early = green | ||
+ | | inband = {{#switch: {{InBand | {{{1}}}| {{{2}}} | ({{{3}}}*0.1) }} | late = salmon | early = yellowgreen | inband = white }} | ||
| #default = black | | #default = black | ||
}} | }} |
Latest revision as of 20:55, 3 May 2010
black