Template:Infobox region
This template is used to create an infobox in an article about a region, such as a city or town.
Usage
To use this template in an article, copy the template below, then paste the template into an article.
All parameters are optional – those you do not populate with data will not show up in the infobox when the article is saved.
{{Infobox region |name= |logo= |logo_size= |logo_caption= |image= |image_size= |image_caption= |type= |mayor= |pop= |established= |motto= |start= |end= |state= |country= |coordinates= |map= |map_size= |map_caption= }}
Parameters
Name and images
name
- Insert the name of the region
logo
- Logo for the location. Insert an image link in the form:
Example.png
logo_size
- Set the size of the image. Default will be the image size, or max width of 200px.
logo_caption
- Insert a caption for the image.
image
- Image of the location. Insert an image link in the form:
Example.png
. Multiple images can be added by adding a number at the end of the parameter (up to 5). image_size
- Set the size of the image. Default will be the image size, or max width of 200px. Will be assigned to the image with the same id/number.
image_caption
- Insert a caption for the image.
General
type
- The type of location it is, such as: city, town, etc.
mayor
- The name of the current mayor.
pop
- The current estimated population.
established
- The year the location was established in.
motto
- The location motto/taglines.
Location
start
- The start area of the road/region.
end
- The end area of the road/region.
state
- The state the location is in.
country
- The country the location is in.
coordinates
- Insert the coordinates as they appear on: https://map.projectzomboid.com/. Go to the location on the map in the URL, press "Map Coordinates" on the left sidebar, copy the "Coords:" being sure not to include any spaces.
Example:| coordinates = 10880x10031
. - Multiple coordinates can be set by adding a number to the end of the parameter (up to 5). E.g.
|coordinates2=10880x10031
coords_more
- If there are more than 5 coordinates, this can be defined which will link to a section on the page of the infobox. Example:
|coords_more=Locations
will link to a section called "Locations".
Map
map
- Map of the location. Insert an image link in the form:
Example.jpg
. map_size
- Set the size of the map image. Default and max is
200px
map_caption
- Insert a caption for the image.
How to translate
This template is translatable.
Template code
Paste the following code into the <includeonly>
tag of the translated template and translate the text after each =
sign (except for #default =
).
{{#switch: {{{1|}}}
<!-- General -->
| general = General
| type = Type
| mayor = Mayor
| population = Population
| established = Established
| motto = Motto
<!-- Location -->
| location = Location
| start = Start
| end = End
| state = State
| country = Country
| coordinates = Coordinates
| coords_desc = Show location on an interactive map.
| more_coords = More coordinates
<!-- Map -->
| map = Map
| #default = [[Category:Incorrect template usage]]
}}
Template documentation
Copy the code wrapped in the <noinclude>
tag in this template and translate the text after doc =
in the {{Documentation}}
template.
{{Translation guide}}
template should be removed from the translated documentation.