Template:Infobox lighthouse/doc
| This is a documentation subpage for Template:Infobox lighthouse. It may contain usage information, categories and other content that is not part of the original template page. |
| This template is used on approximately 2,600 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
| This template adds an automatically generated short description. If the automatic short description is not optimal, override it by adding {{Short description}} at the top of the article. |
| This template uses Lua: |
{{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
[edit source]Parameters for the light
[edit source]Bespoke numbering systems
[edit source]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
[edit source]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
[edit source]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
[edit source]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 =
| lightdome =
| lightband =
| lightvideo =
| fogsignal =
| racon =
| mmsi =
| country =
| countrynumber =
| countrylink =
| managingagent =
| heritage =
| module =
}}
Coordinates
[edit source]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
[edit source]A Mapframe map is automatically included if:
- There are coordinates specified, either in the
|coordinates=parameter or on the page's Wikidata item - It has not been turned off by setting
|mapframe=no
The following optional parameters can then be used to adjust the map:
- Basic {{Infobox mapframe}} parameters:
- mapframe – Specify yes or no to show or hide the map, overriding the default. Default: no, but also modified by onByDefault
- Internal onByDefault parameter: yes, unless
|embed=is set
- Internal onByDefault parameter: yes, unless
- mapframe-coordinates or mapframe-coord or coordinates or coord – Coordinates to use, instead of any on Wikidata. Use the {{Coord}} template, e.g.
|coord=. Default: coordinates from Wikidata d:Property:P625{{Coord|12.34|N|56.78|E}} - mapframe-caption – Caption for the map. Default: blank (or if
|mapframe-geomask=is set, "Location in geomask's label") - mapframe-custom – Use a custom map instead of the automatic mapframe. Specify either a
{{maplink}}template, or another template that generates a mapframe map, or an image name. If used, most mapframe parameters will be ignored. Default: not specified - mapframe-id or id or qid – Id (Q-number) of Wikidata item to use. Default: item for current page
- mapframe-wikidata – Set to
yesto show all shape/line features from OpenStreetMap. Default: not specified
- mapframe – Specify yes or no to show or hide the map, overriding the default. Default: no, but also modified by onByDefault
- Customise which features are displayed:
- mapframe-point – Turn off display of point feature by setting to
none. Force point marker to be displayed by setting toon. Default: not specified - mapframe-shape – Turn off display of shape feature by setting to
none. Force display of shape by setting toon. Use an inverse shape (geomask) instead of a regular shape by setting toinverse. Default: not specified - mapframe-line – Turn off display of line feature by setting to
none. Force display of line by setting toon. Default: not specified - mapframe-geomask – Wikidata item to use as a geomask (everything outside the boundary is shaded darker). Can either be a specific Wikidata item (Q-number), or a property that specifies the item to use (e.g.
P17for Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (P17),P131for Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (P131)). Default: not specified - mapframe-switcher – set to
autoorgeomasksorzoomsto enable Template:Switcher-style switching between multiple mapframes. Default: not specifiedauto– switch geomasks found in Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (P276) and Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (P131) statements on the page's Wikidata item, searching recursively. E.g. an item's city, that city's state, and that state's country.geomasks– switch between the geomasks specified as a comma-separated list of Wikidata items (Q-numbers) in the mapframe-geomask parameterzooms– switch between "zoomed in"/"zoomed midway"/"zoomed out", where "zoomed in" is the default zoom (with a minimum of3), "zoomed out" is1, and "zoomed midway" is the average
- mapframe-point – Turn off display of point feature by setting to
- Other optional parameters:
- mapframe-frame-width or mapframe-width – Frame width. Default: 270
- mapframe-frame-height or mapframe-height – Frame height. Default: 200
- mapframe-shape-fill – Color used to fill shape features. Default: #606060
- mapframe-shape-fill-opacity – Opacity level of shape fill, a number between 0 and 1. Default: 0.1
- mapframe-stroke-color or mapframe-stroke-colour – Color of line features, and outlines of shape features. Default: #ff0000
- mapframe-line-stroke-color or mapframe-line-stroke-colour – Color of line features. Default: #ff0000
- mapframe-shape-stroke-color or mapframe-shape-stroke-colour – Color of outlines of shape features. Default: #ff0000
- mapframe-stroke-width – Width of line features, and outlines of shape features. Default: 2
- mapframe-shape-stroke-width – Width of outlines of shape features. Default: 2
- mapframe-line-stroke-width – Width of line features. Default: 5
- mapframe-marker – Marker symbol to use for coordinates; see mw:Help:Extension:Kartographer/Icons for options. Default: lighthouse
- Can also be set to
blankto override any default marker symbol
- Can also be set to
- mapframe-marker-color or mapframe-marker-colour – Background color for the marker. Default: #5E74F3
- mapframe-geomask-stroke-color or mapframe-geomask-stroke-colour – Color of outline of geomask shape. Default: #555555
- mapframe-geomask-stroke-width – Width of outline of geomask shape. Default: 1
- mapframe-geomask-fill – Color used to fill outside geomask features. Default: #606060
- mapframe-geomask-fill-opacity – Opacity level of fill outside geomask features, a number between 0 and 1. Default: 0.25
- mapframe-zoom – Set the zoom level, from "1" (map of earth) to "18" (maximum zoom in), to be used if the zoom level cannot be determined automatically from object length or area. Default: 5
- mapframe-length_km or mapframe-length_mi or mapframe-area_km2 or mapframe-area_mi2 – Determine zoom level by passing in object's length (in kilometres or miles) or area (in square kilometres or square miles). Default: not specified / not specified / not specified / not specified
- mapframe-frame-coordinates or mapframe-frame-coord – Alternate latitude and longitude coordinates for initial placement of map, using {{coord}}. Default: derived from item coordinates
- mapframe-type – Set the type of the object, with the same usage as {{coord}}. Default: not specified
- mapframe-population – Set the population, useful with type="city", for {{Infobox dim}}. Default: not specified
Microformat
[edit source]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
[edit source]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
[edit source]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
[edit source]When giving coordinates, please use an appropriate level of precision. Do not use {{coord}}'s |name= parameter.
Tracking categories
[edit source]See also
[edit source]TemplateData
[edit source]TemplateData for Infobox lighthouse
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| name | name | no description | Unknown | optional |
| qid | qid | no description | Unknown | optional |
| suppressfields | suppressfields | no description | Unknown | optional |
| Fetch wikidata | fetchwikidata | use and leave blank to turn off Wikidata values | Unknown | optional |
| image_name | image_name | no description | Unknown | optional |
| image_width | image_width | no description | Unknown | optional |
| image size | image size | no description | Unknown | optional |
| image_size | image_size | no description | Unknown | optional |
| imagesize | imagesize | no description | Unknown | optional |
| image_upright | image_upright | no description | Unknown | optional |
| alt | alt | no description | Unknown | optional |
| image | image | no description | Unknown | optional |
| caption | caption | no description | Unknown | optional |
| coordinates | coordinates | no description | Unknown | optional |
| map_caption | map_caption | no description | Unknown | optional |
| onlysourced | onlysourced | no description | Unknown | optional |
| location | location | no description | Unknown | optional |
| grid_ref_UK | grid_ref_UK | no description | Unknown | optional |
| designation | designation | no description | Unknown | optional |
| Year built | yearbuilt | usually the year the light first built | Unknown | optional |
| Year lit | yearlit | the year the light entered service, if different from yearbuilt | Unknown | optional |
| Year automated | automated | the year it was automated | Unknown | optional |
| Year deactivated | yeardeactivated | If the light is no longer in service, list the year it was last working | Unknown | optional |
| Foundation material | foundation | the material of the foundation | Unknown | optional |
| Construction material | construction | the material of the structure | Unknown | optional |
| Structure shape | shape | the shape of the structure
| Unknown | optional |
| Marking | marking | color or other distinctive marks | Unknown | optional |
| Height above foundation | height | the total height of the structure above its foundation | Unknown | optional |
| Focal height | focalheight | the height of the actual light source above mean sea level | Unknown | optional |
| Lens | lens | the type of lens originally used in the light
| Unknown | optional |
| Light source | lightsource | the source of illumination | Unknown | optional |
| Intensity | intensity | candlepower | Unknown | optional |
| Range | range | the distance at which the light can be seen | Unknown | optional |
| characteristic | characteristic | the pattern of flashes, given in the light list | Unknown | optional |
| Fog signal | fogsignal | the type and frequency of any fog signal
| Unknown | optional |
| racon | racon | the letter shown if there is a Racon | Unknown | optional |
| mmsi | mmsi | the number of the AIS/MMSI | Unknown | optional |
| countrylink | countrylink | a (non mandatory) link to the country's list of lighthouses or the website hosting that list | Unknown | optional |
| country | country | if a country has its own numbering system, the country name
| Unknown | optional |
| countrynumber | countrynumber | number according to the country's numbering system | Unknown | optional |
| Managing agent | managingagent | the authority responsible for operating the light | Unknown | optional |
| heritage | heritage | a description of the building's heritage status | Unknown | optional |
| module | module | used for embedding other templates into this infobox | Unknown | optional |
| mapframe | mapframe | no description | Unknown | optional |
| mapframe-zoom | mapframe-zoom | no description | Unknown | optional |
| mapframe-width | mapframe-width | no description | Unknown | optional |
| mapframe-height | mapframe-height | no description | Unknown | optional |
| mapframe-marker | mapframe-marker | no description | Unknown | optional |
| mapframe-marker-color | mapframe-marker-color | no description | Unknown | optional |
| mapframe-marker-colour | mapframe-marker-colour | no description | Unknown | optional |
| mapframe-lat | mapframe-lat | no description | Unknown | optional |
| mapframe-latitude | mapframe-latitude | no description | Unknown | optional |
| mapframe-long | mapframe-long | no description | Unknown | optional |
| mapframe-longitude | mapframe-longitude | no description | Unknown | optional |
| mapframe-caption | mapframe-caption | no description | Unknown | optional |
| embed | embed | no description | Unknown | optional |
| qs | qs | no description | Unknown | optional |
| refs | refs | no description | Unknown | optional |
| coord_format | coord_format | no description | Unknown | optional |
| USCG | USCG | no description | Unknown | optional |
| light1 | light1 | no description | Unknown | optional |
| light2 | light2 | no description | Unknown | optional |

