Template:Education statistics on the COVID-19 pandemic/doc

Testing

 * Learners affected:
 * Percentage:
 * Nationwide:
 * Local:
 * Total:
 * Open:
 * Date:
 * Shortdate:
 * Reference:
 * Accuratepercentage:

Usage
Retrieve desired values by passing a parameter to the temple when adding to an article. For example:
 * Get learners:
 * Get percentage:

All other parameters have the same name as described in Testing. "Total" describes nationwide + local closures. It does not include open schools.

Calculation
Since the original source does not provide the percentage of total students affected by the pandemic, we must calculate it. This is done using cross-multiplication, based on the equality: $$\frac{\mathrm{\%\ of\ students\ affected\ by\ nationwide\ closures}}{\mathrm{\#\ of\ students\ affected\ by\ nationwide\ closures}} = \frac{\color{Blue}{\mathrm{\%\ of\ total\ students\ affected\ }}(x)}{\mathrm{\#\ of\ affected\ students\ in\ total}}$$ where:% of students affected by nationwide closures is input into this template as parm ;


 * 1) of affected students in total is input into this template as parm ;


 * 1) of students affected by nationwide closures is input into this template as parm ; and

% of total students affected is the value (x) to be derived from the others. The necessary information can be found on the source provided (§COVID-19 Impact on Education). To obtain the total number of students affected, hover over the graph next to the map. The values for  and   are found just below the graph.

This template (actually its /core sub-template) uses the inputs to perform the necessary arithmetic: $${\color{Blue}{\mathrm{\%\ of\ total\ students\ affected\ }}} = \frac{\mathrm{\#\ of\ students\ affected\ by\ nationwide\ closures}}$$ or: $${\color{Blue}x} = \frac{\mathrm{nationala}}$$, which becomes the output value.