قالب:Interactive COVID-19 maps/common
This template serves as a meta-template for the construction of interactive maps. While designed for use with COVID-19 related data, it should be sufficiently general for most purposes as long as the data are in the correct format. Editors interested in using or maintaining this meta-template should read the interactive graph tutorial which this template is based off-of.
Usage
{{Interactive COVID-19 maps/common | id = {{{id|<!--default value-->}}} | data-coloring = <!-- Wikilink without [[]] pointing to page with CSV data used to fill in countries. See [[Template:Interactive COVID-19 maps/data/Confirmed covid cases-csv]] for an example --> | data-dates = <!-- Same as above, but this data is a by-date, global total, rather than by-country-by-date total. See [[Template:Interactive COVID-19 maps/data/global Confirmed covid cases by date-csv]] for an example --> | color-ramp-type = <!-- The type of color ramp to use. Default is log, see [https://github.com/vega/vega/wiki/Scales] for other types. --> | domain-min = <!-- Scale minimum --> | domain-magnitude = <!-- If color-ramp-type is log, the order of magnitude for the maximum. For example, a value of 2 would have a scale maximum of 100, 3 -> 1000, 4 -> 10000, etc --> | legend-title = <!-- Title to use for the legend --> | title = <!-- Title for the entire graph --> | scale = {{{scale|<!-- default value -->}}} }}
Examples
See Template:Interactive COVID-19 maps for a list of maps which are made using this template.
TemplateData
A meta-template for creating interactive data visualizations using maps
وسيط | وصف | نوع | حالة | |
---|---|---|---|---|
Title | title | Title for the graph | نص | مقترح |
Country fill data | data-coloring | Dataset used to set the fill color for countries
| اسم الصفحة | مطلوب |
Minimum value | domain-min | دون وصف | غير معروف | اختياري |
Maximum order of magnitude | domain-magnitude | The order of magnitude for the scale maximum
| رقم | مطلوب |
By-date totals | data-dates | Global totals by date
| اسم الصفحة | مطلوب |
Legend title | legend-title | Title for the legend
| نص | مقترح |
Scaling coefficient | scale | A percentage value (as a decimal) to resize the map
| رقم | مقترح |
HTML identifier | id | Unique string to identify this graph
| نص | مقترح |
Width | width | Default width
| رقم | مستغنى عنه |
Height | height | Default height
| رقم | مستغنى عنه |
Padding | padding | دون وصف
| غير معروف | اختياري |
Color ramp type | color-ramp-type | دون وصف
| نص | اختياري |
The above documentation is transcluded from قالب:Interactive COVID-19 maps/common/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |