Template:Mapgroup-item
Documentation
editParameters
edit- name: (Required) The name to display in the marker link.
- wikidata: (Optional) The wikidata ID for the item being displayed. If a value is specified and if that Wikidata ID is associated to an OpenStreetMap record then a {{mapshape}} will appear on the map highlighting the area corresponding to the destination. See the documentation for {{mapshape}} for more details on using Wikidata IDs with dynamic maps.
- lat: (Optional) If specified, this latitude value will be used to place the marker pin on the map. If the wikidata parameter is specified then the coordinates associated with the wikidata item will be used instead.
- long: (Optional) If specified, this longitude value will be used to place the marker pin on the map. If the wikidata parameter is specified then the coordinates associated with the wikidata item will be used instead.
- fill: (Optional) If a Wikidata ID is used then this value specifies the fill color to use for the mapshape. Color must a valid web color, for example
#ff0000
for red. If no value is specified then a default is used. - marker-type: (Optional) The type of marker tag to generate. By default the "vicinity" type is used if no value is specified. See the "type" documentation in {{marker}} for more details.
- group: (Optional) The internal group name for the map. This parameter is generally only needed if more than one {{mapgroup}} is being used in an article. See the documentation for Module:Map for more details on how the group parameter can be used.
Example
editExample demonstrating a basic {{mapgroup}}, including two items:
{{mapgroup
| name=[[Merced County]]'s neighboring counties
| height=300
| target=Q109690
}}
* {{mapgroup-item|name=[[Stanislaus County]]|wikidata=Q108503}}
* {{mapgroup-item|name=[[Fresno County]]|wikidata=Q271915}}
...which produces:
See also
edit- {{mapgroup}} - Template used to add a map that displays one or more mapgroup items for an article.
- {{mapframe}} - Template used to add a dynamic map to an article.
- {{mapmask}} - Used to create a mask using manually entered latitude/longitude pairs; useful for drawing city or region borders that aren't available from OpenStreetMap.
- {{mapshape}} - Used to create a mask, shape or line using data from the OpenStreetMap database; useful for city or region borders, or for showing routes.