Difference between revisions of "Template:Infobox location/doc"

From PZwiki
Jump to: navigation, search
(Created page with "{{Documentation subpage}} This template is used to create an infobox in an article about a location, such as a city or town. ==Usage== To use this template in an article, co...")
 
(added map and logo)
Line 11: Line 11:
  
 
{{infobox location
 
{{infobox location
| name               = {{ID|name}}
+
| name = {{ID|name}}
| name_colour         =  
+
| name_colour =  
| name_text_colour   =  
+
| name_text_colour =  
| image       = image.png
+
| logo = image.png
| image_size         = {{ID|image_size}}
+
| logo_size = {{ID|logo_size}}
| image_caption       = {{ID|image_caption}}
+
| logo_caption = {{ID|logo_caption}}
| type               = {{ID|type}}
+
| image = image.png
| mayor               = {{ID|mayor}}
+
| image_size = {{ID|image_size}}
| pop                 = {{ID|pop}}
+
| image_caption = {{ID|image_caption}}
| established         = {{ID|established}}
+
| type = {{ID|type}}
| motto               = {{ID|motto}}
+
| mayor = {{ID|mayor}}
| state               = {{ID|state}}
+
| pop = {{ID|pop}}
| country             = {{ID|country}}
+
| established = {{ID|established}}
| coordinates         = 10880x10031
+
| motto = {{ID|motto}}
 +
| state = {{ID|state}}
 +
| country = {{ID|country}}
 +
| coordinates = 10880x10031
 +
| map = image.png
 +
| map_size = {{ID|map_size}}
 +
| map_caption = {{ID|map_caption}}
 
}}<pre>{{infobox location
 
}}<pre>{{infobox location
| name               =
+
| name =  
| name_colour         =
+
| name_colour =  
| name_text_colour   =
+
| name_text_colour =
| image       =  
+
| logo =
| image_size         =  
+
| logo_size =
| image_caption       =  
+
| logo_caption =  
| type               =  
+
| image =  
| mayor               =  
+
| image_size =  
| pop                 =  
+
| image_caption =  
| established         =  
+
| type =  
| motto               =  
+
| mayor =  
| state               =  
+
| pop =  
| country             =  
+
| established =  
| coordinates         =  
+
| motto =  
 +
| state =  
 +
| country =  
 +
| coordinates =
 +
| map =
 +
| map_size =
 +
| map_caption =  
 
}}</pre>
 
}}</pre>
 
{{clear}}
 
{{clear}}
Line 55: Line 67:
 
| '''name_text_colour'''
 
| '''name_text_colour'''
 
| Insert the text colour for the display name. Codes can be found at [[Template:Infobox nc]].
 
| Insert the text colour for the display name. Codes can be found at [[Template:Infobox nc]].
 +
|-
 +
| '''logo'''
 +
| Logo for the location, or a second image. Insert an image link in the form: <code>Example.jpg</code>
 +
|-
 +
| '''logo_size'''
 +
| Set the size of the image. Default is <code>294px</code>
 +
|-
 +
| '''logo_caption'''
 +
| Insert a caption for the image.
 
|-
 
|-
 
| '''image'''
 
| '''image'''
Line 88: Line 109:
 
| '''coordinates'''
 
| '''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. <br>Example:<code><nowiki>| coordinates = 10880x10031</nowiki></code>.
 
| 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. <br>Example:<code><nowiki>| coordinates = 10880x10031</nowiki></code>.
 +
|-
 +
| '''map'''
 +
| Map of the location. Insert an image link in the form: <code>Example.jpg</code>.
 +
|-
 +
| '''map_size'''
 +
| Set the size of the map image. Default is <code>294px</code>
 +
|-
 +
| '''map_caption'''
 +
| Insert a caption for the image.
 
|-
 
|-
 
|}
 
|}

Revision as of 15:26, 10 September 2019

Notepad.png
This is a documentation subpage for Template:Infobox location.
It contains usage information and other content that is not part of the original template page.

This template is used to create an infobox in an article about a location, 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.

It is strongly advised to only include variables that are relevant to the specific item in question, i.e. parameters that do not display as false or 0.

name
logo_size
logo_caption
image_size
image_caption
General
Type type
Mayor mayor
Population pop
Established established
Motto motto
Location
State state
Country country
Coordinates Show location on an interactive map10880x10031
  Map
map_size
map_caption
{{infobox location
| name			= 
| name_colour		= 
| name_text_colour	= 
| logo			= 
| logo_size		= 
| logo_caption		= 
| image			= 
| image_size		= 
| image_caption		= 
| type			= 
| mayor			= 
| pop			= 
| established		= 
| motto			= 
| state			= 
| country		= 
| coordinates		= 
| map			= 
| map_size		= 
| map_caption		= 
}}

Parameters

Parameter Explanation
name Insert the name of the building
name_colour Insert the background colour for the name. Codes can be found at Template:Infobox nc.
name_text_colour Insert the text colour for the display name. Codes can be found at Template:Infobox nc.
logo Logo for the location, or a second image. Insert an image link in the form: Example.jpg
logo_size Set the size of the image. Default is 294px
logo_caption Insert a caption for the image.
image Image of the location. Insert an image link in the form: Example.jpg
image_size Set the size of the image. Default is 294px
image_caption Insert a caption for the image.
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.
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.
map Map of the location. Insert an image link in the form: Example.jpg.
map_size Set the size of the map image. Default is 294px
map_caption Insert a caption for the image.