Template:Status milestone coupled: Difference between revisions

From CSDMS
No edit summary
No edit summary
Line 1: Line 1:
{{#vardefine:Notapplicable_coupled|{{#expr:  
{{percent_filled | index={{#expr: trunc((
{{#ifeq: {{{status1}}} | Done | 1 | 0 }} +
{{#ifeq: {{{status2}}} | Done | 1 | 0 }} +
{{#ifeq: {{{status3}}} | Done | 1 | 0 }} +
{{#ifeq: {{{status4}}} | Done | 1 | 0 }}  ) /
{{#ifeq:
{{#ifeq: {{{status1}}} | Not applicable |  1 | 0 }} +
{{#ifeq: {{{status2}}} | Not applicable |  1 | 0 }} +
{{#ifeq: {{{status3}}} | Not applicable |  1 | 0 }} +
{{#ifeq: {{{status4}}} | Not applicable |  1 | 0 }}
| 4 | 1 | ( 4 -
{{#ifeq: {{{status1}}} | Not applicable |  1 | 0 }} +
{{#ifeq: {{{status1}}} | Not applicable |  1 | 0 }} +
{{#ifeq: {{{status2}}} | Not applicable |  1 | 0 }} +
{{#ifeq: {{{status2}}} | Not applicable |  1 | 0 }} +
{{#ifeq: {{{status3}}} | Not applicable |  1 | 0 }} +
{{#ifeq: {{{status3}}} | Not applicable |  1 | 0 }} +
{{#ifeq: {{{status4}}} | Not applicable |  1 | 0 }}
{{#ifeq: {{{status4}}} | Not applicable |  1 | 0 }}
}}}}
) }} * 100)}}
{{#vardefine:Done_coupled|{{#expr:  
}}{{#ifexpr: trunc((
{{#ifeq: {{{status1}}} | Done | 1 | 0 }} +
{{#ifeq: {{{status1}}} | Done | 1 | 0 }} +
{{#ifeq: {{{status2}}} | Done | 1 | 0 }} +
{{#ifeq: {{{status2}}} | Done | 1 | 0 }} +
{{#ifeq: {{{status3}}} | Done | 1 | 0 }} +
{{#ifeq: {{{status3}}} | Done | 1 | 0 }} +
{{#ifeq: {{{status4}}} | Done | 1 | 0 }}
{{#ifeq: {{{status4}}} | Done | 1 | 0 }} ) /
}}}}
{{#ifeq:
{{percent_filled | index={{#ifexpr: trunc({{#ifeq: {{#var:Notapplicable_coupled}} | 4 | 1 | ({{#var:Done_coupled}}/{{#var:Notapplicable_coupled}})* 100)}}
{{#ifeq: {{{status1}}} | Not applicable |  1 | 0 }} +
{{#ifeq: {{{status2}}} | Not applicable |  1 | 0 }} +
{{#ifeq: {{{status3}}} | Not applicable | 1 | 0 }} +
{{#ifeq: {{{status4}}} | Not applicable |  1 | 0 }}
| 4 | 1 | ( 4 -
{{#ifeq: {{{status1}}} | Not applicable |  1 | 0 }} +
{{#ifeq: {{{status2}}} | Not applicable | 1 | 0 }} +
{{#ifeq: {{{status3}}} | Not applicable |  1 | 0 }} +
{{#ifeq: {{{status4}}} | Not applicable |  1 | 0 }}
) }} * 100) = 100 |[[Category:Coupled component]]|[[Category:Incomplete coupled component]]}}

Revision as of 13:57, 9 June 2011

0%