Template:Graph:Highlighted world map by country/doc
Jump to navigation
Jump to search
This is a documentation subpage for Template:Graph:Highlighted world map by country. It contains usage information, categories and other content that is not part of the original template page. |
This template is used to create a world map where certain countries are highlighted as needed. While the template has "Graph:" in the name to signifying the use of the Graph extension, it is not required when actually used.
Parameters
This template uses Lua: |
- [any two digit country code (must be uppercase)]: Sets the color that that country will be in on the map (for example
IT=green
would color Italy green andTD=#f53aaa
would color Chad in the color produced by hex RGB code #f53aaa). The template uses ISO 3166-1 alpha-2 for the country code. If no codes are entered, there is a defualt set of parameters to demo the map (see the inner template). - scale: Sets the size of the map. There is no exact width-height control available. By default, this is set to 90.
- projection: Sets what projection the map will use. By default it is set to equirectangular. Here are some available projections - be warned that not all of them work.
Usage
{{Highlighted world map by country|US=red}}
{{Highlighted world map by country|US=blue|scale=80}}
{{Highlighted world map by country|DE=green|FR=#a12aaa|CN=#000000|IT=green|scale=100|projection=mercator}}
(note that French Guiana is also colored in)
Issues
Very small countries (Singapore, Vatican City) aren't shown on the map.
Subtemplates
- Template:Highlighted world map by country/Inner - Inside template with more complex code that is harder to modify
- Template:Highlighted world map by country/testcases - Test case page