Difference between revisions of "Template:Countrymap/doc"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
(moved from tepmlate)
 
imported>GoingBatty
m (typo(s) fixed: paramater → parameter using AWB (11376))
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 +
 
== Usage ==
 
== Usage ==
  
 
This template '''Country map''' provides an easy to use country map with links to categories (or articles) on the specific subject per country.
 
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.  
+
Only countries with an existing link are shown.
  
 
===Parameters===
 
===Parameters===
Line 11: Line 12:
 
1. Size of the map (default 720, displays the map 720x491px)<br>
 
1. Size of the map (default 720, displays the map 720x491px)<br>
 
2. The prefix of the links (Default "Category:")<br>
 
2. The prefix of the links (Default "Category:")<br>
3. For each country a specific link can be specified. The name of the paramater is the  [[ISO 3166-1]] country code (and some ISO 3166-2 codes)
+
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)
 
: 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
 
: See the country details below for a list of countries, their location and the ISO 3166-1 codes used as parameter
Line 30: Line 31:
  
 
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 MH= is needed because the category for the Marshall Islands is not called [[:Category:Scouting and Guiding by country]].
 +
 
==Country details==
 
==Country details==
 
{| class="wikitable sortable collapsible collapsed" style="min-width:33em"
 
{| class="wikitable sortable collapsible collapsed" style="min-width:33em"

Revision as of 20:21, 5 September 2015

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 by country|}}

Or

{{Countrymap|720|Category:Scouting and Guiding by country|
<!-- only exceptions listed below: -->
|MH=Category:Scouting in the Marshall Islands
}}

In this example the parameter MH= is needed because the category for the Marshall Islands is not called Category:Scouting and Guiding by country.

Country details