Difference between revisions of "Template:Countrymap/doc"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
(moved from tepmlate)
 
(→‎Country details: North Macedonia)
 
(2 intermediate revisions by 2 users not shown)
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 19: 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==
 
{| class="wikitable sortable collapsible collapsed" style="min-width:33em"
 
{| class="wikitable sortable collapsible collapsed" style="min-width:33em"
Line 228: Line 231:
 
| 149 || Djibouti || 11.69 || 42.57 || DJ  
 
| 149 || Djibouti || 11.69 || 42.57 || DJ  
 
|-
 
|-
| 148.2 || Macedonia || 41.64 || 21.53 || MK
+
| 148 || North Macedonia || 41.64 || 21.53 || MK  
|-
 
| 148.1 || the Republic of Macedonia || 41.64 || 21.53 || MK
 
|-
 
| 148 || Republic of Macedonia || 41.64 || 21.53 || MK  
 
 
|-
 
|-
 
| 147 || Rwanda || -1.97 || 29.86 || RW  
 
| 147 || Rwanda || -1.97 || 29.86 || RW  

Latest revision as of 23:04, 11 March 2019

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