Template:Infobox lighthouse: Difference between revisions

From Random Island Wiki
Jump to navigation Jump to search
>Droll
(very minor tweak to Usage)
>Ligulem
(Converted to use m:ParserFunctions instead of bad Wikipedia:hiddenStructure + some minor tweaks)
Line 1: Line 1:
{| class="infobox bordered" style="width:23em; font-size: 90%; background-color: #F6F9FF;"
{| class="infobox bordered" style="width:23em; font-size: 90%; background-color: #F6F9FF;"
|+ style="font-size: larger;" | '''{{{name|{{PAGENAME}}}}}'''
|+ style="font-size: larger;" | '''{{{name<includeonly>|{{PAGENAME}}</includeonly>}}}'''
|- class{{{image_name|}}}="hiddenStructure"
|-
| colspan="2" style="text-align: center;" |
{{#if: {{{image_name<includeonly>|</includeonly>}}} |
[[Image:{{{image_name|}}}|250x300px| ]]<br>{{{caption|}}}
{{!}} colspan="2" style="text-align: center;" {{!}} [[Image:{{{image_name}}}|250x300px| ]]<br>{{{caption<includeonly>|</includeonly>}}} }}
|-  
|-  
! Location:
! Location:
| {{{location}}}
| {{{location}}}
|- style="vertical-align: middle;"
|- style="vertical-align: middle;"
{{#if: {{{coordinates|}}}{{{latitude|}}}{{{longitude|}}}|
{{#if: {{{coordinates<includeonly>|</includeonly>}}}{{{latitude|}}}{{{longitude|}}}|
! [[Geographic coordinate system|Coordinates]]<br><small> WGS-84 ([[Global Positioning System|GPS]])</small>
! [[Geographic coordinate system|Coordinates]]<br><small> WGS-84 ([[Global Positioning System|GPS]])</small>
{{!}} {{{coordinates| {{{latitude|}}}<br>{{{longitude|}}} }}}}}
{{!}} {{{coordinates<includeonly>| {{{latitude|}}}<br>{{{longitude|}}}</includeonly>}}} }}
|-
|-
{{#if: {{{foundation|}}}|
{{#if: {{{foundation<includeonly>|</includeonly>}}}|
! Foundation:
! Foundation:
{{!}} {{{foundation|}}}}}
{{!}} {{{foundation}}} }}
|-
|-
{{#if: {{{construction|}}}|
{{#if: {{{construction<includeonly>|</includeonly>}}}|
! Construction:
! Construction:
{{!}} {{{construction|}}}}}
{{!}} {{{construction}}} }}
|-
|-
{{#if: {{{yearlit|}}}|
{{#if: {{{yearlit<includeonly>|</includeonly>}}} |
! Year first lit:
! Year first lit:
{{!}} {{{yearlit|}}}}}
{{!}} {{{yearlit}}} }}
|-
|-
{{#if: {{{yearbuilt|}}}|
{{#if: {{{yearbuilt<includeonly>|</includeonly>}}}|
! Year first constructed:
! Year first constructed:
{{!}} {{{yearbuilt|}}}}}
{{!}} {{{yearbuilt}}} }}
|-
|-
{{#if: {{{yeardeactivated|}}}|
{{#if: {{{yeardeactivated<includeonly>|</includeonly>}}}|
! Deactivated:
! Deactivated:
{{!}} {{{yeardeactivated|}}}}}
{{!}} {{{yeardeactivated}}} }}
|-
|-
{{#if: {{{automated|}}}|
{{#if: {{{automated<includeonly>|</includeonly>}}} |
! Automated:
! Automated:
{{!}} {{{automated|}}}}}
{{!}} {{{automated}}} }}
|-
|-
{{#if: {{{shape|}}}|
{{#if: {{{shape<includeonly>|</includeonly>}}} |
! Tower&nbsp;shape:
! Tower&nbsp;shape:
{{!}} {{{shape|}}}}}
{{!}} {{{shape}}} }}
|-
|-
{{#if: {{{marking|}}}|
{{#if: {{{marking<includeonly>|</includeonly>}}} |
! Markings/Pattern:
! Markings/Pattern:
{{!}} {{{marking|}}}}}
{{!}} {{{marking}}} }}
|-
|-
{{#if: {{{height|}}}|
{{#if: {{{height<includeonly>|</includeonly>}}} |
! Height:
! Height:
{{!}} {{{height|}}}}}
{{!}} {{{height}}} }}
|-
|-
{{#if: {{{elevation|}}}|
{{#if: {{{elevation<includeonly>|</includeonly>}} }|
! Elevation:
! Elevation:
{{!}} {{{elevation|}}}}}
{{!}} {{{elevation}}} }}
|-
|-
{{#if: {{{lens|}}}|
{{#if: {{{lens<includeonly>|</includeonly>}}} |
! Original&nbsp;lens:
! Original&nbsp;lens:
{{!}} {{{lens|}}}}}
{{!}} {{{lens}}} }}
|-
|-
{{#if: {{{currentlens|}}}|
{{#if: {{{currentlens<includeonly>|</includeonly>}}} |
! Current&nbsp;lens:
! Current&nbsp;lens:
{{!}} {{{currentlens|}}}}}
{{!}} {{{currentlens}}} }}
|-
|-
{{#if: {{{intensity|}}}|
{{#if: {{{intensity<includeonly>|</includeonly>}}} |
! Intensity:
! Intensity:
{{!}} {{{intensity|}}}}}
{{!}} {{{intensity}}} }}
|-
|-
{{#if: {{{range|}}}|
{{#if: {{{range<includeonly>|</includeonly>}}}|
! Range:
! Range:
{{!}} {{{range|}}}}}
{{!}} {{{range}}} }}
|-
|-
{{#if: {{{characteristic|}}}|
{{#if: {{{characteristic<includeonly>|</includeonly>}}} |
! [[Characteristic light|Characteristic:]]
! [[Characteristic light|Characteristic:]]
{{!}} {{{characteristic|}}}}}
{{!}} {{{characteristic}}} }}
|}<noinclude>
|}<noinclude>


Line 82: Line 82:
   | caption =  
   | caption =  
   | location =  
   | location =  
   | coordinates = {{coor dms|38|55|59|N|74|57|37|W|type:landmark}} or {{coor d|38.9|N|-74.9|E|type:landmark}}
   | coordinates =     {{coor dms|38|55|59|N|74|57|37|W|type:landmark}}  
                  or {{coor d|38.9|N|-74.9|E|type:landmark}}
   | yearbuilt =  
   | yearbuilt =  
   | yearlit =  
   | yearlit =  

Revision as of 15:40, 8 October 2006

{{{name}}}
[[Image:{{{image_name}}}|250x300px| ]]
{{{caption}}}
Location: {{{location}}}
Coordinates
WGS-84 (GPS)
{{{coordinates}}}
Foundation: {{{foundation}}}
Construction: {{{construction}}}
Year first lit: {{{yearlit}}}
Year first constructed: {{{yearbuilt}}}
Deactivated: {{{yeardeactivated}}}
Automated: {{{automated}}}
Tower shape: {{{shape}}}
Markings/Pattern: {{{marking}}}
Height: {{{height}}}
Elevation: {{{elevation}}}
Original lens: {{{lens}}}
Current lens: {{{currentlens}}}
Intensity: {{{intensity}}}
Range: {{{range}}}
Characteristic: {{{characteristic}}}

Usage

Empty fields and missing lines are not displayed

{{Infobox_Lighthouse       
  | image_name = 
  | caption = 
  | location = 
  | coordinates =     {{coor dms|38|55|59|N|74|57|37|W|type:landmark}} 
                   or {{coor d|38.9|N|-74.9|E|type:landmark}}
  | yearbuilt = 
  | yearlit = 
  | automated = 
  | yeardeactivated = 
  | foundation = 
  | construction = 
  | shape = 
  | marking = 
  | height = 
  | elevation = 
  | lens = 
  | currentlens = 
  | intensity = 
  | range = 
  | characteristic = 
}}