Template:Infobox lighthouse: Difference between revisions

From Random Island Wiki
Jump to navigation Jump to search
>Beyond My Ken
(@null edit: 125% works for me)
>Thumperward
(general code overhaul, on the way to {{infobox}}ing this)
Line 1: Line 1:
{| class="infobox vcard" style="width:23em; font-size: 90%; text-align:left; background-color: #F6F9FF;"
{| class="infobox vcard" style="width: 22em"
|+ class="fn" | {{{name|<includeonly>{{PAGENAME}}</includeonly>}}}
|-
|-
!class="fn" colspan="2" style="font-size: 125%; text-align:center" | '''{{{name<includeonly>|{{PAGENAME}}</includeonly>}}}'''
{{#if:{{{image_name|}}}|
|-
{{!}} colspan=2 style="text-align: center" {{!}} [[file:{{{image_name}}}|{{px|{{{image_width|}}}|frameless}}]]
{{#if: {{{image_name<includeonly>|</includeonly>}}} |
{{!}}-
{{!}} colspan="2" style="text-align: center;" {{!}} [[Image:{{{image_name}}}|{{{image_width|250x300px}}}|{{{name|{{PAGENAME}}}}} - {{{caption|}}}]]<br>{{{caption<includeonly>|</includeonly>}}} }}
{{#if:{{{caption|}}}
{{!}} colspan=2 style="text-align: center" {{!}} {{{caption}}}
{{!}}-
}}
}}
{{#if:{{{pushpin_map|}}}|
{{#if:{{{pushpin_map|}}}|
{{!}}-
{{!}}-
{{!}} colspan="2" style="text-align:center" align="center" {{!}} <center>
{{!}} 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 34: Line 39:
|caption =
|caption =
|border = none
|border = none
|position = {{#if:{{{pushpin_label_position|}}} | {{{pushpin_label_position|}}} | right }}
|position = {{#if:{{{pushpin_label_position|}}}| {{{pushpin_label_position|}}}| right }}
|width = {{#if:{{{pushpin_mapsize|}}}|{{{pushpin_mapsize|}}} | 240 }}
|width = {{#if:{{{pushpin_mapsize|}}}|{{{pushpin_mapsize|}}}| 240 }}
}}{{#if:{{{pushpin_map_caption|}}}|<small>{{{pushpin_map_caption}}}</small>|{{#if:{{{map_caption|}}}|<small>{{{map_caption}}}</small>}}}}
}}{{#if:{{{pushpin_map_caption|}}}|<small>{{{pushpin_map_caption}}}</small>|{{#if:{{{map_caption|}}}|<small>{{{map_caption}}}</small>}}}}
</center>
</center>
{{!}}-
}}
}}
|-
{{#if:{{{location|}}}|
! Location:
! Location
| <span class="label">{{{location}}}</span>
{{!}} class="label" {{!}} {{{location}}}
|- style="vertical-align: middle;"
{{!}}-
{{#if: {{{coordinates<includeonly>|</includeonly>}}}{{{latitude|}}}{{{longitude|}}}{{{latd|}}}|
}}
{{#if:{{{coordinates|}}}{{{latitude|}}}{{{longitude|}}}{{{latd|}}}|
! [[Geographic coordinate system|Coordinates]]
! [[Geographic coordinate system|Coordinates]]
{{!}} {{#if:{{{coordinates<includeonly>|</includeonly>}}}|{{{coordinates}}}|{{#if:{{{latd|}}}|
{{!}} {{#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}}} }}|
{{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|}}} }} }} }}
{{{latitude|}}}<br>{{{longitude|}}} }} }}
|-
{{!}}-
{{#if: {{{designation<includeonly>|</includeonly>}}}|
}}
! Designation:
{{#if:{{{designation|}}}|
{{!}} {{{designation}}} }}
! Designation
|-
{{!}} {{{designation}}}
{{#if: {{{yearbuilt<includeonly>|</includeonly>}}}|
{{!}}-
! Year first constructed:
}}
{{!}} {{{yearbuilt}}} }}
{{#if:{{{yearbuilt|}}}|
|- class="note"
! Year first constructed
{{#if: {{{yearlit<includeonly>|</includeonly>}}} |
{{!}} {{{yearbuilt}}}
! Year first lit:
{{!}}-
{{!}} {{{yearlit}}} }}
}}
|- class="note"
{{#if:{{{yearlit|}}}|
{{#if: {{{automated<includeonly>|</includeonly>}}} |
! Year first lit
! Automated:
{{!}} class="note" {{!}} {{{yearlit}}}
{{!}} {{{automated}}} }}
{{!}}-
|-
}}
{{#if: {{{yeardeactivated<includeonly>|</includeonly>}}}|
{{#if:{{{automated|}}}|
! Deactivated:
! Automated
{{!}} {{{yeardeactivated}}} }}
{{!}} class="note" {{!}} {{{automated}}}
|-
{{!}}-
{{#if: {{{foundation<includeonly>|</includeonly>}}}|
}}
! Foundation:
{{#if:{{{yeardeactivated|}}}|
{{!}} {{{foundation}}} }}
! Deactivated
|-
{{!}} {{{yeardeactivated}}}
{{#if: {{{construction<includeonly>|</includeonly>}}}|
{{!}}-
! Construction:
}}
{{!}} {{{construction}}} }}
{{#if:{{{foundation|}}}|
|-
! Foundation
{{#if: {{{shape<includeonly>|</includeonly>}}} |
{{!}} {{{foundation}}}
! Tower&nbsp;shape:
{{!}}-
{{!}} {{{shape}}} }}
}}
|- class="note"
{{#if:{{{construction|}}}|
{{#if: {{{marking<includeonly>|</includeonly>}}} |
! Construction
! Markings/Pattern:
{{!}} {{{construction}}}
{{!}} {{{marking}}} }}
{{!}}-
|-
}}
{{#if: {{{height<includeonly>|</includeonly>}}} |
{{#if:{{{shape|}}}|
! Height:
! Tower shape
{{!}} {{{height}}} }}
{{!}} {{{shape}}}
|-
{{!}}-
{{#if: {{{elevation|}}} |
}}
! Focal Height:
{{#if:{{{marking|}}}|
{{!}} {{{elevation}}} }}
! Markings / pattern
|-
{{!}} class="note" {{!}} {{{marking}}}
{{#if: {{{focalheight<includeonly>|</includeonly>}}} |
{{!}}-
! Focal Height:
}}
{{!}} {{{focalheight}}} }}
{{#if:{{{height|}}}|
|-
! Height
{{#if: {{{lens<includeonly>|</includeonly>}}} |
{{!}} {{{height}}}
! Original&nbsp;lens:
{{!}}-
{{!}} {{{lens}}} }}
}}
|-
{{#if:{{{elevation|}}}{{{focalheight|}}}|
{{#if: {{{currentlens<includeonly>|</includeonly>}}} |
! Focal height
! Current&nbsp;lens:
{{!}} {{{elevation|{{{focalheight}}}}}}
{{!}} {{{currentlens}}} }}
{{!}}-
|-
}}
{{#if: {{{intensity<includeonly>|</includeonly>}}} |
{{#if:{{{lens|}}}|
! Intensity:
! Original lens
{{!}} {{{intensity}}} }}
{{!}} {{{lens}}}
|-
{{!}}-
{{#if: {{{range<includeonly>|</includeonly>}}}|
}}
! Range:
{{#if:{{{currentlens|}}}|
{{!}} {{{range}}} }}
! Current lens
|- class="note"
{{!}} {{{currentlens}}}
{{#if: {{{characteristic<includeonly>|</includeonly>}}} |
{{!}}-
! [[Light characteristic|Characteristic:]]
}}
{{!}} {{{characteristic}}} }}
{{#if:{{{intensity|}}}|
|-
! Intensity
{{#if: {{{fogsignal<includeonly>|</includeonly>}}} |
{{!}} {{{intensity}}}
! [[Foghorn#Marine fog signals|Fog signal:]]
{{!}}-
{{!}} {{{fogsignal}}} }}
}}
|-
{{#if:{{{range|}}}|
{{#if: {{{racon <includeonly>|</includeonly>}}}|
! Range
! [[Racon]]:
{{!}} {{{range}}}
{{!}} {{{racon}}} }}
{{!}}-
|-
}}
{{#if: {{{admiralty <includeonly>|</includeonly>}}}|
{{#if:{{{characteristic|}}}|
! [[United Kingdom Hydrographic Office|Admiralty]] number:
! [[Light characteristic|Characteristic]]
{{!}} {{{admiralty}}} }}
{{!}} class="note" {{!}} {{{characteristic}}}
|-
{{!}}-
{{#if: {{{canada <includeonly>|</includeonly>}}}|
}}
! [[Canadian Hydrographic Service|CHS]] number:
{{#if:{{{fogsignal|}}}|
{{!}} {{{canada}}} }}
! [[Foghorn#Marine fog signals|Fog signal]]
|-
{{!}} {{{fogsignal}}}
{{#if: {{{NGA <includeonly>|</includeonly>}}}|
{{!}}-
! [[National Geospatial-Intelligence Agency|NGA]] number:
}}
{{!}} {{{NGA}}} }}
{{#if:{{{racon|}}}|
|-
! [[Racon]]
{{#if: {{{ARLHS <includeonly>|</includeonly>}}}|
{{!}} {{{racon}}}
! [[Amateur Radio Lighthouse Society|ARLHS]] number:
{{!}}-
{{!}} {{{ARLHS}}} }}
}}
|-
{{#if:{{{admiralty|}}}|
{{#if: {{{USCG<includeonly>|</includeonly>}}} |
! [[United Kingdom Hydrographic Office|Admiralty]] number
! [[United States Coast Guard|USCG]] number:
{{!}} {{{admiralty}}}
{{!}} {{{USCG}}} }}
{{!}}-
|-
}}
{{#if: {{{country<includeonly>|</includeonly>}}} |
{{#if:{{{canada|}}}|
! {{#if: {{{countrylink|}}}|[{{{countrylink}}} {{{country}}}]|{{{country}}}}} number:
! [[Canadian Hydrographic Service|CHS]] number
{{!}} {{{countrynumber}}} }}
{{!}} {{{canada}}}
|}<noinclude>{{pp-template}}
{{!}}-
{{Documentation}}
}}
</noinclude>
{{#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}}}
{{!}}-
}}
|}<noinclude>{{documentation}}<!-- place category and language links on the /doc sub-page, not here --></noinclude>

Revision as of 09:25, 21 June 2011