Difference between revisions of "QBWiki:WikiProject Missing articles/Progress row"
Jump to navigation
Jump to search
Kevin Wang (talk | contribs) (Created page with "<noinclude>{|class="wikitable" </noinclude>|- {{#ifeq:{{{missing|}}}|0|style="background:silver}} | {{ucfirst:{{{type|<strong class="error">You must provide the <nowiki>{{{typ...") |
Kevin Wang (talk | contribs) |
||
Line 13: | Line 13: | ||
-->| {{nts|{{formatnum:{{{missing}}}|R}}}}<!-- | -->| {{nts|{{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><!-- | ||
+ | -->}} | ||
+ | | {{#ifeq:{{{missing|}}}|0<!-- | ||
+ | -->| style="background-color: hsl( 120, 100%, 75%);" {{!}} 100%<!-- | ||
+ | -->| style="background-color: hsl( {{#expr:(( {{{total|1}}} - {{{missing|1}}} ) / {{{total|1}}}) * 120}}, 100%, 75%);"<!-- | ||
+ | -->{{!}} {{#expr: ( {{{total|1}}} - {{{missing|1}}} ) / {{{total|1}}} * 100 round 2 }}%<!-- | ||
+ | -->}} | ||
+ | | {{#if:{{{start|}}}<!-- | ||
+ | -->| {{#iferror:{{#time:|{{{start}}}}}<!-- | ||
+ | -->| <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> |
Revision as of 09:14, 7 October 2021
You must provide the {{{type}}} parameter. | You must provide the {{{name}}} parameter. | You must provide the {{{total}}} parameter. | You must provide the {{{missing}}} parameter. | 0% | You must provide the {{{start}}} parameter. | Template:Dts | Template:Nts |