Template:Project status: Difference between revisions

From CSDMS
Created page with "{{#expr: trunc(( {{#ifexist:{{{status1}}} | 1 | 0 }} + {{#ifeq: {{{status2}}} | Done | 1 | 0 }} + {{#ifeq: {{{status3}}} | Done | 1 | 0 }} + {{#ifeq: {{{status4}}} | Done | 1 | 0..."
 
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#expr: trunc((
{{#vardefine:Notapplicable_projectstatus|{{#expr: +
{{#ifexist:{{{status1}}} | 1 | 0 }} +
{{#ifeq: {{{status2}}} | Done | 1 | 0 }} +
{{#ifeq: {{{status3}}} | Done | 1 | 0 }} +
{{#ifeq: {{{status4}}} | Done | 1 | 0 }} +
{{#ifeq: {{{status5}}} | Done | 1 | 0 }} +
{{#ifeq: {{{status6}}} | Done | 1 | 0 }} +
{{#ifeq: {{{status7}}} | Done | 1 | 0 }} +
{{#ifeq: {{{status8}}} | Done | 1 | 0 }} +
{{#ifeq: {{{status9}}} | Done | 1 | 0 }} +
{{#ifeq: {{{status10}}} | Done | 1 | 0 }} +
{{#ifeq: {{{status11}}} | Done | 1 | 0 }} +
{{#ifeq: {{{status12}}} | Done | 1 | 0 }} +
{{#ifeq: {{{status13}}} | Done | 1 | 0 }} +
{{#ifeq: {{{status14}}} | Done | 1 | 0 }} +
{{#ifeq: {{{status15}}} | Done | 1 | 0 }}  ) /
{{#ifeq:
{{#ifeq: {{{status2}}} | Not applicable |  1 | 0 }} +
{{#ifeq: {{{status2}}} | Not applicable |  1 | 0 }} +
{{#ifeq: {{{status3}}} | Not applicable |  1 | 0 }} +
{{#ifeq: {{{status3}}} | Not applicable |  1 | 0 }} +
Line 30: Line 14:
{{#ifeq: {{{status14}}} | Not applicable |  1 | 0 }} +
{{#ifeq: {{{status14}}} | Not applicable |  1 | 0 }} +
{{#ifeq: {{{status15}}} | Not applicable |  1 | 0 }}
{{#ifeq: {{{status15}}} | Not applicable |  1 | 0 }}
| 15 | 1 | ( 15 -
}}}}
{{#ifeq: {{{status2}}} | Not applicable |  1 | 0 }} +
{{#vardefine:Done_projectstatus|{{#expr:  
{{#ifeq: {{{status3}}} | Not applicable |  1 | 0 }} +
{{#ifexist:{{{status1}}} | 1 | 0 }} +
{{#ifeq: {{{status4}}} | Not applicable |  1 | 0 }} +
{{#ifeq: {{{status5}}} | Not applicable | 1 | 0 }} +
{{#ifeq: {{{status6}}} | Not applicable |  1 | 0 }} +
{{#ifeq: {{{status7}}} | Not applicable |  1 | 0 }} +
{{#ifeq: {{{status8}}} | Not applicable |  1 | 0 }} +
{{#ifeq: {{{status9}}} | Not applicable |  1 | 0 }} +
{{#ifeq: {{{status10}}} | Not applicable |  1 | 0 }} +
{{#ifeq: {{{status11}}} | Not applicable |  1 | 0 }} +
{{#ifeq: {{{status12}}} | Not applicable |  1 | 0 }} +
{{#ifeq: {{{status13}}} | Not applicable |  1 | 0 }} +
{{#ifeq: {{{status14}}} | Not applicable |  1 | 0 }} +
{{#ifeq: {{{status15}}} | Not applicable |  1 | 0 }}
) }} * 100)}}%
 
 
{{percent_filled | index={{#expr: trunc((
{{#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 }} +
Line 55: Line 22:
{{#ifeq: {{{status5}}} | Done | 1 | 0 }} +
{{#ifeq: {{{status5}}} | Done | 1 | 0 }} +
{{#ifeq: {{{status6}}} | Done | 1 | 0 }} +
{{#ifeq: {{{status6}}} | Done | 1 | 0 }} +
{{#ifeq: {{{status7}}} | Done | 1 | 0 }} ) /
{{#ifeq: {{{status7}}} | Done | 1 | 0 }} +
{{#ifeq:
{{#ifeq: {{{status8}}} | Done | 1 | 0 }} +
{{#ifeq: {{{status1}}} | Not applicable | 1 | 0 }} +
{{#ifeq: {{{status9}}} | Done | 1 | 0 }} +
{{#ifeq: {{{status2}}} | Not applicable | 1 | 0 }} +
{{#ifeq: {{{status10}}} | Done | 1 | 0 }} +
{{#ifeq: {{{status3}}} | Not applicable | 1 | 0 }} +
{{#ifeq: {{{status11}}} | Done | 1 | 0 }} +
{{#ifeq: {{{status4}}} | Not applicable | 1 | 0 }} +
{{#ifeq: {{{status12}}} | Done | 1 | 0 }} +
{{#ifeq: {{{status5}}} | Not applicable | 1 | 0 }} +
{{#ifeq: {{{status13}}} | Done | 1 | 0 }} +
{{#ifeq: {{{status6}}} | Not applicable | 1 | 0 }} +
{{#ifeq: {{{status14}}} | Done | 1 | 0 }} +
{{#ifeq: {{{status7}}} | Not applicable | 1 | 0 }}
{{#ifeq: {{{status15}}} | Done | 1 | 0 }}
| 7 | 1 | ( 7 -
}}}}
{{#ifeq: {{{status1}}} | Not applicable | 1 | 0 }} +
|Project status:
{{#ifeq: {{{status2}}} | Not applicable | 1 | 0 }} +
|{{#expr:{{#ifeq: {{#var:Notapplicable_projectstatus}}|15|100|{{#expr:trunc(({{#var:Done_projectstatus}}/(15-{{#var:Notapplicable_projectstatus}}))*100)}} }} }}%
{{#ifeq: {{{status3}}} | Not applicable | 1 | 0 }} +
{{#ifexpr:{{#ifeq: {{#var:Notapplicable_projectstatus}}|15|1|trunc({{#var:Done_projectstatus}}/(15-{{#var:Notapplicable_projectstatus}}))}}*100= 100 |[[Category:Complete component]]|[[Category:Incomplete component]]}}
{{#ifeq: {{{status4}}} | Not applicable |  1 | 0 }} +
{{#ifeq: {{{status5}}} | Not applicable |  1 | 0 }} +
{{#ifeq: {{{status6}}} | Not applicable | 1 | 0 }} +
{{#ifeq: {{{status7}}} | Not applicable |  1 | 0 }}
) }} * 100)}}
}}

Latest revision as of 16:10, 9 June 2011


|Project status: |0%