Difference between revisions of "QBWiki:WikiProject Missing articles/Progress row"

From QBWiki
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>{|class="wikitable"
 
<noinclude>{|class="wikitable"
 
</noinclude>|- {{#ifeq:{{{missing|}}}|0|style="background:silver}}
 
</noinclude>|- {{#ifeq:{{{missing|}}}|0|style="background:silver}}
| {{ucfirst:{{{type|<strong class="error">You must provide the <nowiki>{{{type}}}</nowiki> parameter.</strong>}}}}}
 
 
| {{#if:{{{name|}}}<!--
 
| {{#if:{{{name|}}}<!--
 
-->| [[{{{link|{{{name}}}}}}|{{{name}}}]]<!--
 
-->| [[{{{link|{{{name}}}}}}|{{{name}}}]]<!--
Line 7: Line 6:
 
-->}}
 
-->}}
 
| {{#if:{{{total|}}}<!--  
 
| {{#if:{{{total|}}}<!--  
  -->| {{nts|{{formatnum:{{{total}}}|R}}}}<!--  
+
  -->| {{formatnum:{{{total}}}|R}}<!--  
 
  -->| <strong class="error">You must provide the <nowiki>{{{total}}}</nowiki> parameter.</strong><!--  
 
  -->| <strong class="error">You must provide the <nowiki>{{{total}}}</nowiki> parameter.</strong><!--  
 
  -->}}
 
  -->}}
 
| {{#if:{{{missing|}}}<!--  
 
| {{#if:{{{missing|}}}<!--  
  -->| {{nts|{{formatnum:{{{missing}}}|R}}}}<!--  
+
  -->| {{formatnum:{{{missing}}}|R}}<!--  
 
  -->| <strong class="error">You must provide the <nowiki>{{{missing}}}</nowiki> parameter.</strong><!--  
 
  -->| <strong class="error">You must provide the <nowiki>{{{missing}}}</nowiki> parameter.</strong><!--  
 
  -->}}
 
  -->}}
Line 19: Line 18:
 
   -->{{!}} {{#expr: ( {{{total|1}}} - {{{missing|1}}} ) / {{{total|1}}} * 100 round 2 }}%<!--
 
   -->{{!}} {{#expr: ( {{{total|1}}} - {{{missing|1}}} ) / {{{total|1}}} * 100 round 2 }}%<!--
 
  -->}}
 
  -->}}
| {{#if:{{{start|}}}<!--
+
| {{{start|n/a}}}
-->| {{#iferror:{{#time:|{{{start}}}}}<!--
+
| {{{stop|n/a}}}
    -->| <strong class="error">Please format the starting date properly (e.g. {{#time:Y-m-d}}).</strong><!--
 
    -->| {{dts|{{{start|}}}}}<!--
 
    -->}}
 
    | <strong class="error">You must provide the <nowiki>{{{start}}}</nowiki> parameter.</strong><!--
 
-->}}
 
| {{#ifeq:{{{missing|}}}|0<!--
 
-->| {{#if:{{{end|}}}<!--
 
    -->| {{#iferror:{{#time:|{{{end}}}}}<!--
 
        -->| <strong class="error">Please format the ending date properly (e.g. {{#time:Y-m-d}}).</strong><!--
 
        -->| {{dts|{{{end|}}}}}<!--
 
        -->}}<!--
 
    -->| <strong class="error">The missing count has been set to zero, so you must provide the ending date.</strong><!--
 
    -->}}<!--
 
-->| {{#iferror: {{dts|{{#time: Y-m-d | + {{#expr: {{{total}}}*{{age in days|{{#time:Y|{{{start}}}}}|{{#time:m|{{{start|}}}}}|{{#time:d|{{{start|}}}}}}}/({{{total}}}-{{{missing}}}) - {{age in days|{{#time:Y|{{{start|}}}}}|{{#time:m|{{{start|}}}}}|{{#time:d|{{{start|}}}}}}} round 0}} days}}}}<!--
 
    -->| {{N/A}}<!-- ending date only be predicted if the the starting date and the counts are provided
 
    -->}}<!--
 
-->}}
 
| {{#iferror: {{nts<!--
 
            -->| {{age in days<!--
 
                -->| {{#time:Y|{{{start}}}}}|{{#time:m|{{{start}}}}}|{{#time:d|{{{start}}}}}<!--
 
                -->| {{#if:{{{end|}}} | {{#time:Y|{{{end}}}}} | {{CURRENTYEAR}} }}<!--
 
                -->| {{#if:{{{end|}}} | {{#time:m|{{{end}}}}} | {{CURRENTMONTH}} }}<!--
 
                -->| {{#if:{{{end|}}} | {{#time:d|{{{end}}}}} | {{CURRENTDAY}} }}<!--
 
                -->}}<!--
 
            -->}}<!--
 
-->| {{N/A}}<!-- days elapsed can only be calculated if the the starting date is provided
 
-->}}
 
 
|-
 
|-
 
<noinclude>|}</noinclude>
 
<noinclude>|}</noinclude>

Latest revision as of 09:22, 7 October 2021

You must provide the {{{name}}} parameter. You must provide the {{{total}}} parameter. You must provide the {{{missing}}} parameter. 0% n/a n/a