Template:Infobox demographics/doc

From The Global Wiki
Jump to navigation Jump to search

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

Basic usage

Script error: No such module "Infobox3cols".

{{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 Script error: No such module "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