Template:Infobox lighthouse/doc: Difference between revisions

From Random Island Wiki
Jump to navigation Jump to search
>Zyxw
(add link to hidden tracking/maintenance category, add Category:Templates that add a tracking category, update comments, prevent categories from being transcluded by /sandbox)
m (1 revision imported)
 
(58 intermediate revisions by 27 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
{{Lua|Module:Infobox|Module:Coordinates|Module:InfoboxImage|Module:Lighthouse tracking|Module:String|Module:Wikidata|Module:WikidataIB|Module:Check for unknown parameters}}
{{tl|Infobox lighthouse}} may be used to summarise information about a lighthouse. Much of this infobox's data will be retrieved from [[Wikidata]]. Editors are encouraged to add data to the relevant item.


{{tl|Infobox lighthouse}} may be used to summarise information about a lighthouse.
<!--{{Parameter names example|name|image_name|image_width|caption|coordinates={{coord|0|0}}|coordinates_footnotes|map_caption|location|grid_ref_UK|designation|yearbuilt|yearlit|automated|yeardeactivated|foundation|construction|shape|marking|height|focalheight|lens|lightsource|intensity|range|characteristic|fogsignal|racon|admiralty|canada|NGA|ARLHS|USCG|countrylink|country|countrynumber|managingagent|heritage|module}}-->
 
== Usage ==
Empty fields and missing lines are not displayed
 
<pre>
{{Infobox lighthouse   
| name           =
| image_name     =
| image_width     =
| caption         =
| location        =  
| pushpin_map    =
| relief          =
| pushpin_mapsize =
| pushpin_map_alt =
| pushpin_map_caption =
| pushpin        =
| pushpin_label_position =
| latd  = | latm  = | lats  = | latNS  =
| longd = | longm = | longs = | longEW =
| coordinates_display =
| coordinates_footnotes =
| yearbuilt       =
| yearlit         =
| automated       =
| yeardeactivated =
| foundation     =
| construction   =
| shape           =
| marking         =
| height         =
| focalheight     =
| lens           =
| currentlens    =
| lightsource     =
| intensity       =
| range           =
| characteristic =
| fogsignal       =
| racon           =
| admiralty       =
| canada         =
| NGA             =
| ARLHS           =
| USCG           =
| country         =
| countrynumber   =
| countrylink    =
| managingagent   =
| heritage       =
| module         =
}}
</pre>
 
==Coordinates==
For coordinates, use
<pre>
  | latd = | latm = | lats = | latNS =
  | longd= | longm= | longs= | longEW=
  | coordinates_display=
</pre>
which displays linked coordinates using the {{tl|coord}} template.  <u>Example</u>: 42°01'59.23"N, 70°10'07.15"W would be entered as:
 
<pre>
  | latd  = 42
  | latm  = 1
  | lats  = 59.23
  | latNS = N
  | longd = 70
  | longm = 10
  | longs = 7.15
  | longEW = W
</pre>
 
or it can be entered in decimal notation, 42.033119, -70.168653, as:
 
<pre>
  | latd  = 42.033119
  | longd = -70.168653
</pre>
 
*coordinates_display – sets the {{tl|coord}} template display option: '''inline''' (default), '''title''' or '''inline,title'''
 
Alternatively, you can use the {{tl|coord}} template directly using the <code>coordinates =</code> option.  For example,
<pre>
| coordinates = {{coord|1|2|N|3|4|E|type:landmark|display=inline,title}}
</pre>
 
==Pushpin map==
To add a {{tl|Location map}}, specify which map using <code>pushpin_map=</code>.  For this option to work, the coordinates must be specified using <code>latd=</code> and <code>longd=</code> (i.e. don't use <code>coordinates=</code>).


==Parameters for the tower==
{| class="wikitable"
{| class="wikitable"
! Parameter
! Label
! Wikidata properties
! Usage
! Usage
! Example(s)
! Example(s)
! Override parameter
|-
|-
| pushpin_map
! Image
| The name of the map to be displayed.
| {{Q|P18}} qualified by {{Q|P2096}}
| <code>pushpin_map=[[Module:Location map/data/France|France]]</code> <br /> <code>pushpin_map=[[Template:Location map USA Florida|USA Florida]]</code>
| An image of the lighthouse stored on Wikimedia Commons. A caption can be included with {{Q|P2096}}.
| Cuxhaven 07-2016 photo23 Kugelbake.jpg
| {{para|image_name}}, {{para|caption}}
|-
|-
| relief
! Location
| Any non-blank value will cause the template to display a [[relief mapping (computer graphics)|relief map]] image, where available. For additional information, see [[Template:Location map#Relief parameter]].
| {{Q|P625}}, {{Q|P706}}, {{Q|P276}}, {{Q|P131}}, {{Q|P17}}
| <code>relief=yes</code>  <br /> <code>relief=1</code>
| Location of the lighthouse.
| {{Q|Q126514}}
| {{para|location}}
|-
|-
| pushpin_mapsize
! [[British national grid reference system|OS grid]]
| Width to display the map image in pixels. The default is 240.
| {{Q|P613}}
| <code>pushpin_mapsize=200</code>  <br /> (not <code>pushpin_mapsize=200px</code>)
| [[Ordnance Survey National Grid]] coordinates.
| NZ40806416
| {{para|grid_ref_UK}}
|-
|-
| pushpin_map_alt
! [[Geographic coordinate system|Coordinates]]
| Alternative text for the map image, see [[WP:ALT]].
| {{Q|P625}}
|  
| Latitude and longitude of the position of the lighthouse. If specifying manually, use the {{tl|Coord}} template. A map will automatically be included in the infobox unless it is turned off (see [[#Maps]]).
| 29°4'18.012"N, 48°29'35.988"E
| {{para|coordinates|{{tlf|Coord||N||E}}}}
|-
|-
| pushpin_map_caption
! Constructed
| Text displayed below the map image
| {{Q|P571}}
|  
| Date of start of construction.
| 1897
| {{para|yearbuilt}}
|-
|-
| pushpin
! Designed by
| Specify one of three pre-defined marker images to be displayed on the location map.
| {{Q|P287}}
| <code>pushpin=red</code> for [[File:Red pog.svg|8px]] &nbsp; (default) <br /> <code>pushpin=green</code> for [[File:Green pog.svg|8px]]  <br /> <code>pushpin=lighthouse</code> for [[File:Lighthouse icon shifted.svg|16px]]
| Designer of the lighthouse.
| {{Q|Q27835212}}
| {{para|suppressfields|designer}}
|-
|-
| pushpin_label_position
! Built by
| To add a label next to the pushpin, use a value of ''top'', ''bottom'',''left'', or ''right''.  The default value is ''none''.
| {{Q|P193}}, {{Q|P631}}
| <code>pushpin_label_position=top</code> <br /> <code>pushpin_label_position=bottom</code> <br /> <code>pushpin_label_position=left</code> <br /> <code>pushpin_label_position=right</code>
| Engineer or builder of the lighthouse.
|}
| {{Q|Q1355182}}
 
| {{para|suppressfields|builder}}
==Other parameter usage==
Parameters left blank will not be shown. All of the parameters are text fields so you can, for example
*list in a span of years: <code>yeardeactivated = 1952–1980</code>
*provide explanation: <code>yearlit = 1880 (current tower)</code>
*give more than one answer: <code><nowiki>fogsignal = Bell (1880)<br />Horn 1 every 20s (1915)</nowiki></code>
 
{| class="wikitable"
! Parameter
! Usage
! Example(s)
|-
|-
| yearbuilt
! Foundation
| usually the year the light ''first'' built (construction completed)
| n/a
|  
| The material of the foundation.
| concrete
| {{para|foundation}}
|-
|-
| yearlit
! Construction
| usually the year the ''present'', or ''last'' structure was lit
| {{Q|P186}} qualified with {{Q|P518}}
|  
| The material of the structure.
| {{Q|Q41177}}
| {{para|construction}}
|-
|-
| automated
! Tower shape
| the year it was automated
| {{Q|P1419}} qualified with {{Q|P518}}
|  
| The shape of the structure.
| {{Q|Q9090332}}
| {{para|shape}}
|-
|-
| yeardeactivated
! Markings
| If the light is no longer in service, list the year it was last working.<br />List a span of years using an en-dash.
| {{Q|P462}} qualified by {{Q|P518}}<br>{{Q|P5422}} qualified with {{Q|P1114}}, {{Q|P462}}, {{Q|P7469}}, {{Q|P518}}
| taken offline in 1952, and later dismantled in 1960:''<br /><code><nowiki>&nbsp;&nbsp;| yeardeactivated = 1952</nowiki></code><br /> Decommissioned in 1952, re-established in 1980:''<br /><code><nowiki>&nbsp;&nbsp;| yeardeactivated = 1952–1980</nowiki></code>
| Color or other distinctive marks.
| horizontal red stripe
| {{para|marking}}
|-
|-
| foundation
! Tower height
| the material of the foundation
| {{Q|P2048}}
|  
| The total height of the structure above ground.
| 10 metres
| {{para|height}}
|-
|-
| construction
! Power source
| the material of the structure
| {{Q|P618}}
|  
| Source of power for the lighthouse
| {{Q|Q1483757}}
| {{para|suppressfields|powersource}}
|-
|-
| shape
! [[Foghorn#Marine fog signals|Fog signal]]
| the shape of the structure (Cylindrical, conical, pyramidal, etc.)  
| n/a
|  
| The type and frequency of any fog signal, e.g. bell, horn, etc., as given in the light list.
| HORN: 1 blast ev 15s (2s bl)
| {{para|fogsignal}}
|-
|-
| marking
! [[Racon]]
| color or other distinctive marks 
| {{Q|P3994}}
|  
| The letter transmitted in morse code by the [[Racon]], if it has one.
| N
| {{para|racon}}
|-
|-
| height
! [[Canadian Coast Guard|CCG]] no.
| the total height of the structure ''above its foundation''
| {{Q|P3920}}
|  [[Old Point Loma lighthouse]]: tower height: 46&nbsp;ft''<br /><code><nowiki>&nbsp;&nbsp;| focalheight = {{convert|46|ft|m}}</nowiki></code>
| The number in the ''Canadian Light List''. There are four volumes, [https://www.notmar.gc.ca/list-livre-en.php available for download].
| 430
| {{para|canada}}
|-
|-
| lightsource
! [[National Geospatial-Intelligence Agency|NGA]] no.
| the source of illumination
| {{Q|P3563}}
|
| The number in the [[List of Lights]] ([http://msi.nga.mil/NGAPortal/MSI.portal?_nfpb=true&_pageLabel=msi_portal_page_62&pubCode=0007 download]) maintained by the U.S. [[National Geospatial-Intelligence Agency]]. (Note: only shows lights outside of the USA plus eastern Florida).
| 111-5852
| {{para|NGA}}
|-
|-
| focalheight
! [[Amateur Radio Lighthouse Society|ARLHS]] no.
| the height of the actual light source [[above mean sea level]].  When a navigator's light list simply shows a value for 'height', that should be entered here.  Focal height is important for navigation, to help mariners estimate their actual distance from the light under different visibility conditions.
| {{Q|P2980}}
| [[Old Point Loma lighthouse]]: height of focal plane: 462&nbsp;ft.''<br /><code><nowiki>&nbsp;&nbsp;| focalheight = {{convert|462|ft|m}} </nowiki></code>
| The number in the [[Amateur Radio Lighthouse Society]] list, available on their [http://wlol.arlhs.com/index.php directory] website.
(this is the tower height, ''plus'' the elevation of the foundation above mean sea level, ''less'' the distance between the bulb and the top of the lantern)
| USA-034
|-  
| {{para|ARLHS}}
| elevation
| Deprecated; '''DO NOT USE.'''  See 'focalheight'.
|  
|-
|-
| lens
! [[United States Coast Guard|USCG]] no.
| the type of lens originally used in the light, usually a [[Fresnel lens]].  
| {{Q|P3723}}
|  
| The number shown in the [[Light List]] published by the [[US Coast Guard]] (for lighthouses in the USA). The lists are [http://www.navcen.uscg.gov/?pageName=lightLists available for download] in 7 volumes, each covering a different region. Both the volume number ''and'' lighthouse number should be captured here.
| &lsquo;V-NNNN&rsquo;
| {{para|USCG}}
|-
|-
| currentlens
! Operator
| the lens now in use.  In the USA most of the Fresnel lenses have been replaced by modern optics such as the [[VRB-25]].
| {{Q|P137}} qualified with {{Q|P580}} and {{Q|P582}}
|  
| The authority responsible for operating the light.
| Trinity House
| {{para|managingagent}}
|-
|-
| intensity
! Heritage
| Candlepower. 
| {{Q|P1435}}
|  
| A description of the lighthouse's heritage status.
|-
| NRHP listed place
| range
| {{para|heritage}}
| the distance at which the light can be seen.  If the light has colors, there will be several ranges, one for each color.  It's usually given in nautical miles (USCG, NGA, and Admiralty light lists, at least).  
|}
| [[Baltimore Harbor Light]]: white=7 miles, red=5 miles:''<br /><code><nowiki>&nbsp;&nbsp;| range=W {{convert|7|mi|km|1}}, R {{convert|5|mi|km|0}}</nowiki></code>
 
|-
==Parameters for the light==
| characteristic
{| class="wikitable"
| the pattern of flashes, given in the light list.  Please use shorthand – see [[Light characteristic]] for examples and explanation. 
! Label
| White, flashing every 7.5 seconds:'' <br /><code><nowiki>&nbsp;&nbsp;| characteristic = Fl W 7.5s </nowiki></code><br /> Green, [[occulting]] every 4 seconds:'' <br /><code><nowiki>&nbsp;&nbsp;| characteristic = Oc G 4s</nowiki></code>
! Wikidata properties
|-
! Usage
| fogsignal
! Example(s)
| the type and frequency of any fog signal (Bell, horn, etc.), also given in the light list. 
! Override parameter
|style=white-space:nowrap| Horn, one 2-second blast every 15 seconds:'' <br /><code><nowiki>&nbsp;&nbsp;| fogsignal = HORN: 1 blast ev 15s (2s bl)</nowiki></code>
|-
| racon
| the letter shown if there is a [[Racon]].  Not too many lights have one, but if it does, it will be listed in the Light List.
|  [[Chesapeake Light]]:''<br /><code><nowiki>&nbsp;&nbsp;|  racon = N (– •)</nowiki></code> 
|-
|-
| admiralty
! First lit
| the number in the [[United Kingdom Hydrographic Office]]'s Admiralty Digital List of Lights (ADLL) (worldwide).
| {{Q|P729}}
|  
| Date that the light entered service.
| 27 June 1904
| {{para|yearlit}}
|-
|-
| canada
! Deactivated
| the number in the Canadian Light List (Canadian).  4 Volumes, [http://www.notmar.gc.ca/go.php?doc=eng/services/list/index available for download].
| {{Q|P730}}
|  
| If the light is no longer in service, the date it was decommissioned.
| June 1980
| {{para|yeardeactivated}}
|-
|-
| NGA
! Automated
| the number in the [[List of Lights]] maintained by the U.S. [[National Geospatial-Intelligence Agency]](Note: only shows lights ''outside'' of the USA plus eastern Florida). [http://msi.nga.mil/NGAPortal/MSI.portal?_nfpb=true&_pageLabel=msi_portal_page_62&pubCode=0007 Download the List of Lights]
| {{Q|P793}} -> {{Q|Q24410992}} -> {{Q|P585}}
|  
| The date the light was converted to automatic.
| 4 December 1998
| {{para|automated}}
|-
|-
| ARLHS
! Focal height
| the number in the [[Amateur Radio Lighthouse Society]] list, available on their [http://wlol.arlhs.com/index.php Directory Lookup] website. 
| {{Q|P2923}} qualified with {{Q|P462}}
| [[Baltimore Harbor Light]]:''<br /><code><nowiki>&nbsp;&nbsp;| ARLHS = USA-034</nowiki></code>
| The height of the light [[above mean sea level]].  When a navigator's light list simply shows a value for 'height', that should be entered here.
| 14 metres
| {{para|focalheight}}
|-
|-
| USCG
! Lens
| the number as shown in the [[Light List]] as published by the [[US Coast Guard]] (for lighthouses in the USA).  The lists are [http://www.navcen.uscg.gov/?pageName=lightLists available for download] in 7 volumes, each covering a different region. Both the volume number ''and'' lighthouse number should be captured here, formatted as <code>''&lsquo;V-NNNN&rsquo;''</code>.<br />
| {{Q|P9597}} qualified with {{Q|P580}} and {{Q|P582}}
The list can easily be cited using: <nowiki>{{cite uscgll|volume|year|page}}</nowiki>
| The type of lens used in the light.
| [[Baltimore Harbor Light]] is listed as #8035 in Volume 2, page 76:'' <br /><code><nowiki>&nbsp;&nbsp;| USGC = 2-8035<ref>{{cite uscgll|2|2012|76}}</ref></nowiki></code>
| {{Q|Q24629169}}, {{Q|Q7907476}}
| {{para|lens}}
|-
|-
| country
! Light source
| if a country has its own numbering system (such as the Netherlands), the country name 
| n/a
|  
| Source of illumination of the light.
| CDM T lamp, High intensity LED lamp
| {{para|lightsource}}
|-
|-
| countrynumber
! Intensity
| number according to the country's numbering system. This is mandatory if country was specified. 
| {{Q|P3041}} qualified with {{Q|P462}}
|  
| [[Luminous intensity]] of the light, measured in [[candela]].
| 14,400 candela
| {{para|intensity}}
|-
|-
| countrylink
! Range
| a (non mandatory) link to the country's list of lighthouses or the website hosting that list
| {{Q|P2929}} qualified with {{Q|P462}}
|
| The distance from which the light can be seen, usually given in nautical miles. If the light has more than one color, then several ranges can specified, one for each color.
| {{convert|8|nmi}}
| {{para|range}}
|-
|-
| managingagent
! [[Light characteristic|Characteristic]]
| the authority responsible for operating the light
| {{Q|P1030}} qualified with {{Q|P805}}, {{Q|P580}} and {{Q|P582}}
|  
| The pattern of flashes in shorthand notation. See [[Light characteristic]] for examples and explanation.
| Fl(2) W 10s
| {{para|characteristic}}
|-
|-
| heritage
! [[United Kingdom Hydrographic Office|Admiralty]] number
| a description of the building's heritage status
| {{Q|P3562}}
|  
| The ID number of the light in the [[United Kingdom Hydrographic Office]]'s Admiralty ''List of Lights''.
| J0750.1
| {{para|admiralty}}
|}
|}


==Using the lighthouse infobox template with the NRHP infobox template for USA lights==
==Bespoke numbering systems==
About three quarters of United States lighthouses are on the [[National Register of Historic Places]]. It is useful in those cases to include both {{tl|Infobox lighthouse}} and {{tl|Infobox nrhp}} in an article. The NRHP infobox can be embedded into the lighthouse template, which makes them display at the same width. This is fully described at [[Template:Infobox nrhp#Embedding]].
If a country has its own numbering system (such as the Netherlands), the country name, ID number and a link (optional) may be specified.
* {{para|country}}
* {{para|countrynumber}}
* {{para|countrylink}}
 
== Fetch wikidata==
To fetch specific fields from Wikidata (and no others) the {{para|fetchwikidata}} can be used. For example, to fetch the date of construction and the date of deactivation, use:
* {{para|fetchwikidata|constructed,yeardeactivated}}
If this parameter is not specified then all available fields will be fetched.


Briefly, insert the entire NRHP infobox template inside this infobox's <code>module</code> parameter. Do not leave a blank like between the equals sign and the opening braces, as this will increase the spacing between the table cells.
To suppress certain fields (but fetch others), the {{para|suppressfields}} can be used. For example, to suppress the range of the lighthouse and its intensity, use:
* {{para|suppressfields|range,intensity}}
If this parameter is not specified then no fields will be suppressed.


Add "|embed = yes" as the second line of the NRHP infobox, immediately after <nowiki>{{Infobox_nrhp</nowiki> The result should end in }}}} (two for the lighthouse box and two for the NRHP – but see the second example below for an exception).
By default, the template will use the Wikidata item associated with the article. In some cases (for example, if the article is about an island but contains some information about a lighthouse on that island) you will need to specify the Wikidata Q-identifier using {{para|qid}}. For example:
The insertion should look <br>'''like this:''' (Insert the actual NRHP name in place of ABCDE)
* {{para|qid|Q28333621}}


<pre>
== Embedding other templates ==
.
The {{para|module}} parameter can be used for embedding other templates into this infobox (see [[Wikipedia:Infobox modules]]):
.
<pre style="overflow:auto">
  | fogsignal = none
{{Infobox lighthouse
  | admiralty =
| name =  
  | canada =
...
  | NGA =
| module =
  | ARLHS =
   {{Infobox example
  | USCG = 1-12345
   | embed = yes <!-- or 'child=yes' or 'subbox=yes' -->
   | module = {{Infobox nrhp
   ...
   |embed = yes
  }}
   | name = ABCDE
}}
.
.
}}}}
</pre>
</pre>
'''or like this'''
 
<pre>
== Full list==
.
Parameters left blank will not be shown. All of the parameters are text fields so you can, for example
.
*list in a span of years: {{para|yeardeactivated|1952–1980}}
  | fogsignal = none
*provide explanation: {{para|yearlit|1880 (current tower)}}
  | module = {{Infobox nrhp
*give more than one answer: {{para|fogsignal|Bell (1880)<nowiki><br /></nowiki>Horn 1 every 20s (1915)}}
  |embed = yes
 
  | name = ABCDE
<pre style="overflow: auto;">
.
{{Infobox lighthouse
.
| name            =
}} <!- the end of the NRHP infobox ->
| image_name      =  
  | admiralty =
| image_width    =  
  | canada =
| caption        =
  | NGA =
| location        =
  | ARLHS =
| coordinates    = <!-- {{Coord}} -->
  | USCG =
| yearbuilt      = <!-- {{Start date|YYYY}} -->
}} <!- the end of the lighthouse infobox ->
| yearlit        =
</pre>
| automated      =
'''but not like this'''
| yeardeactivated =
<pre>
| foundation      =  
.
| construction    =  
.
| shape          =  
  | fogsignal = none
| marking        =  
  | admiralty =
| height          =  
  | canada =
| focalheight    =
  | NGA =
| lens            =
  | ARLHS =
| lightsource    =
  | USCG =
| intensity      =
{{Infobox nrhp
| range          =
   |embed = yes
| characteristic  =
   | name = ABCDE
| fogsignal       =
.
| racon          =  
.
| admiralty       =  
}}}}
| canada         =  
| NGA             =  
| ARLHS           =  
| USCG           =  
| country        =
| countrynumber   =
| countrylink    =  
| managingagent   =
| heritage        =  
| module          =
}}
</pre>
</pre>


The tool at http://www2.elkman.net/nrhp/infobox.php is an easy way to create the NRHP infobox, just copy it, paste, and add "| embed = yes".  You may want to edit the result a bit, as the National Register database, from which the Elkman tool gets its data, is often a little terse – saying, "COAST GUARD", where you might want "U.S. Coast Guard" and so forth.
==Coordinates==
For coordinates, use {{para|coordinates}} with {{tl|Coord}}. See the Coord template's documentation for details on usage. For example, {{para|coordinates|{{tlf|coord|1|2|N|3|4|E|type:landmark|display{{=}}inline,title}}}}


Note that the National Register name is often a little different from the name in the article, so if your search doesn't succeed, try using just one word from it.  The Elkman tool can find all uses of any word in the name, so a search on "Light" will show all lighthouses in a state and "Point" will find eleven lights in California. In cases where the name is different, you will probably want to show the NRHP name in the NRHP infobox as it clarifies that the reader is in the right place, see [[Doubling Point Range Lights]], for example.
==Maps==
A [[Template:Mapframe|Mapframe]] map is automatically included if:
* There are coordinates specified on the page's Wikidata item
* It has not be turned off by setting {{para|mapframe|no}}
The following optional parameters can then be used to adjust the map
* {{para|mapframe-zoom}} zoom level (default is {{kbd|10}})
* {{para|mapframe-width}} and {{para|mapframe-height}} for the map size (defaults are {{kbd|270}} and {{kbd|200}})
* {{para|mapframe-marker}} for the [[mw:Help:Extension:Kartographer/Icons|marker icon]] (default is no marker icon)
* either {{para|mapframe-marker-color}} or {{para|mapframe-marker-colour}} for the marker colour ([[hex triplet]], default is <code>#5E74F3</code>)
* {{para|mapframe-caption}} caption below the map
* {{para|mapframe-lat}} and {{para|mapframe-long}} (or {{para|mapframe-latitude}} and {{para|mapframe-longitude}}) – alternate initial latitude and longitude for the map, instead of the lighthouse coordinates. Specify as a decimal number.


== Microformat ==
== Microformat ==
{{UF-hcard-geo}}
{{UF-hcard-geo}}
== Tracking category ==
* {{clc|Pages using infobox lighthouse with unknown parameters}}
* {{clc|Pages using infobox Lighthouse needing Wikidata item}}
* {{clc|Lighthouses using pushpin parameters}}


== See also ==
== See also ==
* [[:Category:Pages using infobox lighthouse with deprecated parameters]] (hidden tracking/maintenance category)
{{Buildings and structures infobox templates}}


{{Buildings and structures infobox templates}}
==TemplateData==
{{show
|frame-style = border: 1px solid silver; padding: 0.3em;
|head-style = background-color: #DDDDFF; text-align: center;
|1 = Click the [show] link to the right to display the [[Wikipedia:TemplateData|TemplateData]].
|2 = {{TemplateData header|nolink=1}}
<templatedata>
{
"params": {
"name": {},
"item": {},
"suppressfields": {},
"fetchwikidata": {
"label": "Fetch wikidata",
"description": "use and leave blank to turn off Wikidata values"
},
"image_name": {},
"image_width": {},
"image size": {},
"image_size": {},
"imagesize": {},
"image_upright": {},
"alt": {},
"image": {},
"caption": {},
"coordinates": {},
"pushpin": {},
"map_caption": {},
"onlysourced": {},
"location": {},
"refs": {},
"grid_ref_UK": {},
"coordinates_footnotes": {},
"designation": {},
"yearbuilt": {
"label": "Year built",
"description": "usually the year the light first built (construction completed)"
},
"yearlit": {
"label": "Year lit",
"description": "usually the year the present, or last structure was lit"
},
"automated": {
"label": "Year automated",
"description": "the year it was automated"
},
"yeardeactivated": {
"label": "Year deactivated",
"description": "If the light is no longer in service, list the year it was last working"
},
"foundation": {
"label": "Foundation material",
"description": "the material of the foundation"
},
"construction": {
"label": "Construction material",
"description": "the material of the structure"
},
"shape": {
"label": "Structure shape",
"description": "the shape of the structure",
"example": "Cylindrical, conical, pyramidal"
},
"marking": {
"label": "Marking",
"description": "color or other distinctive marks"
},
"height": {
"label": "Height above foundation",
"description": "the total height of the structure above its foundation"
},
"focalheight": {
"label": "Focal height",
"description": "the height of the actual light source above mean sea level"
},
"lens": {
"label": "Lens",
"description": "the type of lens originally used in the light",
"example": "Fresnel lens"
},
"lightsource": {
"label": "Light source",
"description": "the source of illumination"
},
"intensity": {
"label": "Intensity",
"description": "candlepower"
},
"range": {
"label": "Range",
"description": "the distance at which the light can be seen"
},
"characteristic": {
"description": "the pattern of flashes, given in the light list"
},
"fogsignal": {
"label": "Fog signal",
"description": "the type and frequency of any fog signal",
"example": "Bell, horn"
},
"racon": {
"description": "the letter shown if there is a Racon"
},
"admiralty": {
"description": "the number in the United Kingdom Hydrographic Office's Admiralty Digital List of Lights"
},
"canada": {
"description": "the number in the Canadian Light List"
},
"NGA": {
"description": "the number in the List of Lights maintained by the U.S. National Geospatial-Intelligence Agency"
},
"ARLHS": {
"description": "the number in the Amateur Radio Lighthouse Society list"
},
"USCG": {
"description": "the number as shown in the Light List as published by the US Coast Guard"
},
"countrylink": {
"description": "a (non mandatory) link to the country's list of lighthouses or the website hosting that list"
},
"country": {
"description": "if a country has its own numbering system, the country name",
"example": "Netherlands"
},
"countrynumber": {
"description": "number according to the country's numbering system"
},
"managingagent": {
"label": "Managing agent",
"description": "the authority responsible for operating the light"
},
"heritage": {
"description": "a description of the building's heritage status"
},
"module": {
"description": "used for embedding other templates into this infobox"
},
"mapframe": {},
"mapframe-zoom": {},
"mapframe-width": {},
"mapframe-height": {},
"mapframe-marker": {},
"mapframe-marker-color": {},
"mapframe-marker-colour": {},
"mapframe-lat": {},
"mapframe-latitude": {},
"mapframe-long": {},
"mapframe-longitude": {},
"mapframe-caption": {}
},
"format": "block"
}
</templatedata>
}}


<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<includeonly>{{Sandbox other||
<!-- Categories below this line, please; interwikis at Wikidata -->
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Buildings and structures infobox templates|Lighthouse]]
[[Category:Buildings and structures infobox templates|Lighthouse]]
[[Category:Infobox templates with module parameter|Lighthouse]]
[[Category:Lighthouse templates]]
[[Category:Lighthouse templates]]
[[Category:Embeddable templates]]
[[Category:Templates that add a tracking category]]
[[Category:Templates that add a tracking category]]
}}</includeonly>
}}</includeonly>

Latest revision as of 10:57, 6 September 2021

{{Infobox lighthouse}} may be used to summarise information about a lighthouse. Much of this infobox's data will be retrieved from Wikidata. Editors are encouraged to add data to the relevant item.


Parameters for the tower

Label Wikidata properties Usage Example(s) Override parameter
Image (P18) qualified by (P2096) An image of the lighthouse stored on Wikimedia Commons. A caption can be included with (P2096). Cuxhaven 07-2016 photo23 Kugelbake.jpg image_name=, |caption=
Location (P625), (P706), (P276), (P131), (P17) Location of the lighthouse. (Q126514) location=
OS grid (P613) Ordnance Survey National Grid coordinates. NZ40806416 grid_ref_UK=
Coordinates (P625) Latitude and longitude of the position of the lighthouse. If specifying manually, use the {{Coord}} template. A map will automatically be included in the infobox unless it is turned off (see #Maps). 29°4'18.012"N, 48°29'35.988"E coordinates={{Coord|N|E}}
Constructed (P571) Date of start of construction. 1897 yearbuilt=
Designed by (P287) Designer of the lighthouse. (Q27835212) suppressfields=designer
Built by (P193), (P631) Engineer or builder of the lighthouse. (Q1355182) suppressfields=builder
Foundation n/a The material of the foundation. concrete foundation=
Construction (P186) qualified with (P518) The material of the structure. (Q41177) construction=
Tower shape (P1419) qualified with (P518) The shape of the structure. (Q9090332) shape=
Markings (P462) qualified by (P518)
(P5422) qualified with (P1114), (P462), (P7469), (P518)
Color or other distinctive marks. horizontal red stripe marking=
Tower height (P2048) The total height of the structure above ground. 10 metres height=
Power source (P618) Source of power for the lighthouse (Q1483757) suppressfields=powersource
Fog signal n/a The type and frequency of any fog signal, e.g. bell, horn, etc., as given in the light list. HORN: 1 blast ev 15s (2s bl) fogsignal=
Racon (P3994) The letter transmitted in morse code by the Racon, if it has one. N racon=
CCG no. (P3920) The number in the Canadian Light List. There are four volumes, available for download. 430 canada=
NGA no. (P3563) The number in the List of Lights (download) maintained by the U.S. National Geospatial-Intelligence Agency. (Note: only shows lights outside of the USA plus eastern Florida). 111-5852 NGA=
ARLHS no. (P2980) The number in the Amateur Radio Lighthouse Society list, available on their directory website. USA-034 ARLHS=
USCG no. (P3723) The number shown in the Light List published by the US Coast Guard (for lighthouses in the USA). The lists are available for download in 7 volumes, each covering a different region. Both the volume number and lighthouse number should be captured here. ‘V-NNNN’ USCG=
Operator (P137) qualified with (P580) and (P582) The authority responsible for operating the light. Trinity House managingagent=
Heritage (P1435) A description of the lighthouse's heritage status. NRHP listed place heritage=

Parameters for the light

Label Wikidata properties Usage Example(s) Override parameter
First lit (P729) Date that the light entered service. 27 June 1904 yearlit=
Deactivated (P730) If the light is no longer in service, the date it was decommissioned. June 1980 yeardeactivated=
Automated (P793) -> (Q24410992) -> (P585) The date the light was converted to automatic. 4 December 1998 automated=
Focal height (P2923) qualified with (P462) The height of the light above mean sea level. When a navigator's light list simply shows a value for 'height', that should be entered here. 14 metres focalheight=
Lens (P9597) qualified with (P580) and (P582) The type of lens used in the light. (Q24629169), (Q7907476) lens=
Light source n/a Source of illumination of the light. CDM T lamp, High intensity LED lamp lightsource=
Intensity (P3041) qualified with (P462) Luminous intensity of the light, measured in candela. 14,400 candela intensity=
Range (P2929) qualified with (P462) The distance from which the light can be seen, usually given in nautical miles. If the light has more than one color, then several ranges can specified, one for each color. 8 nautical miles (15 km; 9.2 mi) range=
Characteristic (P1030) qualified with (P805), (P580) and (P582) The pattern of flashes in shorthand notation. See Light characteristic for examples and explanation. Fl(2) W 10s characteristic=
Admiralty number (P3562) The ID number of the light in the United Kingdom Hydrographic Office's Admiralty List of Lights. J0750.1 admiralty=

Bespoke numbering systems

If a country has its own numbering system (such as the Netherlands), the country name, ID number and a link (optional) may be specified.

  • |country=
  • |countrynumber=
  • |countrylink=

Fetch wikidata

To fetch specific fields from Wikidata (and no others) the |fetchwikidata= can be used. For example, to fetch the date of construction and the date of deactivation, use:

  • |fetchwikidata=constructed,yeardeactivated

If this parameter is not specified then all available fields will be fetched.

To suppress certain fields (but fetch others), the |suppressfields= can be used. For example, to suppress the range of the lighthouse and its intensity, use:

  • |suppressfields=range,intensity

If this parameter is not specified then no fields will be suppressed.

By default, the template will use the Wikidata item associated with the article. In some cases (for example, if the article is about an island but contains some information about a lighthouse on that island) you will need to specify the Wikidata Q-identifier using |qid=. For example:

  • |qid=Q28333621

Embedding other templates

The |module= parameter can be used for embedding other templates into this infobox (see Wikipedia:Infobox modules):

{{Infobox lighthouse
| name = 
...
| module =
  {{Infobox example
  | embed = yes <!-- or 'child=yes' or 'subbox=yes' -->
  ...
  }}
}}

Full list

Parameters left blank will not be shown. All of the parameters are text fields so you can, for example

  • list in a span of years: |yeardeactivated=1952–1980
  • provide explanation: |yearlit=1880 (current tower)
  • give more than one answer: |fogsignal=Bell (1880)<br />Horn 1 every 20s (1915)
{{Infobox lighthouse
| name            = 
| image_name      = 
| image_width     = 
| caption         = 
| location        = 
| coordinates     = <!-- {{Coord}} -->
| yearbuilt       = <!-- {{Start date|YYYY}} -->
| yearlit         = 
| automated       = 
| yeardeactivated = 
| foundation      = 
| construction    = 
| shape           = 
| marking         = 
| height          = 
| focalheight     = 
| lens            = 
| lightsource     = 
| intensity       = 
| range           = 
| characteristic  = 
| fogsignal       = 
| racon           = 
| admiralty       = 
| canada          = 
| NGA             = 
| ARLHS           = 
| USCG            = 
| country         = 
| countrynumber   = 
| countrylink     = 
| managingagent   = 
| heritage        = 
| module          = 
}}

Coordinates

For coordinates, use |coordinates= with {{Coord}}. See the Coord template's documentation for details on usage. For example, |coordinates={{coord|1|2|N|3|4|E|type:landmark|display=inline,title}}

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 lighthouse coordinates. Specify as a decimal number.

Microformat

The HTML markup produced by this template includes an hCard microformat, which makes the place-name and location parsable by computers, either acting automatically to catalogue articles across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to an address book. Within the hCard is a Geo microformat, which additionally makes the coordinates (latitude & longitude) parsable, so that they can be, say, looked up on a map, or downloaded to a GPS unit. For more information about the use of microformats on Wikipedia, please see the microformat project.

Sub-templates

If the place or venue has "established", "founded", "opened" or similar dates, use {{start date}} for the earliest of those dates unless the date is before 1583 CE.

If it has a URL, use {{URL}}.

Please do not remove instances of these sub-templates.

Classes

hCard uses HTML classes including:

  • adr
  • agent
  • category
  • county-name
  • extended-address
  • fn
  • label
  • locality
  • nickname
  • note
  • org
  • region
  • street-address
  • uid
  • url
  • vcard

Geo is produced by calling {{coord}}, and uses HTML classes:

  • geo
  • latitude
  • longitude

Please do not rename or remove these classes nor collapse nested elements which use them.

Precision

When giving coordinates, please use an appropriate level of precision. Do not use {{coord}}'s |name= parameter.

Tracking category

See also

TemplateData

Click the [show] link to the right to display the TemplateData.
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template in articles based on this TemplateData.

TemplateData for Infobox lighthouse

<templatedata> { "params": { "name": {}, "item": {}, "suppressfields": {}, "fetchwikidata": { "label": "Fetch wikidata", "description": "use and leave blank to turn off Wikidata values" }, "image_name": {}, "image_width": {}, "image size": {}, "image_size": {}, "imagesize": {}, "image_upright": {}, "alt": {}, "image": {}, "caption": {}, "coordinates": {}, "pushpin": {}, "map_caption": {}, "onlysourced": {}, "location": {}, "refs": {}, "grid_ref_UK": {}, "coordinates_footnotes": {}, "designation": {}, "yearbuilt": { "label": "Year built", "description": "usually the year the light first built (construction completed)" }, "yearlit": { "label": "Year lit", "description": "usually the year the present, or last structure was lit" }, "automated": { "label": "Year automated", "description": "the year it was automated" }, "yeardeactivated": { "label": "Year deactivated", "description": "If the light is no longer in service, list the year it was last working" }, "foundation": { "label": "Foundation material", "description": "the material of the foundation" }, "construction": { "label": "Construction material", "description": "the material of the structure" }, "shape": { "label": "Structure shape", "description": "the shape of the structure", "example": "Cylindrical, conical, pyramidal" }, "marking": { "label": "Marking", "description": "color or other distinctive marks" }, "height": { "label": "Height above foundation", "description": "the total height of the structure above its foundation" }, "focalheight": { "label": "Focal height", "description": "the height of the actual light source above mean sea level" }, "lens": { "label": "Lens", "description": "the type of lens originally used in the light", "example": "Fresnel lens" }, "lightsource": { "label": "Light source", "description": "the source of illumination" }, "intensity": { "label": "Intensity", "description": "candlepower" }, "range": { "label": "Range", "description": "the distance at which the light can be seen" }, "characteristic": { "description": "the pattern of flashes, given in the light list" }, "fogsignal": { "label": "Fog signal", "description": "the type and frequency of any fog signal", "example": "Bell, horn" }, "racon": { "description": "the letter shown if there is a Racon" }, "admiralty": { "description": "the number in the United Kingdom Hydrographic Office's Admiralty Digital List of Lights" }, "canada": { "description": "the number in the Canadian Light List" }, "NGA": { "description": "the number in the List of Lights maintained by the U.S. National Geospatial-Intelligence Agency" }, "ARLHS": { "description": "the number in the Amateur Radio Lighthouse Society list" }, "USCG": { "description": "the number as shown in the Light List as published by the US Coast Guard" }, "countrylink": { "description": "a (non mandatory) link to the country's list of lighthouses or the website hosting that list" }, "country": { "description": "if a country has its own numbering system, the country name", "example": "Netherlands" }, "countrynumber": { "description": "number according to the country's numbering system" }, "managingagent": { "label": "Managing agent", "description": "the authority responsible for operating the light" }, "heritage": { "description": "a description of the building's heritage status" }, "module": { "description": "used for embedding other templates into this infobox" }, "mapframe": {}, "mapframe-zoom": {}, "mapframe-width": {}, "mapframe-height": {}, "mapframe-marker": {}, "mapframe-marker-color": {}, "mapframe-marker-colour": {}, "mapframe-lat": {}, "mapframe-latitude": {}, "mapframe-long": {}, "mapframe-longitude": {}, "mapframe-caption": {} }, "format": "block" }

</templatedata>