Difference between revisions of "Template:Infobox windmill"
Jump to navigation
Jump to search
[[Category:Infobox templates|Template:Remove first word]]
imported>Hyacinth |
imported>Evad37 (add automatic mapframe maps, per talk) |
||
Line 4: | Line 4: | ||
| above = <includeonly>''{{{name|{{PAGENAMEBASE}}}}}''</includeonly> | | above = <includeonly>''{{{name|{{PAGENAMEBASE}}}}}''</includeonly> | ||
| aboveclass = fn org | | aboveclass = fn org | ||
+ | | headerstyle = background-color: #d8bfd8 | ||
+ | |||
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|upright={{{image_upright|1}}}|alt={{{alt|}}}}} | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|upright={{{image_upright|1}}}|alt={{{alt|}}}}} | ||
| caption = {{{caption|}}} | | caption = {{{caption|}}} | ||
− | | | + | |
+ | | image2 = {{If declined|{{{mapframe|}}}||{{Infobox mapframe | ||
+ | | zoom = {{{mapframe-zoom|}}} | ||
+ | | frame-width = {{{mapframe-width|}}} | ||
+ | | frame-height = {{{mapframe-height|}}} | ||
+ | | marker = {{{mapframe-marker|}}} | ||
+ | | marker-color = {{{mapframe-marker-color|{{{mapframe-marker-colour|}}}}}} | ||
+ | | frame-lat = {{{mapframe-lat|{{{mapframe-latitude|}}}}}} | ||
+ | | frame-long = {{{mapframe-long|{{{mapframe-longitude|}}}}}} | ||
+ | }} | ||
+ | }} | ||
+ | | caption2 = {{If declined|{{{mapframe|}}}||{{{mapframe-caption|}}}}} | ||
| header1 = {{#if:{{{name_of_mill|}}}{{{location_of_mill|}}}{{{operator|}}}{{{built|}}}|Origin}} | | header1 = {{#if:{{{name_of_mill|}}}{{{location_of_mill|}}}{{{operator|}}}{{{built|}}}|Origin}} | ||
Line 76: | Line 89: | ||
{{!}}} }} | {{!}}} }} | ||
− | }}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox windmill with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox windmill]] with unknown parameter "_VALUE_"|ignoreblank=y| alt | auxpower | base_storeys | built | caption | coordinates | fantail_blades | gbgridref | image | image_size | image_upright | location_of_mill | lost | name | name_of_mill | nrhp | operator | other | pairs_of_millstones | pump_type | purpose | roundhouse_storeys | sail_number | sail_type | saw_type | scoop_dia | smock_sides | stone_size | storeys | type | winding | windshaft }}<noinclude>{{Documentation}}<!-- Add category and language links to the /doc page, not here --></noinclude> | + | }}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox windmill with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox windmill]] with unknown parameter "_VALUE_"|ignoreblank=y| alt | auxpower | base_storeys | built | caption | coordinates | fantail_blades | gbgridref | image | image_size | image_upright | location_of_mill | lost | name | name_of_mill | nrhp | operator | other | pairs_of_millstones | pump_type | purpose | roundhouse_storeys | sail_number | sail_type | saw_type | scoop_dia | smock_sides | stone_size | storeys | type | winding | windshaft | mapframe | mapframe-zoom | mapframe-width | mapframe-height | mapframe-marker | mapframe-marker-color | mapframe-marker-colour | mapframe-caption | mapframe-lat | mapframe-latitude | mapframe-long | mapframe-longitude }}<noinclude>{{Documentation}}<!-- Add category and language links to the /doc page, not here --></noinclude> |
Revision as of 10:09, 25 September 2018
Template:If declined |
[[Category:Infobox templates|Template:Remove first word]]
![]() | This template uses Lua: |
Usage
{{{name}}} | |
---|---|
[[File:{{{image}}}|{{{image_size}}}|upright=1]] {{{caption}}} | |
Template:If declined | |
Origin | |
Mill name | {{{name_of_mill}}} |
Mill location | {{{location_of_mill}}} |
Grid reference | {{{gbgridref}}} |
Coordinates | Lua error: callParserFunction: function "#coordinates" was not found. |
Operator(s) | {{{operator}}} |
Year built | {{{built}}} |
Information | |
Purpose | {{{purpose}}} |
Type | {{{type}}} |
Storeys | {{{storeys}}} |
Base storeys | {{{base_storeys}}} |
Roundhouse storeys | {{{roundhouse_storeys}}} |
Smock sides | {{{smock_sides}}} |
No. of sails | {{{sail_number}}} |
Type of sails | {{{sail_type}}} |
Windshaft | {{{windshaft}}} |
Winding | {{{winding}}} |
Fantail blades | {{{fantail_blades}}} |
Auxiliary power | {{{auxpower}}} |
No. of pairs of millstones | {{{pairs_of_millstones}}} |
Size of millstones | {{{stone_size}}} |
Type of saw | {{{saw_type}}} |
Type of pump | {{{pump_type}}} |
Scoopwheel diameter | {{{scoop_dia}}} |
Year lost | {{{lost}}} |
Other information | {{{other}}} |
{{Infobox windmill | name = {{subst:PAGENAME}} | image = | image_size = | caption = | name_of_mill = | location_of_mill = | gbgridref = | coordinates = {{coord|||type:landmark}} | operator = | built = | purpose = | type = | storeys = | base_storeys = | roundhouse_storeys = | smock_sides = | sail_number = | sail_type = | windshaft = | winding = | fantail_blades = | auxpower = | pairs_of_millstones = | stone_size = | saw_type = | pump_type = | scoop_dia = | lost = | other = }}
Mapframe maps
A Mapframe map is automatically included if:
- There are coordinates specified on the page's Wikidata item
- It has not be turned off by setting
|mapframe=no
The following optional parameters can then be used to adjust the map
|mapframe-zoom=
zoom level (default is 10)|mapframe-width=
and|mapframe-height=
for the map size (defaults are 270 and 200)|mapframe-marker=
for the marker icon (default is no marker icon)- either
|mapframe-marker-color=
or|mapframe-marker-colour=
for the marker colour (hex triplet, default is#5E74F3
) |mapframe-caption=
caption below the map|mapframe-lat=
and|mapframe-long=
(or|mapframe-latitude=
and|mapframe-longitude=
) – alternate initial latitude and longitude for the map, instead of the windmill's coordinates. Specify as a decimal number.
Tracking category
See also
The above documentation is transcluded from Template:Infobox windmill/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. |