Difference between revisions of "Template:Countrymap/doc"

From blackwiki
Jump to navigation Jump to search
imported>GoingBatty
m (typo(s) fixed: paramater → parameter using AWB (11376))
imported>Fayenatic london
(corrections to example)
Line 20: Line 20:
 
On [[:Category:Scouting and Guiding by country]] the following template can be placed:
 
On [[:Category:Scouting and Guiding by country]] the following template can be placed:
  
<pre style="overflow:auto">{{Countrymap|720|Category:Scouting and Guiding by country|}}</pre>
+
<pre style="overflow:auto">{{Countrymap|720|Category:Scouting and Guiding in|}}</pre>
  
 
Or
 
Or
  
 
<pre style="overflow:auto">
 
<pre style="overflow:auto">
{{Countrymap|720|Category:Scouting and Guiding by country|
+
{{Countrymap|720|Category:Scouting and Guiding in|
 
<!-- only exceptions listed below: -->
 
<!-- only exceptions listed below: -->
|MH=Category:Scouting in the Marshall Islands
+
|BG=Category:Scouting in Bulgaria
 +
|BT=Category:Scouting in Bhutan
 
}}</pre>
 
}}</pre>
  
In this example the parameter MH= is needed because the category for the Marshall Islands is not called [[:Category:Scouting and Guiding by country]].
+
In this example the parameter BG= is needed because the category for Bulgaria is not called [[:Category:Scouting and Guiding in Bulgaria]].
  
 
==Country details==
 
==Country details==

Revision as of 20:01, 11 July 2016

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:

{{Countrymap|720|Category:Scouting and Guiding in|}}

Or

{{Countrymap|720|Category:Scouting and Guiding in|
<!-- only exceptions listed below: -->
|BG=Category:Scouting in Bulgaria
|BT=Category:Scouting in Bhutan
}}

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

Country details