Template talk:Country table
From Wikipedia, the free encyclopedia
[edit] Example
Country | Area (km²) | Population |
---|---|---|
Australia | 7,741,220 | 20,155,000 |
Brazil | 8,514,877 | 186,405,000 |
Canada | 9,970,610 | 32,268,000 |
People's Republic of China | 9,598,086 | 1,315,844,000 |
India | 3,158,290 | 1,103,371,000 |
Russia | 17,098,242 | 143,202,000 |
United States of America | 9,629,091 | 298,213,000 |
is created by including:
{{Country table |Headings = [[List of countries and outlying territories by total area|Area]] (km²) {{!!}} [[List of countries by population|Population]] |RUS = 17,098,242 {{!!}} 143,202,000 |CAN = 9,970,610 {{!!}} 32,268,000 |USA = 9,629,091 {{!!}} 298,213,000 |CHN = 9,598,086 {{!!}} 1,315,844,000 |BRA = 8,514,877 {{!!}} 186,405,000 |AUS = 7,741,220 {{!!}} 20,155,000 |IND = 3,158,290 {{!!}} 1,103,371,000 }}
[edit] Formatting options
HTML and CSS formatting of cells can be achieved by replacing {{!!}} with {{!}} formatting {{!}}.
To format the first data column, add formatting {{!}} before the data.
For example:
Country | Area (km²) | Population |
---|---|---|
Australia | 7,741,220 | 20,155,000 |
Brazil | 8,514,877 | 186,405,000 |
Canada | 9,970,610 | 32,268,000 |
People's Republic of China | 9,598,086 | 1,315,844,000 |
India | 3,158,290 | 1,103,371,000 |
Russia | 17,098,242 | 143,202,000 |
United States of America | 9,629,091 | 298,213,000 |
is created by including:
{{Country table |Headings = [[List of countries and outlying territories by total area|Area]] (km²) {{!!}} [[List of countries by population|Population]] |RUS = align=right bgcolor=PeachPuff {{!}} 17,098,242 {{!}} align=right {{!}} 143,202,000 |CAN = align=right {{!}} 9,970,610 {{!}} align=right {{!}} 32,268,000 |USA = align=right {{!}} 9,629,091 {{!}} align=right {{!}} 298,213,000 |CHN = align=right {{!}} 9,598,086 {{!}} align=right bgcolor=lightyellow {{!}} 1,315,844,000 |BRA = align=right {{!}} 8,514,877 {{!}} align=right {{!}} 186,405,000 |AUS = align=right {{!}} 7,741,220 {{!}} align=right {{!}} 20,155,000 |IND = align=right {{!}} 3,158,290 {{!}} align=right bgcolor=lightyellow {{!}} 1,103,371,000 }}
[edit] Limitations
Currently, countries are always listed in alphabetical order.
It is not currently possible to format the country cells. This could be achieved by adding another "if" value.