Difference between revisions of "Template:Infobox mine/sandbox"
Jump to navigation
Jump to search
imported>WOSlinker (tidy style for better HTML5 compatibility) |
imported>WOSlinker (sync) |
||
| Line 1: | Line 1: | ||
{{Infobox | {{Infobox | ||
| − | |bodyclass=vcard | + | | bodyclass = vcard |
| − | | | + | | title = {{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}} |
| − | | | + | | titleclass = fn org |
| − | |image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{width|}}}|sizedefault=frameless}} | + | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{width|}}}|sizedefault=frameless}} |
| − | |caption | + | | caption = {{{caption|}}} |
| − | | | + | | basestyle = background-color: #c0c0c0 |
| − | |||
| − | |header1={{#if:{{{location|}}}{{{place | + | | header1 = {{#if:{{{location|}}}{{{place|}}}{{{state/province|}}}{{{country|}}}|Location}} |
| − | {{#if:{{{pushpin_map|}}}| | + | | data2 = {{#if:{{{pushpin_map|}}}| |
| − | + | {{ location map|{{{pushpin_map|}}} | |
| − | + | | label = {{#ifeq: {{lc: {{{pushpin_label_position|}}} }} | none | | {{#if:{{{pushpin_label|}}}|{{{pushpin_label}}}|{{#if:{{{name|}}}|{{{name}}}|{{{official_name|}}}}}}} }} | |
| − | {{ | + | | alt = {{{pushpin_map_alt|}}} |
| − | |label = {{#ifeq: {{lc: {{{pushpin_label_position|}}} }} | none | | {{#if:{{{pushpin_label|}}}|{{{pushpin_label}}}|{{#if:{{{name|}}}|{{{name}}}|{{{official_name|}}}}}}} }} | + | | coordinates = {{{coordinates|}}} |
| − | |alt = {{{pushpin_map_alt|}}} | + | | mark = Schlaegel und Eisen nach DIN 21800.svg |
| − | | | + | | marksize = 12 |
| − | | | + | | float = center |
| − | | | + | | caption = {{{pushpin_map_caption|{{{map_caption|}}} }}} |
| − | | | + | | border = none |
| − | | | + | | position = {{{pushpin_label_position|}}} |
| − | + | | width = {{#if:{{{pushpin_mapsize|}}}|{{{pushpin_mapsize|}}} | 220 }} | |
| − | + | | AlternativeMap = {{{pushpin_image|}}} | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |border = none | ||
| − | |position = {{{pushpin_label_position|}}} | ||
| − | |width = {{#if:{{{pushpin_mapsize|}}}|{{{pushpin_mapsize|}}} | | ||
| − | |AlternativeMap = {{{pushpin_image|}}} | ||
| − | |||
| − | |||
| − | |||
| − | |||
}} | }} | ||
| − | + | }} | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | | | + | | label3 = Location |
| − | | | + | | data3 = {{{place|}}} |
| − | | | + | | class3 = label |
| − | | | + | | label4 = {{{subdivision_type}}} |
| − | | | + | | data4 = {{{state/province|}}} |
| − | | | + | | label5 = Country |
| − | | | + | | data5 = {{{country|}}} |
| − | | | + | | label6 = Coordinates |
| − | | | + | | data6 = {{#if:{{{coordinates|}}}|{{#invoke:Coordinates|coordinsert|{{{coordinates|}}}|type:landmark|{{#if:{{{country|}}}|region:{{Country abbreviation|{{{country}}}|{{{state/province|}}}}}}}}}|}} |
| − | | | ||
| − | | | ||
| − | |||
| − | | | + | | header20 = {{#if:{{{products|}}}{{{amount|}}}{{{type|}}}{{{financial year|}}}|Production}} |
| − | | | + | | label21 = Products |
| − | | | + | | data21 = {{{products|}}} |
| − | | | + | | class21 = category |
| − | | | + | | label22 = Production |
| − | | | + | | data22 = {{{amount|}}} |
| − | | | + | | label23 = Financial year |
| + | | data23 = {{{financial year|}}} | ||
| + | | label24 = Type | ||
| + | | data24 = {{{type|}}} | ||
| + | | class24 = category | ||
| + | | label25 = Greatest depth | ||
| + | | data25 = {{{greatest depth|}}} | ||
| − | | | + | | header30 = {{#if:{{{opening year|}}}{{{active years|}}}{{{closing year|}}}{{{nrhp|}}}|History}} |
| − | | | + | | label31 = Opened |
| − | | | + | | data31 = {{{opening year|}}} |
| − | | | + | | label32 = Active |
| − | | | + | | data32 = {{{active years|}}} |
| − | | | + | | label33 = Closed |
| − | | | + | | data33 = {{{closing year|}}} |
| − | |||
| − | |||
| − | | | + | | header40 = {{#if:{{{owner|}}}{{{official website|}}}{{{acquisition year|}}}{{{stock_code|}}}|Owner}} |
| − | | | + | | label41 = Company |
| + | | data41 = {{{owner|}}} | ||
| + | | label42 = Website | ||
| + | | data42 = {{{official website|}}} | ||
| + | | label43 = Year of acquisition | ||
| + | | data43 = {{{acquisition year|}}} | ||
| − | | | + | | data51 = {{{nrhp|{{{embedded|{{{module|}}}}}}}}} |
| − | }}<noinclude> | + | }}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox mine with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox mine]] with unknown parameter "_VALUE_"|ignoreblank=y| acquisition year | active years | amount | caption | closing year | coordinates | country | embedded | financial year | greatest depth | image | location | map_caption | module | name | nrhp | official website | official_name | opening year | owner | place | products | pushpin_image | pushpin_label | pushpin_label_position | pushpin_map | pushpin_map_alt | pushpin_map_caption | pushpin_mapsize | state/province | stock_code | subdivision_type | type | width }}<noinclude>{{documentation}}<!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --></noinclude> |
| − | {{documentation}} | ||
| − | <!-- PLEASE ADD CATEGORIES TO THE /doc SUBPAGE, THANKS --> | ||
| − | </noinclude> | ||
Latest revision as of 21:47, 5 June 2017
| This is the template sandbox page for Template:Infobox mine (diff). |
| This template uses Lua: |
Contents
Blank infobox
- redirect Template:Parameter names example
{{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.
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 | |
|---|---|
| Lua error in Module:Location_map at line 399: Malformed coordinates value. | |
| Location | Superstition Mountains |
| State | Arizona |
| Country | United States |
| Coordinates | Lua error: callParserFunction: function "#coordinates" was not found. |
| Production | |
| Products | Gold |
| Production | 50,000 troy ounces |
| Financial year | Lifetime |
| Type | Underground |
| History | |
| Opened | 1875 |
| Closed | 1883 |
| Owner | |
| Company | Jacob Waitz |
| Website | Template:URL |
{{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
Tracking category
TemplateData
TemplateData documentation used by VisualEditor and other tools
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
See the monthly parameter usage report for this template.
TemplateData for Infobox mine No description.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| The above documentation is transcluded from Template:Infobox mine/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |
