Template:Infobox lighthouse: Difference between revisions

From Random Island Wiki
Jump to navigation Jump to search
>Frietjes
(fix spurious newline)
>Frietjes
(use infobox and add Category:Pages using infobox lighthouse with deprecated parameters for old latitude/longitude which could use latd/longd or coordinates instead)
Line 1: Line 1:
{| class="infobox vcard" style="width: 22em"
{{infobox
|+ class="fn" | {{{name|<includeonly>{{PAGENAME}}</includeonly>}}}
| bodyclass = vcard
|-
| titleclass = fn
{{#if:{{{image_name|}}}|
| title = {{{name|<includeonly>{{PAGENAME}}</includeonly>}}}
{{!}} colspan=2 style="text-align: center" {{!}} {{#invoke:InfoboxImage|InfoboxImage|image={{{image_name|}}}|size={{{image_width|}}}|sizedefault=frameless}}
 
{{!}}-
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image_name|}}}|size={{{image_width|}}}|sizedefault=frameless}}
{{#if:{{{caption|}}}|
| caption = {{{caption|}}}
{{!}} colspan=2 style="text-align: center" {{!}} {{{caption}}}
 
{{!}}-
| image2 = {{#if:{{{pushpin_map|}}}|<center>
}}
}}
{{#if:{{{pushpin_map|}}}|
{{!}}-
{{!}} colspan=2 style="text-align:center" align="center" {{!}} <center>
{{Location map|{{{pushpin_map|}}}
{{Location map|{{{pushpin_map|}}}
|label = {{#ifeq: {{lc: {{{pushpin_label_position|none}}} }} | none | | {{{name<includeonly>|{{PAGENAME}}</includeonly>}}} }}
|label = {{#ifeq: {{lc: {{{pushpin_label_position|none}}} }} | none | | {{{name<includeonly>|{{PAGENAME}}</includeonly>}}} }}
Line 43: Line 38:
|width = {{{pushpin_mapsize|}}}
|width = {{{pushpin_mapsize|}}}
|default_width = 240
|default_width = 240
}}{{#if:{{{pushpin_map_caption|}}}|<small>{{{pushpin_map_caption}}}</small>|{{#if:{{{map_caption|}}}|<small>{{{map_caption}}}</small>}}}}
}}}}
</center>
| caption2 = {{#if:{{{pushpin_map_caption|}}}|{{{pushpin_map_caption}}}|{{{map_caption|}}}}}
{{!}}-
 
}}
| label1 = Location
{{#if:{{{location|}}}|
| class1 = label
! Location
|  data1 = {{{location|}}}
{{!}} class="label" {{!}} {{{location}}}
 
{{!}}-
| label2 = [[British national grid reference system|OS grid]]
}}
| data2 = {{#if:{{{grid_ref_UK|}}}|{{gbm4ibx|{{{grid_ref_UK}}}}}}}
{{#if:{{{grid_ref_UK|}}}|
 
! [[British national grid reference system|OS grid]]
| label3 = [[Geographic coordinate system|Coordinates]]
{{!}} {{gbm4ibx|{{{grid_ref_UK}}}}}
|  data3 = {{#if:{{{coordinates|}}}
{{!}}-
  |{{{coordinates}}}
}}
  |{{#if:{{{latd|}}}
{{#if:{{{coordinates|}}}{{{latitude|}}}{{{longitude|}}}{{{latd|}}}|
    |{{Geobox coor|wrap=y|{{{latd|}}}|{{{latm|}}}|{{{lats|}}}|{{{latNS|}}}|{{{longd|}}}|{{{longm|}}}|{{{longs|}}}|{{{longEW|}}}|type:landmark|{{#ifeq:{{{coordinates_display|}}}|inline|μ|{{#if:{{{coordinates_display|}}}|title|μ}}}}={{{coordinates_display|}}} }}{{#if:{{{coordinates_footnotes|}}}|{{{coordinates_footnotes}}} }}
! [[Geographic coordinate system|Coordinates]]
    |{{br separated entries|1={{{latitude|}}}|2={{{longitude|}}}}}
{{!}} {{#if:{{{coordinates|}}}|{{{coordinates}}}|{{#if:{{{latd|}}}|
    }}  
{{Geobox coor|wrap=y|{{{latd|}}}|{{{latm|}}}|{{{lats|}}}|{{{latNS|}}}|{{{longd|}}}|{{{longm|}}}|{{{longs|}}}|{{{longEW|}}}|type:landmark|{{#ifeq:{{{coordinates_display|}}}|inline|μ|{{#if:{{{coordinates_display|}}}|title|μ}}}}={{{coordinates_display|}}} }}{{#if:{{{coordinates_footnotes|}}}|{{{coordinates_footnotes}}} }}|
  }}
{{{latitude|}}}<br>{{{longitude|}}} }} }}
 
{{!}}-
| label4 = Designation
}}
|  data4 = {{{designation|}}}
{{#if:{{{designation|}}}|
 
! Designation
| label5 = Year first constructed
{{!}} {{{designation}}}
|  data5 = {{{yearbuilt|}}}
{{!}}-
 
}}
| label6 = Year first lit
{{#if:{{{yearbuilt|}}}|
| class6 = note
! Year first constructed
|  data6 = {{{yearlit|}}}
{{!}} {{{yearbuilt}}}
 
{{!}}-
| label7 = Automated
}}
| class7 = note
{{#if:{{{yearlit|}}}|
|  data7 = {{{automated|}}}
! Year first lit
 
{{!}} class="note" {{!}} {{{yearlit}}}
| label8 = Deactivated
{{!}}-
|  data8 = {{{yeardeactivated|}}}
}}
 
{{#if:{{{automated|}}}|
| label9 = Foundation
! Automated
|  data9 = {{{foundation|}}}
{{!}} class="note" {{!}} {{{automated}}}
 
{{!}}-
| label10 = Construction
}}
|  data10 = {{{construction|}}}
{{#if:{{{yeardeactivated|}}}|
 
! Deactivated
| label11 = Tower shape
{{!}} {{{yeardeactivated}}}
|  data11 = {{{shape|}}}
{{!}}-
 
}}
| label12 = Markings / pattern
{{#if:{{{foundation|}}}|
| class12 = note
! Foundation
|  data12 = {{{marking|}}}
{{!}} {{{foundation}}}
 
{{!}}-
| label13 = Height
}}
|  data13 = {{{height|}}}
{{#if:{{{construction|}}}|
 
! Construction
| label14 = Focal height
{{!}} {{{construction}}}
|  data14 = {{{elevation|}}}{{{focalheight|}}}
{{!}}-
 
}}
| label15 = Original lens
{{#if:{{{shape|}}}|
|  data15 = {{{lens|}}}
! Tower shape
 
{{!}} {{{shape}}}
| label16 = Current lens
{{!}}-
|  data16 = {{{currentlens|}}}
}}
 
{{#if:{{{marking|}}}|
| label17 = Light source
! Markings / pattern
|  data17 = {{{lightsource|}}}
{{!}} class="note" {{!}} {{{marking}}}
 
{{!}}-
| label18 = Intensity
}}
|  data18 = {{{intensity|}}}
{{#if:{{{height|}}}|
 
! Height
| label19 = Range
{{!}} {{{height}}}
|  data19 = {{{range|}}}
{{!}}-
 
}}
| label20 = [[Light characteristic|Characteristic]]
{{#if:{{{elevation|}}}{{{focalheight|}}}|
| class20 = note
! Focal height
|  data20 = {{{characteristic|}}}
{{!}} {{{elevation|}}}{{{focalheight|}}}
 
{{!}}-
| label21 = [[Foghorn#Marine fog signals|Fog signal]]
}}
|  data21 = {{{fogsignal|}}}
{{#if:{{{lens|}}}|
 
! Original lens
| label22 = [[Racon]]
{{!}} {{{lens}}}
|  data22 = {{{racon|}}}
{{!}}-
 
}}
| label23 = [[United Kingdom Hydrographic Office|Admiralty]] number
{{#if:{{{currentlens|}}}|
|  data23 = {{{admiralty|}}}
! Current lens
 
{{!}} {{{currentlens}}}
| label24 = [[Canadian Hydrographic Service|CHS]] number
{{!}}-
|  data24 = {{{canada|}}}
}}
 
{{#if:{{{lightsource|}}}|
| label25 = [[National Geospatial-Intelligence Agency|NGA]] number
! Light source
|  data25 = {{{NGA|}}}
{{!}} {{{lightsource}}}
 
{{!}}-
| label26 = [[Amateur Radio Lighthouse Society|ARLHS]] number
}}
|  data26 = {{{ARLHS|}}}
{{#if:{{{intensity|}}}|
 
! Intensity
| label27 = [[United States Coast Guard|USCG]] number
{{!}} {{{intensity}}}
|  data27 = {{{USCG|}}}
{{!}}-
 
}}
| label28 = {{#if:{{{countrylink|}}}|[{{{countrylink}}} {{{country}}}]|{{{country}}}}} number
{{#if:{{{range|}}}|
|  data28 = {{{countrynumber|}}}
! Range
 
{{!}} {{{range}}}
| label29 = Managing agent
{{!}}-
|  data29 = {{{managingagent|}}}
}}
 
{{#if:{{{characteristic|}}}|
| label30 = Heritage
! [[Light characteristic|Characteristic]]
|  data30 = {{{heritage|}}}
{{!}} class="note" {{!}} {{{characteristic}}}
 
{{!}}-
}}{{#if:{{{latitude|}}}{{{longitude|}}}|[[Category:Pages using infobox lighthouse with deprecated parameters]]}}<noinclude>
}}
{{#if:{{{fogsignal|}}}|
! [[Foghorn#Marine fog signals|Fog signal]]
{{!}} {{{fogsignal}}}
{{!}}-
}}
{{#if:{{{racon|}}}|
! [[Racon]]
{{!}} {{{racon}}}
{{!}}-
}}
{{#if:{{{admiralty|}}}|
! [[United Kingdom Hydrographic Office|Admiralty]] number
{{!}} {{{admiralty}}}
{{!}}-
}}
{{#if:{{{canada|}}}|
! [[Canadian Hydrographic Service|CHS]] number
{{!}} {{{canada}}}
{{!}}-
}}
{{#if:{{{NGA|}}}|
! [[National Geospatial-Intelligence Agency|NGA]] number
{{!}} {{{NGA}}}
{{!}}-
}}
{{#if:{{{ARLHS|}}}|
! [[Amateur Radio Lighthouse Society|ARLHS]] number
{{!}} {{{ARLHS}}}
{{!}}-
}}
{{#if:{{{USCG|}}}|
! [[United States Coast Guard|USCG]] number
{{!}} {{{USCG}}}
{{!}}-
}}
{{#if:{{{country|}}}|
! {{#if:{{{countrylink|}}}|[{{{countrylink}}} {{{country}}}]|{{{country}}}}} number
{{!}} {{{countrynumber}}}
{{!}}-
}}
{{#if:{{{managing agent|}}}|
! Managing agent
{{!}} {{{managingagent}}}
{{!}}-
}}
{{#if:{{{heritage|}}}|
! Heritage
{{!}} {{{heritage}}}
{{!}}-
}}
|}<noinclude>
{{Convert to use Infobox}}
{{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 11:01, 25 August 2014