Template:Infobox lighthouse/doc: Difference between revisions

Content deleted Content added
Maps: document updates in the code
 
(27 intermediate revisions by 9 users not shown)
Line 1:
{{Documentation subpage}}
{{High-use}}
{{Lua|Module:Check for unknown parameters|Module:Coordinates|Module:InfoboxImage|Module:Lighthouse tracking|Module:String|Module:Wikidata|Module:WikidataIB}}
{{Auto short description}}
{{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.
 
<!--{{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}}-->
 
==Parameters for the tower==
Line 12:
! Example(s)
! Override parameter
|-
! Name
| Item label and {{Q|P1448}}
| The name of the lighthouse
| Wilsons Promontory Lighthouse
| {{para|name}}
|-
! Image
Line 17 ⟶ 23:
| 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_nameimage}}, {{para|caption}}
|-
! Location
Line 74 ⟶ 80:
|-
! Markings
| {{Q|P462}} qualified by {{Q|P518}}<br>{{Q|P5422}} qualified with {{Q|P1419}}, {{Q|P1114}}, {{Q|P462}}, {{Q|P7469}}, {{Q|P518}}
| Color or other distinctive marks.
| horizontal red stripe
Line 100 ⟶ 106:
| {{Q|P3994}}
| The letter transmitted in morse code by the [[Racon]], if it has one.
| M(--) 18NM
| N
| {{para|racon}}
|-
! [[MMSI]]
! [[Canadian Coast Guard|CCG]] no.
| n/a
| {{Q|P3920}}
| AIS/Maritime Mobile Service Identity, if it has one.
| The number in the ''Canadian Light List''. There are four volumes, [https://www.notmar.gc.ca/list-livre-en.php available for download].
| 993251046 (Ardnamurchan)
| 430
| {{para|canadammsi}}
|-
! [[National Geospatial-Intelligence Agency|NGA]] no.
| {{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}}
|-
! [[Amateur Radio Lighthouse Society|ARLHS]] no.
| {{Q|P2980}}
| The number in the [[Amateur Radio Lighthouse Society]] list, available on their [http://wlol.arlhs.com/index.php directory] website.
| USA-034
| {{para|ARLHS}}
|-
! [[United States Coast Guard|USCG]] no.
| {{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}}
|-
! Operator
Line 161 ⟶ 149:
|-
! Automated
| {{Q|P793}} -> {{Q|Q24410992}} ->qualified with {{Q|P585}}
| The date the light was converted to automatic.
| 4 December 1998
Line 193 ⟶ 181:
| {{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|km|disp=sqbr}}
| {{para|range}}
|-
Line 202 ⟶ 190:
| {{para|characteristic}}
|-
! LightDome
! [[United Kingdom Hydrographic Office|Admiralty]] number
| n/a
| {{Q|P3562}}
| The dome with flashes.
| The ID number of the light in the [[United Kingdom Hydrographic Office]]'s Admiralty ''List of Lights''.
| [[File:BellRock_dome.gif|center|35px]]
| J0750.1
| {{para|admiraltylightdome}}
|-
! LightBand
| n/a
| The graphic/pattern of the light.
| [[File: BellRock_band.jpg|center|250x35px|]]
| {{para|lightband}}
|-
! LightVideo
| n/a
| A video of the light within te seachart
|
| {{para|lightvideo}}
|}
 
Line 229:
== Embedding other templates ==
The {{para|module}} parameter can be used for embedding other templates into this infobox (see [[Wikipedia:Infobox modules]]):
<presyntaxhighlight lang="wikitext" style="overflow:auto">
{{Infobox lighthouse
| name =
Line 239:
}}
}}
</syntaxhighlight>
</pre>
 
== Full list==
Line 247:
*give more than one answer: {{para|fogsignal|Bell (1880)<nowiki><br /></nowiki>Horn 1 every 20s (1915)}}
 
<presyntaxhighlight lang="wikitext" style="overflow: auto;">
{{Infobox lighthouse
| name =
Line 269:
| intensity =
| range =
| characteristic =
| lightdome =
| lightband =
| lightvideo =
| fogsignal =
| racon =
| admiraltymmsi = =
| canada =
| NGA =
| ARLHS =
| USCG =
| country =
| countrynumber =
Line 284 ⟶ 283:
| module =
}}
</syntaxhighlight>
</pre>
 
==Coordinates==
Line 291 ⟶ 290:
==Maps==
A [[Template:Mapframe|Mapframe]] map is automatically included if:
* There are coordinates specified, either in the {{para|coordinates}} parameter or on the page's Wikidata item
* It has not bebeen turned off by setting {{para|mapframe|no}}
 
The following optional parameters can then be used to adjust the map
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}})
{{Infobox mapframe/doc/parameters
* {{para|mapframe-marker}} for the [[mw:Help:Extension:Kartographer/Icons|marker icon]] (default is no marker icon)
| onByDefault = yes, unless {{para|embed}} is set
* 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 belowzoom the= map5
| mapframe-marker = lighthouse
* {{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 ==
{{UF-hcard-geo}}
 
== Tracking categorycategories ==
* {{clc|Pages using infoboxInfobox lighthouse with unknown parameterstracking}}
* {{clc|Pages using infobox Lighthouse needing Wikidata item}}
* {{clc|Lighthouses using pushpin parameters}}
 
== See also ==
Line 313 ⟶ 311:
 
==TemplateData==
{{TemplateData header|nolink=1}}
{{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=
|2 = {{TemplateData header|nolink=1}}
<templatedata>
{
"params": {
"name": {},
"itemqid": {},
"suppressfields": {},
"fetchwikidata": {
Line 338 ⟶ 337:
"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,light orentered service, lastif structuredifferent wasfrom lityearbuilt"
},
"automated": {
Line 415 ⟶ 411:
"description": "the letter shown if there is a Racon"
},
"admiraltymmsi": {
"description": "the number inof the United Kingdom Hydrographic Office's Admiralty Digital List of LightsAIS/MMSI"
},
"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": {
Line 461 ⟶ 445:
"mapframe-long": {},
"mapframe-longitude": {},
"mapframe-caption": {},
"embed": {},
"qs": {},
"refs": {},
"coord_format": {},
"USCG": {},
"light1": {},
"light2": {}
},
"format": "block"