Template:Infobox mine
| This template is used on approximately 2,200 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
| This template uses Lua: |
Blank infobox
| [[File:{{{image}}}|{{{width}}}|alt={{{alt}}}]] {{{caption}}} | |
![]() | |
| Location | |
|---|---|
| Location | {{{place}}} |
| {{{subdivision_type}}} | {{{state/province}}} |
| Country | {{{country}}} |
| Coordinates | 33°25′34″N 111°07′22″W / 33.42598°N 111.12266°W |
| Production | |
| Products | {{{products}}} |
| Production | {{{amount}}} |
| Financial year | {{{financial year}}} |
| Type | {{{type}}} |
| Greatest depth | {{{greatest depth}}} |
| History | |
| Discovered | {{{discovery year}}} |
| Opened | {{{opening year}}} |
| Active | {{{active years}}} |
| Closed | {{{closing year}}} |
| Owner | |
| Company | {{{owner}}} |
| Website | {{{official website}}} |
| Year of acquisition | {{{acquisition year}}} |
| {{{module}}} | |
{{Infobox mine
| name =
| image =
| width =
| caption =
| alt =
| pushpin_map =
| pushpin_mapsize =
| pushpin_map_alt =
| pushpin_map_caption=
| pushpin_image =
| pushpin_label =
| pushpin_label_position =
| coordinates = <!-- {{Coord|latitude|N/S|longitude|E/W|display=inline,title}} -->
| place =
| subdivision_type =
| state/province =
| country =
| products =
| amount = <!--include units-->
| financial year =
| type =
| greatest depth =
| discovery year =
| opening year = <!-- {{Start date|YYYY}} -->
| active years = <!-- use only if inactive for a period of time-->
| closing year = <!-- {{End date|YYYY}} -->
| owner =
| official website = <!-- {{URL|example.com}} -->
| acquisition year =
| module = <!-- or 'embedded' or 'nrhp' -->
}}
Parameters
Name and image
- name = The common name of the mine.
- image = An image of the mine (without the prefix "Image:").
- width = Image width e.g. 200px
- caption = Caption for the image.
- alt = alternative text for the image, if the image has not yet loaded. Also controls the text displayed when the image is hovered over.
Location map
- pushpin_map = Name of a location map definition (not a File: or Image: name) which can use with Template:Location map (i.e. "USA Colorado" would generate {{Location map|USA Colorado}} which uses map definitions from Module:Location map/data/USA Colorado).
- pushpin_mapsize = Optional. The width to display the pushpin map, in pixels. Just the number, no "px". If the parameter is omitted or value left empty, defaults to 220.
- pushpin_map_alt = Optional. Alt text for the pushpin map.
- pushpin_map_caption = Optional. Caption to display below the pushpin map.
- pushpin_image = Optional. File name of a different image using same map coordinates.
- pushpin_label = Optional. The label to place next to the pushpin coordinate marker. Defaults to the value of the name parameter.
- pushpin_label_position = Optional. The position of the label on the pushpin map relative to the pushpin coordinate marker. Valid options are left, right, top, bottom, and none. Defaults to right.
Coordinates
- coordinates = Geographic coordinates, using the {{Coord}} template (with
|display=inline,title). Unless a value fortype:is specified,type:landmarkis automatically added; unless a value forregion:is specified, the template attempts to convert|country=and|state/province=into a valid region code which is automatically added. See {{Coord}} for more information on how to use it.
Location
- place =
- subdivision_type = state/province (affects label for the next entry)
- state/province =
- country =
- the coordinates are displayed below the country
Production
- products = what the mine produces/produced: e.g. silver, zinc, bauxite. May list more than one
- amount = mine production (with unit, e.g. tons, troy ounces, etc.)
- financial year = year of above the production figure, or "lifetime"
- type = e.g. open-pit, underground, etc.
- greatest depth =
History
- discovery year = Year mine/deposit was discovered.
- opening year = Year mine opened. Use {{Start date}}.
- active years = Use if mine opened and closed more than once. Such as 1990-1995, 1997-2002; use {{Start date}} for the first one only.
- closing year = Year mine closed. Use {{End date}}.
Owner
- owner =
- official website = use {{URL}}
- acquisition year = year current owner acquired the mine.
Mapframe
- Basic {{Infobox mapframe}} parameters:
- mapframe – Specify yes or no to show or hide the map, overriding the default. Default: no
- Internal onByDefault parameter: not specified
- mapframe-coordinates or mapframe-coord or coordinates or coord – Coordinates to use, instead of any on Wikidata. Use the {{Coord}} template, e.g.
|coord=. Default: coordinates from Wikidata d:Property:P625{{Coord|12.34|N|56.78|E}} - mapframe-caption – Caption for the map. Default: blank (or if
|mapframe-geomask=is set, "Location in geomask's label") - mapframe-custom – Use a custom map instead of the automatic mapframe. Specify either a
{{maplink}}template, or another template that generates a mapframe map, or an image name. If used, most mapframe parameters will be ignored. Default: not specified - mapframe-id or id or qid – Id (Q-number) of Wikidata item to use. Default: item for current page
- mapframe-wikidata – Set to
yesto show all shape/line features from OpenStreetMap. Default: not specified
- mapframe – Specify yes or no to show or hide the map, overriding the default. Default: no
- Customise which features are displayed:
- mapframe-point – Turn off display of point feature by setting to
none. Force point marker to be displayed by setting toon. Default: not specified - mapframe-shape – Turn off display of shape feature by setting to
none. Force display of shape by setting toon. Use an inverse shape (geomask) instead of a regular shape by setting toinverse. Default: not specified - mapframe-line – Turn off display of line feature by setting to
none. Force display of line by setting toon. Default: not specified - mapframe-geomask – Wikidata item to use as a geomask (everything outside the boundary is shaded darker). Can either be a specific Wikidata item (Q-number), or a property that specifies the item to use (e.g.
P17for country (P17),P131for located in the administrative territorial entity (P131)). Default: not specified - mapframe-switcher – set to
autoorgeomasksorzoomsto enable Template:Switcher-style switching between multiple mapframes. Default: not specifiedauto– switch geomasks found in location (P276) and located in the administrative territorial entity (P131) statements on the page's Wikidata item, searching recursively. E.g. an item's city, that city's state, and that state's country.geomasks– switch between the geomasks specified as a comma-separated list of Wikidata items (Q-numbers) in the mapframe-geomask parameterzooms– switch between "zoomed in"/"zoomed midway"/"zoomed out", where "zoomed in" is the default zoom (with a minimum of3), "zoomed out" is1, and "zoomed midway" is the average
- mapframe-point – Turn off display of point feature by setting to
- Other optional parameters:
- mapframe-frame-width or mapframe-width – Frame width. Default: 270
- mapframe-frame-height or mapframe-height – Frame height. Default: 200
- mapframe-shape-fill – Color used to fill shape features. Default: #606060
- mapframe-shape-fill-opacity – Opacity level of shape fill, a number between 0 and 1. Default: 0.1
- mapframe-stroke-color or mapframe-stroke-colour – Color of line features, and outlines of shape features. Default: #ff0000
- mapframe-line-stroke-color or mapframe-line-stroke-colour – Color of line features. Default: #ff0000
- mapframe-shape-stroke-color or mapframe-shape-stroke-colour – Color of outlines of shape features. Default: #ff0000
- mapframe-stroke-width – Width of line features, and outlines of shape features. Default: 2
- mapframe-shape-stroke-width – Width of outlines of shape features. Default: 2
- mapframe-line-stroke-width – Width of line features. Default: 5
- mapframe-marker – Marker symbol to use for coordinates; see mw:Help:Extension:Kartographer/Icons for options. Default: not specified (i.e. blank)
- Can also be set to
blankto override any default marker symbol
- Can also be set to
- mapframe-marker-color or mapframe-marker-colour – Background color for the marker. Default: #5E74F3
- mapframe-geomask-stroke-color or mapframe-geomask-stroke-colour – Color of outline of geomask shape. Default: #555555
- mapframe-geomask-stroke-width – Width of outline of geomask shape. Default: 1
- mapframe-geomask-fill – Color used to fill outside geomask features. Default: #606060
- mapframe-geomask-fill-opacity – Opacity level of fill outside geomask features, a number between 0 and 1. Default: 0.25
- mapframe-zoom – Set the zoom level, from "1" (map of earth) to "18" (maximum zoom in), to be used if the zoom level cannot be determined automatically from object length or area. Default: 10
- mapframe-length_km or mapframe-length_mi or mapframe-area_km2 or mapframe-area_mi2 – Determine zoom level by passing in object's length (in kilometres or miles) or area (in square kilometres or square miles). Default: not specified / not specified / not specified / not specified
- mapframe-frame-coordinates or mapframe-frame-coord – Alternate latitude and longitude coordinates for initial placement of map, using {{coord}}. Default: derived from item coordinates
- mapframe-type – Set the type of the object, with the same usage as {{coord}}. Default: not specified
- mapframe-population – Set the population, useful with type="city", for {{Infobox dim}}. Default: not specified
Embedding other templates
The module=, embedded=, or nrhp= parameters can be used for embedding other templates into this infobox (see Wikipedia:Infobox modules):
{{Infobox mine
| name =
...
| module = <!-- or 'embedded' or 'nrhp' -->
{{Infobox ABC
| embed = yes <!-- or child=yes or subbox=yes-->
...
}}
}}
Example
Supersition Mountains | |
| Location | |
|---|---|
| Location | Superstition Mountains |
| State | Arizona |
| Country | United States |
| Coordinates | 33°25′34″N 111°07′22″W / 33.42598°N 111.12266°W |
| Production | |
| Products | Gold |
| Production | 50,000 troy ounces |
| Financial year | Lifetime |
| Type | Underground |
| History | |
| Opened | 1875 |
| Closed | 1883 |
| Owner | |
| Company | Jacob Waitz |
| Website | www |
{{Infobox mine
| name = Lost Dutchman's Mine
| image = SUPERSTITIONS AZ15.jpg
| width = 250px
| caption = Supersition Mountains
| alt = The Praying Hands Formation, near the mine
| pushpin_map = Arizona
| pushpin_mapsize = 200px
| pushpin_map_alt =
| pushpin_map_caption=
| pushpin_image =
| pushpin_label =
| pushpin_label_position =
| coordinates = {{coord|33.42598|N|111.12266|W|display=inline,title}}
| place = [[Superstition Mountains]]
| subdivision_type = State
| state/province = [[Arizona]]
| country = United States
| products = Gold
| amount = 50,000 troy ounces
| financial year = Lifetime
| type = Underground
| greatest depth =
| discovery year =
| opening year = {{Start date|1875}}
| active years = <!-- use only if inactive for a period of time-->
| closing year = {{End date|1883}}
| owner = Jacob Waitz
| official website = {{URL|http://www.example.com}}
| acquisition year =
| module =
}}
Microformat
The HTML markup 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 "established", "founded", "opened" or similar dates, use {{start date}} for the earliest of those dates 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 category
TemplateData
TemplateData documentation used by VisualEditor and other tools
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
See a monthly parameter usage report for Template:Infobox mine in articles based on its TemplateData.
TemplateData for Infobox mine No description.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
