Template:Education statistics on the COVID-19 pandemic/doc
Template:Documentation subpage
Testing
- Learners affected: Template:Education statistics on the COVID-19 pandemic
- Percentage: Template:Education statistics on the COVID-19 pandemic
- Nationwide: Template:Education statistics on the COVID-19 pandemic
- Local: Template:Education statistics on the COVID-19 pandemic
- Total: Template:Education statistics on the COVID-19 pandemic
- Open: Template:Education statistics on the COVID-19 pandemic
- Date: Template:Education statistics on the COVID-19 pandemic
- Shortdate: Template:Education statistics on the COVID-19 pandemic
- Reference: Template:Education statistics on the COVID-19 pandemic
- Accuratepercentage: Template:Education statistics on the COVID-19 pandemic
Usage
Retrieve desired values by passing a parameter to the temple when adding to an article. For example:
- Get learners:
{{Education statistics on the COVID-19 pandemic|learners}} - Get percentage:
{{Education statistics on the COVID-19 pandemic|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:
where:Template:Ubl
The necessary information can be found on the source provided (§COVID-19 Impact on Education). To obtain the total number of students affected (totala), hover over the graph next to the map. The values for nationala and perc are found just below the graph.
This template (actually its /core sub-template) uses the inputs to perform the necessary arithmetic:
or: , which becomes the output value percentage.