Template:Regionlist/doc

This template is used to display a color-coded map of regions and a legend with the region color, name and description. Use of this template is as follows:

The parameters above should be repeated for additional regions, but replace "region1" with "region2", "region3", etc. An example usage of this template with real data follows (descriptions have been truncated for readability):

Dual maps
Where a page has both a static and a dynamic region map, it's possible to hide one in the background and switch between the two. Examples of this feature are East China and Kootenays.

Base parameter
To enable the toggle feature, add the following to the region list template:

This parameter will activate a dynamic map behind the static map, and provide a link to switch between the maps. If there are mapshapes to display in the dynamic map, they will need to have the "group=map1" parameter added.

Example:

Some things to note:
 * The static and dynamic maps will have identical dimensions so the layout of the article is not affected.
 * The center and the zoom of the map will be autoset according to the POI shown in the map.
 * To set a dymanic map for a second static map on the same page, it's necessary to specify a different value in the regionInteractiveMap parameter (e.g. map2) and match it to group parameter in the.

Optional parameters
To center the map at a different point or to apply a different zoom level, use the following optional parameters.

{	"params": { "regionmapsize": { "label": "Region Map Size", "description": "Size in pixels of the map to be shown. Default is 350px.", "example": "450px", "type": "string", "suggested": true },		"regionmapalign": { "label": "Region Map Align", "description": "Alignment of the displayed map", "example": "\"right\" or \"left\"", "type": "string", "suggested": true, "suggestedvalues": ["left","right","center"] },		"regionmaptext": { "label": "Region Map Text", "description": "Caption that will show up under the map name", "example": "Regions of Italy", "type": "string", "suggested": true },		"regionmapLat": { "label": "Region Map Latitude", "description": "Decimal latitude (GPS coordinates) for interactive map output", "example": "41.7695", "type": "number", "suggested": true },		"regionmapLong": { "label": "Region Map Longitude", "description": "Decimal longitude (GPS coordinates) for interactive map output", "example": "-87.7032", "type": "number", "suggested": true },		"regionmapZoom": { "label": "Region Map Zoom", "description": "Interactive map's Openstreetmap level of zoom (higher is closer zoom)", "example": "14", "type": "number", "suggested": true },		"show": {}, "regionmobilemapsize": {}, "region1name": { "label": "1st region name", "description": "First specified region: Name of a region within the area that regions will be specified for", "example": "Central Italy", "type": "string", "suggested": true },		"region1color": { "label": "1st region color", "description": "First specified region: The hex code for a colour that will be displayed in association with the region Colour intended to help visually distinguish the region from other listed regions.  If showing a map, the selected colour should match the colour shown on the map to depict the region.  ", "example": "#b5d29f", "type": "string", "suggested": true },		"region1items": { "label": "1st region's subregions", "description": "First specified region: a list of that region's subregions.", "example": "Tuscany, Marche, Umbria, Lazio, and Abruzzo", "type": "string", "suggested": true },		"region1description": { "label": "1st region description", "description": "First specified region: a brief description of region, such as what the region is known for.", "example": "This region breathes history of the Roman Empire and has some of the world's most famous landmarks.", "suggested": true, "type": "string" },		"region2name": { "label": "2nd region name", "description": "Second specified region: Name of a region within the area that regions will be specified for", "type": "string", "suggested": true },		"region2color": { "label": "2nd region color", "description": "Second specified region: The hex code for a colour that will be displayed in association with the region Colour intended to help visually distinguish the region from other listed regions.  If showing a map, the selected colour should match the colour shown on the map to depict the region.  ", "type": "string", "suggested": true },		"region2items": { "label": "2nd region's subregions", "description": "Second specified region: a list of that region's subregions.", "type": "string", "suggested": true },		"region2description": { "label": "2nd region description", "description": "Second specified region: a brief description of region, such as what the region is known for.", "type": "string", "suggested": true },		"region3name": { "description": "Third specified region: Name of a region within the area that regions will be specified for", "type": "string", "label": "3rd region name" },		"region3color": { "description": "Third specified region: The hex code for a colour that will be displayed in association with the region Colour intended to help visually distinguish the region from other listed regions.  If showing a map, the selected colour should match the colour shown on the map to depict the region.  ", "type": "string", "label": "3rd region color" },		"region3items": { "description": "Third specified region: a list of that region's subregions.", "type": "string", "label": "3rd region's subregions" },		"region3description": { "description": "Third specified region: a brief description of region, such as what the region is known for.", "type": "string", "label": "3rd region description" },		"region4name": { "description": "Fourth specified region: Name of a region within the area that regions will be specified for", "type": "string", "label": "4th region name" },		"region4color": { "description": "Fourth specified region: The hex code for a colour that will be displayed in association with the region Colour intended to help visually distinguish the region from other listed regions.  If showing a map, the selected colour should match the colour shown on the map to depict the region.  ", "type": "string", "label": "4th region color" },		"region4items": { "description": "Fourth specified region: a list of that region's subregions", "type": "string", "label": "4th region's subregions" },		"region4description": { "description": "Fourth specified region: a brief description of region, such as what the region is known for.", "type": "string", "label": "4th region description" },		"region5name": { "description": "Fifth specified region: Name of a region within the area that regions will be specified for", "type": "string", "label": "5th region name" },		"region5color": { "description": "Fifth specified region: The hex code for a colour that will be displayed in association with the region Colour intended to help visually distinguish the region from other listed regions.  If showing a map, the selected colour should match the colour shown on the map to depict the region.  ", "type": "string", "label": "5th region color" },		"region5items": { "description": "Fifth specified region: a list of that region's subregions.", "type": "string", "label": "5th region's subregions" },		"region5description": { "description": "Fifth specified region: a brief description of region, such as what the region is known for.", "type": "string", "label": "5th region description" },		"region6name": { "description": "Sixth specified region: Name of a region within the area that regions will be specified for", "type": "string", "label": "6th region name" },		"region6color": { "description": "Sixth specified region: The hex code for a colour that will be displayed in association with the region Colour intended to help visually distinguish the region from other listed regions.  If showing a map, the selected colour should match the colour shown on the map to depict the region.  ", "type": "string", "label": "6th region color" },		"region6items": { "description": "Sixth specified region: a list of that region's subregions.", "type": "string", "label": "6th region's subregions" },		"region6description": { "description": "Sixth specified region: a brief description of region, such as what the region is known for.", "type": "string", "label": "6th region description" },		"region7name": { "description": "Seventh specified region: Name of a region within the area that regions will be specified for", "type": "string", "label": "7th region name" },		"region7color": { "description": "Seventh specified region: The hex code for a colour that will be displayed in association with the region Colour intended to help visually distinguish the region from other listed regions.  If showing a map, the selected colour should match the colour shown on the map to depict the region.  ", "type": "string", "label": "7th region color" },		"region7items": { "description": "Seventh specified region: a list of that region's subregions.", "type": "string", "label": "7th region's subregions" },		"region7description": { "description": "Seventh specified region: a brief description of region, such as what the region is known for.", "type": "string", "label": "7th region description" },		"region8name": { "description": "Eighth specified region: Name of a region within the area that regions will be specified for", "type": "string", "label": "8th region name" },		"region8color": { "description": "Eighth specified region: The hex code for a colour that will be displayed in association with the region Colour intended to help visually distinguish the region from other listed regions.  If showing a map, the selected colour should match the colour shown on the map to depict the region.  ", "type": "string", "label": "8th region color" },		"region8items": { "description": "Eighth specified region: a list of that region's subregions.", "type": "string", "label": "8th region's subregions" },		"region8description": { "description": "Eighth specified region: a brief description of region, such as what the region is known for.", "type": "string", "label": "8th region description" },		"region9name": { "description": "Ninth specified region: Name of a region within the area that regions will be specified for", "type": "string", "label": "9th region name" },		"region9color": { "description": "Ninth specified region: The hex code for a colour that will be displayed in association with the region Colour intended to help visually distinguish the region from other listed regions.  If showing a map, the selected colour should match the colour shown on the map to depict the region.  ", "type": "string", "label": "9th region color" },		"region9items": { "description": "Ninth specified region: a list of that region's subregions.", "type": "string", "label": "9th region's subregions" },		"region9description": { "description": "Ninth specified region: a brief description of region, such as what the region is known for.", "type": "string", "label": "9th region description" },		"region10name": { "label": "10th region name", "type": "string", "description": "Tenth specified region: Name of a region within the area that regions will be specified for" },		"region10color": { "label": "10th region color", "type": "string", "description": "Tenth specified region: The hex code for a colour that will be displayed in association with the region Colour intended to help visually distinguish the region from other listed regions.  If showing a map, the selected colour should match the colour shown on the map to depict the region.  " },		"region10items": { "label": "10th region's subregions", "type": "string", "description": "Tenth specified region: a list of that region's subregions." },		"region10description": { "label": "10th region description", "type": "string", "description": "Tenth specified region: a brief description of region, such as what the region is known for." },		"region11name": { "label": "11th region name", "type": "string", "description": "Eleventh specified region: Name of a region within the area that regions will be specified for" },		"region11color": { "label": "11th region color", "type": "string", "description": "Eleventh specified region: The hex code for a colour that will be displayed in association with the region Colour intended to help visually distinguish the region from other listed regions.  If showing a map, the selected colour should match the colour shown on the map to depict the region.  " },		"region11items": { "label": "11th region's subregions", "type": "string", "description": "Eleventh specified region: a list of that region's subregions." },		"region11description": { "label": "11th region description", "type": "string", "description": "Eleventh specified region: a brief description of region, such as what the region is known for." },		"region12name": { "label": "12th region name", "type": "string", "description": "Twelfth specified region: Name of a region within the area that regions will be specified for" },		"region12color": { "label": "12th region color", "type": "string", "description": "Twelfth specified region: The hex code for a colour that will be displayed in association with the region Colour intended to help visually distinguish the region from other listed regions.  If showing a map, the selected colour should match the colour shown on the map to depict the region.  " },		"region12items": { "label": "12th region's subregions", "type": "string", "description": "Twelfth specified region: a list of that region's subregions." },		"region12description": { "label": "12th region description", "type": "string", "description": "Twelfth specified region: a brief description of region, such as what the region is known for." },		"region13name": { "label": "13th region name", "type": "string", "description": "Thirteenth specified region: Name of a region within the area that regions will be specified for" },		"region13color": { "label": "13th region color", "type": "string", "description": "Thirteenth specified region: The hex code for a colour that will be displayed in association with the region Colour intended to help visually distinguish the region from other listed regions.  If showing a map, the selected colour should match the colour shown on the map to depict the region.  " },		"region13items": { "label": "13th region's subregions", "type": "string", "description": "Thirteenth specified region: a list of that region's subregions." },		"region13description": { "label": "13th region description", "type": "string", "description": "Thirteenth specified region: a brief description of region, such as what the region is known for." },		"region14name": { "label": "14th region name", "type": "string", "description": "Fourteenth specified region: Name of a region within the area that regions will be specified for" },		"region14color": { "label": "14th region color", "type": "string", "description": "Fourteenth specified region: The hex code for a colour that will be displayed in association with the region Colour intended to help visually distinguish the region from other listed regions.  If showing a map, the selected colour should match the colour shown on the map to depict the region.  " },		"region14items": { "label": "14th region's subregions", "type": "string", "description": "Fourteenth specified region: a list of that region's subregions." },		"region14description": { "label": "14th region description", "type": "string", "description": "Fourteenth specified region: a brief description of region, such as what the region is known for." },		"region15name": { "label": "15th region name", "type": "string", "description": "Fifteenth specified region: Name of a region within the area that regions will be specified for" },		"region15color": { "label": "15th region color", "type": "string", "description": "Fifteenth specified region: The hex code for a colour that will be displayed in association with the region Colour intended to help visually distinguish the region from other listed regions.  If showing a map, the selected colour should match the colour shown on the map to depict the region.  " },		"region15items": { "label": "15th region's subregions", "type": "string", "description": "Fifteenth specified region: a list of that region's subregions." },		"region15description": { "label": "15th region description", "type": "string", "description": "Fifteenth specified region: a brief description of region, such as what the region is known for." },		"region16name": { "label": "16th region name", "type": "string", "description": "Sixteenth specified region: Name of a region within the area that regions will be specified for" },		"region16color": { "label": "16th region color", "type": "string", "description": "Sixteenth specified region: The hex code for a colour that will be displayed in association with the region Colour intended to help visually distinguish the region from other listed regions.  If showing a map, the selected colour should match the colour shown on the map to depict the region.  " },		"region16items": { "label": "16th region's subregions", "type": "string", "description": "Sixteenth specified region: a list of that region's subregions." },		"region16description": { "label": "16th region description", "type": "string", "description": "Sixteenth specified region: a brief description of region, such as what the region is known for." },		"region17name": { "label": "17th region name", "type": "string", "description": "Seventeenth specified region: Name of a region within the area that regions will be specified for" },		"region17color": { "label": "17th region color", "type": "string", "description": "Seventeenth specified region: The hex code for a colour that will be displayed in association with the region Colour intended to help visually distinguish the region from other listed regions.  If showing a map, the selected colour should match the colour shown on the map to depict the region.  " },		"region17items": { "label": "17th region's subregions", "type": "string", "description": "Seventeenth specified region: a list of that region's subregions" },		"region17description": { "label": "17th region description", "type": "string", "description": "Seventeenth specified region: a brief description of region, such as what the region is known for." },		"region18name": { "label": "18th region name", "type": "string", "description": "Eighteenth specified region: Name of a region within the area that regions will be specified for" },		"region18color": { "label": "18th region color", "type": "string", "description": "Eighteenth specified region: The hex code for a colour that will be displayed in association with the region Colour intended to help visually distinguish the region from other listed regions.  If showing a map, the selected colour should match the colour shown on the map to depict the region.  " },		"region18items": { "label": "18th region's subregions", "type": "string", "description": "Eighteenth specified region: a list of that region's subregions." },		"region18description": { "label": "18th region description", "type": "string", "description": "Eigteenth specified region: a brief description of region, such as what the region is known for." },		"region19name": { "label": "19th region name", "type": "string", "description": "Nineteenth specified region: Name of a region within the area that regions will be specified for" },		"region19color": { "description": "Nineteenth specified region: The hex code for a colour that will be displayed in association with the region Colour intended to help visually distinguish the region from other listed regions.  If showing a map, the selected colour should match the colour shown on the map to depict the region.  ", "type": "string", "label": "19th region color" },		"region19items": { "label": "19th region's subregions", "type": "string", "description": "Nineteenth specified region: a list of that region's subregions." },		"region19description": { "label": "19th region description", "type": "string", "description": "Nineteenth specified region: a brief description of region, such as what the region is known for." },		"region20name": { "label": "20th region name", "type": "string", "description": "Twentieth specified region: Name of a region within the area that regions will be specified for" },		"region20color": { "label": "20th region color", "type": "string", "description": "Twentieth specified region: The hex code for a colour that will be displayed in association with the region Colour intended to help visually distinguish the region from other listed regions.  If showing a map, the selected colour should match the colour shown on the map to depict the region.  " },		"region20items": { "label": "20th region's subregions", "type": "string", "description": "Twentieth specified region: a list of that region's subregions." },		"region20description": { "label": "20th region description", "type": "string", "description": "Twentieth specified region: a brief description of region, such as what the region is known for." },		"regionmap": { "label": "Region Map", "description": "Name of image file showing the regions within a geographic area.", "example": "franceregions.jpg", "type": "wiki-file-name", "suggested": true },		"regionInteractiveMap": { "label": "Region Interactive Map", "description": "If you want to include an interactive Openstreetmap map of the geographic area that the regions fall within, then specify a map name (specified name will not be rendered). Ensure that the map name is not already specified within the article.", "example": "map1", "type": "string", "suggested": true }	},	"description": "Template for identifying regions (sub areas) that are within a geographic footprint.", "paramOrder": [ "regionmap", "regionInteractiveMap", "regionmapsize", "regionmapalign", "regionmaptext", "regionmapLat", "regionmapLong", "regionmapZoom", "show", "regionmobilemapsize", "region1name", "region1color", "region1items", "region1description", "region2name", "region2color", "region2items", "region2description", "region3name", "region3color", "region3items", "region3description", "region4name", "region4color", "region4items", "region4description", "region5name", "region5color", "region5items", "region5description", "region6name", "region6color", "region6items", "region6description", "region7name", "region7color", "region7items", "region7description", "region8name", "region8color", "region8items", "region8description", "region9name", "region9color", "region9items", "region9description", "region10name", "region10color", "region10items", "region10description", "region11name", "region11color", "region11items", "region11description", "region12name", "region12color", "region12items", "region12description", "region13name", "region13color", "region13items", "region13description", "region14name", "region14color", "region14items", "region14description", "region15name", "region15color", "region15items", "region15description", "region16name", "region16color", "region16items", "region16description", "region17name", "region17color", "region17items", "region17description", "region18name", "region18color", "region18items", "region18description", "region19name", "region19color", "region19items", "region19description", "region20name", "region20color", "region20items", "region20description" ] }