Template:Infobox lighthouse/doc: Difference between revisions
>Pigsonthewing (→top: +) |
>JJMC89 (cleanup the doc) |
||
Line 10: | Line 10: | ||
Empty fields and missing lines are not displayed | Empty fields and missing lines are not displayed | ||
{{Parameter names example|name|image_name|image_width|caption|pushpin_map=|pushpin_label_position|pushpin_map_alt|pushpin_relief| | {{Parameter names example|name|image_name|image_width|caption|pushpin_map=|pushpin_label_position|pushpin_map_alt|pushpin_relief|coordinates|coordinates_footnotes|pushpin|pushpin_mapsize|pushpin_map_caption|map_caption|location|grid_ref_UK|designation|yearbuilt|yearlit|automated|yeardeactivated|foundation|construction|shape|marking|height|elevation|focalheight|lens|currentlens|lightsource|intensity|range|characteristic|fogsignal|racon|admiralty|canada|NGA|ARLHS|USCG|countrylink|country|countrynumber|managingagent|heritage|module}} | ||
<pre style="overflow: auto;"> | <pre style="overflow: auto;"> | ||
Line 26: | Line 26: | ||
| pushpin = | | pushpin = | ||
| pushpin_label_position = | | pushpin_label_position = | ||
| coordinates = <!-- {{Coord}} --> | | coordinates = <!-- {{Coord}} --> | ||
| yearbuilt = <!-- {{Start date|YYYY}} --> | | yearbuilt = <!-- {{Start date|YYYY}} --> | ||
| yearlit = | | yearlit = | ||
Line 60: | Line 60: | ||
==Coordinates== | ==Coordinates== | ||
For coordinates, use {{para|coordinates}} with {{tl|Coord}}. See the Coord template's documentation for details on usage. For example, | 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}}}} | ||
| coordinates | |||
==Pushpin map== | ==Pushpin map== | ||
To add a {{tl|Location map}}, specify the map using | To add a {{tl|Location map}}, specify the map using {{para|pushpin_map}}. | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 75: | Line 72: | ||
| pushpin_map | | pushpin_map | ||
| The name of the map to be displayed. | | The name of the map to be displayed. | ||
| | | {{para|pushpin_map|[[Module:Location map/data/France|France]]}}<br />{{para|pushpin_map|[[Template:Location map USA Florida|USA Florida]]}} | ||
|- | |- | ||
| pushpin_relief | | pushpin_relief | ||
| 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]]. | | 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]]. | ||
| | | {{para|pushpin_relief|yes}}<br /> {{para|pushpin_relief|1}} | ||
|- | |- | ||
| pushpin_mapsize | | pushpin_mapsize | ||
| Width to display the map image in pixels. The default is 240. | | Width to display the map image in pixels. The default is 240. | ||
| | | {{para|pushpin_mapsize|200}}<br />(not {{para|pushpin_mapsize|200px}}) | ||
|- | |- | ||
| pushpin_map_alt | | pushpin_map_alt | ||
Line 95: | Line 92: | ||
| pushpin | | pushpin | ||
| Specify one of three pre-defined marker images to be displayed on the location map. | | Specify one of three pre-defined marker images to be displayed on the location map. | ||
| | | {{para|pushpin|red}} for [[File:Red pog.svg|8px]] (default)<br />{{para|pushpin|green}} for [[File:Green pog.svg|8px]]<br />{{para|pushpin|lighthouse}} for [[File:Lighthouse icon shifted.svg|16px]] | ||
|- | |- | ||
| pushpin_label_position | | pushpin_label_position | ||
| To add a label next to the pushpin, use a value of ''top'', ''bottom'',''left'', or ''right''. The default value is ''none''. | | To add a label next to the pushpin, use a value of ''top'', ''bottom'',''left'', or ''right''. The default value is ''none''. | ||
| | | {{para|pushpin_label_position|top}} <br /> {{para|pushpin_label_position|bottom}} <br /> {{para|pushpin_label_position|left}} <br /> {{para|pushpin_label_position|right}} | ||
|} | |} | ||
==Other parameter usage== | ==Other parameter usage== | ||
Parameters left blank will not be shown. All of the parameters are text fields so you can, for example | 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: | *list in a span of years: {{para|yeardeactivated|1952–1980}} | ||
*provide explanation: | *provide explanation: {{para|yearlit|1880 (current tower)}} | ||
*give more than one answer: | *give more than one answer: {{para|fogsignal|Bell (1880)<nowiki><br /></nowiki>Horn 1 every 20s (1915)}} | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 127: | Line 124: | ||
| yeardeactivated | | yeardeactivated | ||
| 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. | | 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. | ||
| taken offline in 1952, and later dismantled in 1960:''<br /> | | taken offline in 1952, and later dismantled in 1960:''<br />{{para|yeardeactivated|1952}}<br /> Decommissioned in 1952, re-established in 1980:''<br />{{para|yeardeactivated|1952–1980}} | ||
|- | |- | ||
| foundation | | foundation | ||
Line 147: | Line 144: | ||
| height | | height | ||
| the total height of the structure ''above its foundation'' | | the total height of the structure ''above its foundation'' | ||
| [[Old Point Loma lighthouse]]: tower height: 46 ft''<br /> | | [[Old Point Loma lighthouse]]: tower height: 46 ft''<br />{{para|focalheight|{{tlf|convert|46|ft|m}}}} '' | ||
|- | |- | ||
| lightsource | | lightsource | ||
Line 155: | Line 152: | ||
| focalheight | | focalheight | ||
| 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. | | 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. | ||
| [[Old Point Loma lighthouse]]: height of focal plane: 462 ft.''<br /> | | [[Old Point Loma lighthouse]]: height of focal plane: 462 ft.''<br />{{para|focalheight|{{tlf|convert|462|ft|m}}}}'' | ||
(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) | (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) | ||
|- | |- | ||
Line 175: | Line 172: | ||
|- | |- | ||
| range | | range | ||
| 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). | | 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 /> | | [[Baltimore Harbor Light]]: white=7 miles, red=5 miles:''<br />{{para|range|W {{tlf|convert|7|mi|km|1}}, R {{tlf|convert|5|mi|km|0}}}}'' | ||
|- | |- | ||
| characteristic | | characteristic | ||
| the pattern of flashes, given in the light list. Please use shorthand – see [[Light characteristic]] for examples and explanation. | | the pattern of flashes, given in the light list. Please use shorthand – see [[Light characteristic]] for examples and explanation. | ||
| White, flashing every 7.5 seconds:'' <br /> | | White, flashing every 7.5 seconds:''<br />{{para|characteristic|Fl W 7.5s}}<br /> Green, [[occulting]] every 4 seconds:'' <br />{{para|characteristic|Oc G 4s}} | ||
|- | |- | ||
| fogsignal | | fogsignal | ||
| the type and frequency of any fog signal (Bell, horn, etc.), also given in the light list. | | the type and frequency of any fog signal (Bell, horn, etc.), also given in the light list. | ||
|style=white-space:nowrap| Horn, one 2-second blast every 15 seconds:'' <br /> | |style=white-space:nowrap| Horn, one 2-second blast every 15 seconds:''<br />{{para|fogsignal|HORN: 1 blast ev 15s (2s bl)}} | ||
|- | |- | ||
| racon | | 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. | | 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 /> | | [[Chesapeake Light]]:''<br />{{para|racon|N (– •)}} | ||
|- | |- | ||
| admiralty | | admiralty | ||
Line 203: | Line 200: | ||
|- | |- | ||
| ARLHS | | ARLHS | ||
| the number in the [[Amateur Radio Lighthouse Society]] list, available on their [http://wlol.arlhs.com/index.php Directory Lookup] website. | | the number in the [[Amateur Radio Lighthouse Society]] list, available on their [http://wlol.arlhs.com/index.php Directory Lookup] website. | ||
| [[Baltimore Harbor Light]]:''<br /> | | [[Baltimore Harbor Light]]:''<br />{{para|ARLHS|USA-034}} | ||
|- | |- | ||
| USCG | | USCG | ||
| 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>''‘V-NNNN’''</code>.<br /> | | 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>''‘V-NNNN’''</code>.<br /> | ||
The list can easily be cited using: | The list can easily be cited using: {{tl|cite uscgll|volume|year|page}} | ||
| [[Baltimore Harbor Light]] is listed as #8035 in Volume 2, page 76:'' <br /><code> | | [[Baltimore Harbor Light]] is listed as #8035 in Volume 2, page 76:'' <br /><code>{{para|USGC|2-8035<nowiki><ref>{{cite uscgll|2|2012|76}}</ref></nowiki>}} | ||
|- | |- | ||
| country | | country | ||
Line 233: | Line 230: | ||
=== Embedding other templates === | === Embedding other templates === | ||
The | The {{para|module}} parameter can be used for embedding other templates into this infobox (see [[Wikipedia:Infobox modules]]): | ||
<pre style="overflow:auto"> | <pre style="overflow:auto"> | ||
{{Infobox lighthouse | {{Infobox lighthouse | ||
Line 239: | Line 236: | ||
... | ... | ||
| module = | | module = | ||
{{Infobox | {{Infobox example | ||
| embed = yes <!-- or 'child=yes' or 'subbox=yes' --> | | embed = yes <!-- or 'child=yes' or 'subbox=yes' --> | ||
... | ... |
Revision as of 10:47, 14 March 2017
This is a documentation subpage for Template:Terminate sentence It may contain usage information, categories and other content that is not part of the original template page. |
Template:Wikidata property Template:Wikidata property
This template uses Lua: |
{{Infobox lighthouse}} may be used to summarise information about a lighthouse.
Usage
Empty fields and missing lines are not displayed
[[File:{{{image_name}}}|{{{image_width}}}|upright=1]] | |
Lua error in Module:Mapframe at line 379: attempt to perform arithmetic on local 'lat_d' (a nil value). | |
Location | {{{location}}} |
---|---|
OS grid | {{{grid_ref_UK}}} |
Coordinates | {{{coordinates}}} |
Constructed | {{{yearbuilt}}} |
Foundation | {{{foundation}}} |
Construction | {{{construction}}} |
Tower height | {{{height}}} |
Tower shape | {{{shape}}} |
Markings | {{{marking}}} |
Operator | {{{managingagent}}} |
Heritage | {{{heritage}}} |
First lit | {{{yearlit}}} |
Automated | {{{automated}}} |
Deactivated | {{{yeardeactivated}}} |
Focal height | {{{focalheight}}} |
Lens | {{{lens}}} |
Light source | {{{lightsource}}} |
Intensity | {{{intensity}}} |
Range | {{{range}}} |
Characteristic | {{{characteristic}}} |
Admiralty no. | {{{admiralty}}} |
NGA no. | {{{NGA}}} |
[{{{countrylink}}} {{{country}}}] no. | {{{countrynumber}}} |
Fog signal | {{{fogsignal}}} |
Racon | {{{racon}}} |
CCG no. | {{{canada}}} |
ARLHS no. | {{{ARLHS}}} |
USCG no. | {{{USCG}}} |
{{{module}}} |
{{Infobox lighthouse | name = | image_name = | image_width = | caption = | location = | pushpin_map = | pushpin_relief = | pushpin_mapsize = | pushpin_map_alt = | pushpin_map_caption = | pushpin = | pushpin_label_position = | coordinates = <!-- {{Coord}} --> | yearbuilt = <!-- {{Start date|YYYY}} --> | 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 = }}
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}}
Pushpin map
To add a {{Location map}}, specify the map using |pushpin_map=
.
Parameter | Usage | Example(s) |
---|---|---|
pushpin_map | The name of the map to be displayed. | pushpin_map=France|pushpin_map=USA Florida
|
pushpin_relief | Any non-blank value will cause the template to display a relief map image, where available. For additional information, see Template:Location map#Relief parameter. | pushpin_relief=yes|pushpin_relief=1
|
pushpin_mapsize | Width to display the map image in pixels. The default is 240. | pushpin_mapsize=200 (not |pushpin_mapsize=200px )
|
pushpin_map_alt | Alternative text for the map image, see WP:ALT. | |
pushpin_map_caption | Text displayed below the map image | |
pushpin | Specify one of three pre-defined marker images to be displayed on the location map. | pushpin=red for (default)|pushpin=green for |pushpin=lighthouse for
|
pushpin_label_position | To add a label next to the pushpin, use a value of top, bottom,left, or right. The default value is none. | pushpin_label_position=top |pushpin_label_position=bottom |pushpin_label_position=left |pushpin_label_position=right
|
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:
|yeardeactivated=1952–1980
- provide explanation:
|yearlit=1880 (current tower)
- give more than one answer:
|fogsignal=Bell (1880)<br />Horn 1 every 20s (1915)
Parameter | Usage | Example(s) |
---|---|---|
yearbuilt | usually the year the light first built (construction completed) | |
yearlit | usually the year the present, or last structure was lit | |
automated | the year it was automated | |
yeardeactivated | If the light is no longer in service, list the year it was last working. List a span of years using an en-dash. |
yeardeactivated=1952 Decommissioned in 1952, re-established in 1980: |yeardeactivated=1952–1980
|
foundation | the material of the foundation | |
construction | the material of the structure | |
shape | the shape of the structure (Cylindrical, conical, pyramidal, etc.) | |
marking | color or other distinctive marks | |
height | the total height of the structure above its foundation | Old Point Loma lighthouse: tower height: 46 ft|focalheight={{convert|46|ft|m}}
|
lightsource | the source of illumination | |
focalheight | 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. | Old Point Loma lighthouse: height of focal plane: 462 ft.|focalheight={{convert|462|ft|m}}
(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) |
elevation | Deprecated; DO NOT USE. See 'focalheight'. | |
lens | the type of lens originally used in the light, usually a Fresnel lens. | |
currentlens | the lens now in use. In the USA most of the Fresnel lenses have been replaced by modern optics such as the VRB-25. | |
intensity | Candlepower. | |
range | 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:|range=W {{convert|7|mi|km|1}}, R {{convert|5|mi|km|0}}
|
characteristic | the pattern of flashes, given in the light list. Please use shorthand – see Light characteristic for examples and explanation. | characteristic=Fl W 7.5s Green, occulting every 4 seconds: |characteristic=Oc G 4s
|
fogsignal | the type and frequency of any fog signal (Bell, horn, etc.), also given in the light list. | Horn, one 2-second blast every 15 seconds:|fogsignal=HORN: 1 blast ev 15s (2s bl)
|
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:|racon=N (– •)
|
admiralty | the number in the United Kingdom Hydrographic Office's Admiralty Digital List of Lights (ADLL) (worldwide). | |
canada | the number in the Canadian Light List (Canadian). 4 Volumes, available for download. | |
NGA | 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). Download the List of Lights | |
ARLHS | the number in the Amateur Radio Lighthouse Society list, available on their Directory Lookup website. | Baltimore Harbor Light:|ARLHS=USA-034
|
USCG | the number as shown in the Light List as 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, formatted as ‘V-NNNN’ .The list can easily be cited using: {{cite uscgll}} |
Baltimore Harbor Light is listed as #8035 in Volume 2, page 76:
|
country | if a country has its own numbering system (such as the Netherlands), the country name | |
countrynumber | number according to the country's numbering system. This is mandatory if country was specified. | |
countrylink | a (non mandatory) link to the country's list of lighthouses or the website hosting that list | |
managingagent | the authority responsible for operating the light | |
heritage | a description of the building's heritage status |
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' --> ... }} }}
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