Template:Infobox demographics/doc

Revision as of 12:45, 6 January 2018 by Admin (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This template can be used to provide a list of demographic subgroups with populations in a geographic or political region.

Basic usage

Type
Group 1 700 (25%)
Group 2 600 (21.4%)
Group 3 500 (17.9%)
Group 4 400 (14.3%)
Group 5 300 (10.7%)
Group 6 200 (7.14%)
Group 7 100 (3.57%)
Source: Name of source
{{Infobox demographics
| auto_percent = yes
| type   = 
| group1 = 
| pop1   = 
| group2 = 
| pop2   = 
| group3 = 
| pop3   = 
| group4 = 
| pop4   = 
| group5 = 
| pop5   = 
| group6 = 
| pop6   = 
| group7 = 
| pop7   = 
| source = 
}}

Automatic percentages

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

If you would like to manually specify the percentages, use

Type
Group 1 Pop 1 (Percent 1)
Group 2 Pop 2 (Percent 2)
Group 3 Pop 3 (Percent 3)
Group 4 Pop 4 (Percent 4)
Group 5 Pop 5 (Percent 5)
Group 6 Pop 6 (Percent 6)
Group 7 Pop 7 (Percent 7)
Source: Name of source
{{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