Template:Infobox demographics
From Historical Hastings
| This template uses Lua: |
This template can be used to provide a list of demographic subgroups with populations in a geographic or political region.
Basic usage[edit]
{{Infobox demographics
| auto_percent = yes
| type =
| group1 =
| pop1 =
| group2 =
| pop2 =
| group3 =
| pop3 =
| group4 =
| pop4 =
| group5 =
| pop5 =
| group6 =
| pop6 =
| group7 =
| pop7 =
| source =
}}
Automatic percentages[edit]
To enable automatic computation of the percentages, use |auto_percent=yes. The template will attempt to round each percentage to a fixed number of significant digits. To override the default rounding percentage, specify the number of decimal places using |round=. For example, use |round=2 for two decimal places. The total population used for the percentages is computed by summing the values of pop1 through pop7. To override the total, use |total=val, where val is the total population.
Manual percentages[edit]
If you would like to manually specify the percentages, use Template:Infobox3cols
{{Infobox demographics
| type =
| group1 =
| pop1 =
| percent1 =
| group2 =
| pop2 =
| percent2 =
| group3 =
| pop3 =
| percent3 =
| group4 =
| pop4 =
| percent4 =
| group5 =
| pop5 =
| percent5 =
| group6 =
| pop6 =
| percent6 =
| group7 =
| pop7 =
| percent7 =
| source =
}}
See also[edit]
| The above documentation is transcluded from Template:Infobox demographics/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. |