Difference between revisions of "Template:Countrymap"
Jump to navigation
Jump to search
imported>Ramesh Ramaiah |
imported>Ramesh Ramaiah |
||
| Line 29: | Line 29: | ||
:In this example the parameter MH= is needed because the category for the Marshall Islands is not called [[:Category:Churches in the Marshall Islands|Category:Churches '''in''' the Marshall Islands]] but [[:Category:Churches on the Marshall Islands|Category:Churches '''on''' the Marshall Islands]]. | :In this example the parameter MH= is needed because the category for the Marshall Islands is not called [[:Category:Churches in the Marshall Islands|Category:Churches '''in''' the Marshall Islands]] but [[:Category:Churches on the Marshall Islands|Category:Churches '''on''' the Marshall Islands]]. | ||
| − | {{ | + | {{Collapsed2|title=Country details|1= |
<table class="wikitable sortable"> | <table class="wikitable sortable"> | ||
<tr><th> Rank </th><th> Country name </th><th> Latitude </th><th> Longitude </th><th> ISO 3166-1</th></tr> | <tr><th> Rank </th><th> Country name </th><th> Latitude </th><th> Longitude </th><th> ISO 3166-1</th></tr> | ||
| Line 316: | Line 316: | ||
---- | ---- | ||
| − | </noinclude>{{ | + | </noinclude>{{Collapsed2|title=[[File:World map blank shorelines semiwikimapia.svg|40px|left|Country map]] Country map | width=200px <noinclude>| expand=yes</noinclude> |1= |
<div style="position: relative; white-space: nowrap; overflow: visible;"> | <div style="position: relative; white-space: nowrap; overflow: visible;"> | ||
{{#tag:imagemap| | {{#tag:imagemap| | ||
Revision as of 20:56, 6 January 2012
Documentation
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 paramater 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:Churches by country the following template can be placed:
- {{Countrymap|720|Category:Churches in}}
Or
- {{Countrymap|720|Category:Churches in |
- <!-- only exceptions listed below: -->
- |MH=Category:Churches on the Marshall Islands
- }}
- <!-- only exceptions listed below: -->
- In this example the parameter MH= is needed because the category for the Marshall Islands is not called Category:Churches in the Marshall Islands but Category:Churches on the Marshall Islands.