Template:Countrymap/doc

From English Wikipedia @ Freddythechick

Usage

This template Country map provides an easy to use country map with links to categories (or articles) on the specific subject per country.

Only countries with an existing link are shown.

Parameters

1. Size of the map (default 720, displays the map 720x491px)
2. The prefix of the links (Default "Category:")
3. For each country a specific link can be specified. The name of the parameter is the ISO 3166-1 country code (and some ISO 3166-2 codes)

The country parameters are optional, and only to be used in case the default link provided by parameter 2 in combination with the list of countries provided does not correspond to the actual name of the category (or article)
See the country details below for a list of countries, their location and the ISO 3166-1 codes used as parameter

Example

On Category:Scouting and Guiding by country the following template can be placed:

<syntaxhighlight lang="wikitext" style="overflow:auto">

Country map
Country map
Country map

<imagemap> image:World map blank shorelines semiwikimapia.svg|720px|countries rect 1 1 1 1 countries

</imagemap>
Tuvalu
Bermuda
Saint Kitts and Nevis
Malta
Grenada
Saint Vincent and the Grenadines
Barbados
Antigua and Barbuda
Saint Lucia
Singapore
Kiribati
Tonga
Dominica
Bahrain
Hong Kong
Mauritius
Luxembourg
Samoa
Trinidad and Tobago
Brunei
the State of Palestine
Cyprus
Lebanon
Jamaica
the Gambia
Vanuatu
the Bahamas
Eswatini
Kuwait
Fiji
Slovenia
El Salvador
Israel
Belize
Rwanda

</syntaxhighlight>

Or

<syntaxhighlight lang="wikitext" style="overflow:auto">

Country map
Country map
Country map

<imagemap> image:World map blank shorelines semiwikimapia.svg|720px|countries rect 1 1 1 1 countries

</imagemap>
Tuvalu
Bermuda
Saint Kitts and Nevis
Malta
Grenada
Saint Vincent and the Grenadines
Barbados
Antigua and Barbuda
Saint Lucia
Singapore
Kiribati
Tonga
Dominica
Bahrain
Hong Kong
Mauritius
Luxembourg
Samoa
Trinidad and Tobago
Brunei
the State of Palestine
Cyprus
Lebanon
Jamaica
the Gambia
Vanuatu
the Bahamas
Eswatini
Kuwait
Fiji
Slovenia
El Salvador
Israel
Belize
Rwanda

</syntaxhighlight>

In this example the parameter BG= is needed because the category for Bulgaria is not called Category:Scouting and Guiding in Bulgaria.

Country details