Template:Infobox lighthouse: Difference between revisions

From Random Island Wiki
Jump to navigation Jump to search
>JJMC89
(coordinsert type:landmark)
>Jonesey95
(Convert coords to new parameters. See Wikipedia:Coordinates in infoboxes.)
Line 13: Line 13:
|relief = {{{pushpin_relief|{{{relief|}}}}}}
|relief = {{{pushpin_relief|{{{relief|}}}}}}
|coordinates = {{{coordinates|}}}
|coordinates = {{{coordinates|}}}
|lat= {{#if:{{{latm|}}}{{{latNS|}}}| |{{{latd|}}} }}
|long = {{#if:{{{longm|}}}{{{longEW|}}}| |{{{longd|}}} }}
|lat_deg={{#if:{{{latm|}}}{{{latNS|}}}|{{{latd|}}}| }}
|lat_min={{#if:{{{latm|}}}{{{latNS|}}}|{{{latm|}}}| }}
|lat_sec={{#if:{{{lats|}}}{{{latNS|}}}|{{{lats|}}}| }}
|lat_dir={{#if:{{{latNS|}}}|{{{latNS|}}}| }}
|lon_deg={{#if:{{{longm|}}}{{{longEW|}}}|{{{longd|}}}| }}
|lon_min={{#if:{{{longm|}}}{{{longEW|}}}|{{{longm|}}}| }}
|lon_sec={{#if:{{{longs|}}}{{{longEW|}}}|{{{longs|}}}| }}
|lon_dir={{#if:{{{longEW|}}}|{{{longEW|}}}| }}
|mark= {{#switch:{{lc:{{{pushpin}}}}}
|mark= {{#switch:{{lc:{{{pushpin}}}}}
  |lighthouse = Lighthouse icon shifted.svg
  |lighthouse = Lighthouse icon shifted.svg
Line 51: Line 41:
| label3 = [[Geographic coordinate system|Coordinates]]
| label3 = [[Geographic coordinate system|Coordinates]]
|  data3 = {{#if:{{{coordinates|}}}
|  data3 = {{#if:{{{coordinates|}}}
   |{{#invoke:Coordinates|coordinsert|{{{coordinates}}}|type:landmark}}
   |{{#invoke:Coordinates|coordinsert|{{{coordinates}}}|type:landmark}} }}
  |{{#if:{{{latd|}}}
    |[[Category:Pages using deprecated coordinates format|lighthouse]]{{Geobox coor|wrap=y|{{{latd|}}}|{{{latm|}}}|{{{lats|}}}|{{{latNS|}}}|{{{longd|}}}|{{{longm|}}}|{{{longs|}}}|{{{longEW|}}}|{{#if:{{{coordinates_type|}}}|{{{coordinates_type}}}|type:landmark}}|{{#ifeq:{{{coordinates_display|}}}|inline|μ|{{#if:{{{coordinates_display|}}}|title|μ}}}}={{{coordinates_display|}}} }}{{#if:{{{coordinates_footnotes|}}}|{{{coordinates_footnotes}}} }}
    }}
  }}


| label4 = Designation
| label4 = Designation
Line 144: Line 130:
| header31 = {{{module|}}}
| header31 = {{{module|}}}


}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox lighthouse with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox lighthouse]] with unknown parameter "_VALUE_"|ignoreblank=y| name | image_name | image_width | caption | pushpin_map | pushpin_label_position | pushpin_map_alt | pushpin_relief | relief | latm | latNS | latd | longm | longEW | longd | lats | longs | pushpin | pushpin_mapsize | pushpin_map_caption | map_caption | location | grid_ref_UK | coordinates | coordinates_type | coordinates_display | coordinates_footnotes | designation | yearbuilt | yearlit | automated | yeardeactivated | foundation | construction | shape | marking | height | elevation | focalheight | lens | currentlens | lightsource | intensity | range | characteristic | fogsignal | racon | admiralty | canada | NGA | ARLHS | USCG | countrylink | country | countrynumber | managingagent | heritage | module }}<noinclude>
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox lighthouse with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox lighthouse]] with unknown parameter "_VALUE_"|ignoreblank=y| name | image_name | image_width | caption | pushpin_map | pushpin_label_position | pushpin_map_alt | pushpin_relief | relief | pushpin | pushpin_mapsize | pushpin_map_caption | map_caption | location | grid_ref_UK | coordinates | designation | yearbuilt | yearlit | automated | yeardeactivated | foundation | construction | shape | marking | height | elevation | focalheight | lens | currentlens | lightsource | intensity | range | characteristic | fogsignal | racon | admiralty | canada | NGA | ARLHS | USCG | countrylink | country | countrynumber | managingagent | heritage | module }}<noinclude>
{{documentation}}<!-- place category on the /doc sub-page, not here -->
{{documentation}}<!-- place category on the /doc sub-page, not here -->
</noinclude>
</noinclude>

Revision as of 02:27, 20 January 2017