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

From testwiki
Jump to navigation Jump to search

Template:Documentation subpage

Testing

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: % of students affected by nationwide closures# of students affected by nationwide closures=% of total students affected (x)# of affected students in total 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: % of total students affected =(% of students affected by nationwide closures)(# of affected students in total)# of students affected by nationwide closures or: x=(perc)(totala)nationala, which becomes the output value percentage.