Template:Infobox city Japan/doc
This is a documentation subpage for Template:Infobox city Japan. It contains usage information, categories and other content that is not part of the original Template page. |
This template is a customized wrapper for {{Infobox settlement}}. Any field from {{Infobox settlement}} can work so long as it is added to this template first. It will also emit the same hCard and Geo microformats as {{Infobox settlement}} . Questions? Just ask here or over at Template talk:Infobox settlement. |
This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. Remember that you can conduct experiments, and should test all improvements, in either the general Template sandbox or your user space before changing anything here. |
Empty Syntax
- Important: Please enter all numeric values in a raw, unformatted fashion. Numeric values that are not "raw" may create an "Expression error" in the Area and Density fields. Raw values will be automatically formatted by the template. If you find a raw value is not formatted in your usage of the template, please post a notice on the discussion page for this template.
For examples and questions see the talk page.
{{Infobox city Japan | name = | official_name = | JapaneseName = | RyukyuanName = | settlement_type = <!-- such as Town, Village, City, Borough etc. --> | image_skyline = | imagesize = | image_caption = | image_map = | image_symbol = | region = | prefecture = | district = | area_km2 = | population_as_of = | population = | density_km2 = | lat_deg = | lat_min = | lat_sec = | lon_deg = | lon_min = | lon_sec = | tree = | flower = | flowering_tree = | bird = | butterfly = | fish = | others = | mayor = | city_hall_postal_code = | city_hall_address = | website = }}
Location map
These six parameters are used for a location map of the city.
|lat_deg = |lat_min = |lat_sec = <!-- optional --> |lon_deg = |lon_min = |lon_sec = <!-- optional -->
Coordinates
The location map parameters above also show the coordinates. However, the different parameter "Coords" can be used as well. When both parameters are used, "Coords" overrides the location map parameters for the coordinates. For "Coords", use {{coord}} with display=inline,title.
Microformat
The HTML mark up produced by this template includes an hCard microformat, which makes the place-name and location parsable by computers, either acting automatically to catalogue articles across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to an address book. Within the hCard is a Geo microformat, which additionally makes the coordinates (latitude & longitude) parsable, so that they can be, say, looked up on a map, or downloaded to a GPS unit. For more information about the use of microformats on Wikipedia, please see the microformat project.
Sub-templates
If the place or venue has an "established", "founded", "opened" or similar date, use {{start date}} unless the date is before 1583 CE.
If it has a URL, use {{URL}}.
Please do not remove instances of these sub-templates.
Classes
hCard uses HTML classes including:
- adr
- agent
- category
- county-name
- extended-address
- fn
- label
- locality
- nickname
- note
- org
- region
- street-address
- uid
- url
- vcard
Geo is produced by calling {{coord}}, and uses HTML classes:
- geo
- latitude
- longitude
Please do not rename or remove these classes nor collapse nested elements which use them.
Precision
When giving coordinates, please use an appropriate level of precision. Do not use {{coord}}'s |name=
parameter.
Tracking categories
Uses of this template with unknown or unsupported parameters are tracked in Category:Pages using infobox city Japan with unsupported parameters.