Template:Infobox lighthouse/doc

From The Democratikan Wiki
Revision as of 19:43, 26 December 2023 by wikipedia>Tom.Reding (→‎top: {{High-use}})
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

{{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
Name Item label and Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P1448) The name of the lighthouse Wilsons Promontory Lighthouse |name=
Image Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P18) qualified by Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P2096) An image of the lighthouse stored on Wikimedia Commons. A caption can be included with Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P2096). Cuxhaven 07-2016 photo23 Kugelbake.jpg |image=, |caption=
Location Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P625), Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P706), Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P276), Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P131), Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P17) Location of the lighthouse. Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (Q126514) |location=
OS grid Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P613) Ordnance Survey National Grid coordinates. NZ40806416 |grid_ref_UK=
Coordinates Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (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 Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P571) Date of start of construction. 1897 |yearbuilt=
Designed by Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P287) Designer of the lighthouse. Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (Q27835212) |suppressfields=designer
Built by Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P193), Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P631) Engineer or builder of the lighthouse. Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (Q1355182) |suppressfields=builder
Foundation n/a The material of the foundation. concrete |foundation=
Construction Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P186) qualified with Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P518) The material of the structure. Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (Q41177) |construction=
Tower shape Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P1419) qualified with Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P518) The shape of the structure. Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (Q9090332) |shape=
Markings Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P462) qualified by Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P518)
Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P5422) qualified with Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P1419), Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P1114), Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P462), Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P7469), Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P518)
Color or other distinctive marks. horizontal red stripe |marking=
Tower height Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P2048) The total height of the structure above ground. 10 metres |height=
Power source Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P618) Source of power for the lighthouse Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (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 Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P3994) The letter transmitted in morse code by the Racon, if it has one. N |racon=
Operator Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P137) qualified with Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P580) and Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P582) The authority responsible for operating the light. Trinity House |managingagent=
Heritage Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (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 Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P729) Date that the light entered service. 27 June 1904 |yearlit=
Deactivated Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P730) If the light is no longer in service, the date it was decommissioned. June 1980 |yeardeactivated=
Automated Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P793) -> Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (Q24410992) qualified with Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P585) The date the light was converted to automatic. 4 December 1998 |automated=
Focal height Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P2923) qualified with Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (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 Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P9597) qualified with Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P580) and Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P582) The type of lens used in the light. Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (Q24629169), Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (Q7907476) |lens=
Light source n/a Source of illumination of the light. CDM T lamp, High intensity LED lamp |lightsource=
Intensity Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P3041) qualified with Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P462) Luminous intensity of the light, measured in candela. 14,400 candela |intensity=
Range Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P2929) qualified with Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (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 Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P1030) qualified with Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P805), Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P580) and Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P582) The pattern of flashes in shorthand notation. See Light characteristic for examples and explanation. Fl(2) W 10s |characteristic=

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): <syntaxhighlight lang="wikitext" style="overflow:auto">

...
Lua error in package.lua at line 80: module 'Module:i18n' not found.
Lua error in package.lua at line 80: module 'Module:i18n' not found.
Lua error in Module:Infobox_mapframe at line 185: attempt to index field 'wikibase' (a nil value).
LocationLua error in package.lua at line 80: module 'Module:i18n' not found., Lua error in package.lua at line 80: module 'Module:i18n' not found., Lua error in package.lua at line 80: module 'Module:i18n' not found., {{#Property:P17|from= }} Template:EditAtWikidata
OS gridLua error in package.lua at line 80: module 'Module:i18n' not found.
CoordinatesLua error in package.lua at line 80: module 'Module:i18n' not found.
Expression error: Unexpected < operator.
ConstructedLua error in package.lua at line 80: module 'Module:i18n' not found.
Designed byLua error in package.lua at line 80: module 'Module:i18n' not found.
Built byLua error in package.lua at line 80: module 'Module:i18n' not found., Lua error in package.lua at line 80: module 'Module:i18n' not found.
ConstructionLua error in package.lua at line 80: module 'Module:i18n' not found.
AutomatedLua error in package.lua at line 80: module 'Module:i18n' not found.
HeightLua error in package.lua at line 80: module 'Module:i18n' not found.
ShapeLua error in package.lua at line 80: module 'Module:i18n' not found.
MarkingsLua error in package.lua at line 80: module 'Module:i18n' not found., Lua error in package.lua at line 80: module 'Module:i18n' not found.
Power sourceLua error in package.lua at line 80: module 'Module:i18n' not found.
OperatorLua error in package.lua at line 80: module 'Module:i18n' not found.
HeritageLua error in package.lua at line 80: module 'Module:i18n' not found.
RaconLua error in package.lua at line 80: module 'Module:i18n' not found.
Light
First litLua error in package.lua at line 80: module 'Module:i18n' not found.
DeactivatedLua error in package.lua at line 80: module 'Module:i18n' not found.
Focal heightLua error in package.lua at line 80: module 'Module:i18n' not found.
LensLua error in package.lua at line 80: module 'Module:i18n' not found.
IntensityLua error in package.lua at line 80: module 'Module:i18n' not found.
RangeLua error in package.lua at line 80: module 'Module:i18n' not found.
Characteristic[[File:Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value).|20px]] Lua error in package.lua at line 80: module 'Module:i18n' not found.
Template:Infobox example

</syntaxhighlight>

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)

<syntaxhighlight lang="wikitext" style="overflow: auto;">

Lua error in package.lua at line 80: module 'Module:i18n' not found.
Lua error in Module:Infobox_mapframe at line 185: attempt to index field 'wikibase' (a nil value).
LocationLua error in package.lua at line 80: module 'Module:i18n' not found., Lua error in package.lua at line 80: module 'Module:i18n' not found., Lua error in package.lua at line 80: module 'Module:i18n' not found., {{#Property:P17|from= }} Template:EditAtWikidata
OS gridLua error in package.lua at line 80: module 'Module:i18n' not found.
CoordinatesLua error in package.lua at line 80: module 'Module:i18n' not found.
Expression error: Unexpected < operator.
ConstructedLua error in package.lua at line 80: module 'Module:i18n' not found.
Designed byLua error in package.lua at line 80: module 'Module:i18n' not found.
Built byLua error in package.lua at line 80: module 'Module:i18n' not found., Lua error in package.lua at line 80: module 'Module:i18n' not found.
ConstructionLua error in package.lua at line 80: module 'Module:i18n' not found.
AutomatedLua error in package.lua at line 80: module 'Module:i18n' not found.
HeightLua error in package.lua at line 80: module 'Module:i18n' not found.
ShapeLua error in package.lua at line 80: module 'Module:i18n' not found.
MarkingsLua error in package.lua at line 80: module 'Module:i18n' not found., Lua error in package.lua at line 80: module 'Module:i18n' not found.
Power sourceLua error in package.lua at line 80: module 'Module:i18n' not found.
OperatorLua error in package.lua at line 80: module 'Module:i18n' not found.
HeritageLua error in package.lua at line 80: module 'Module:i18n' not found.
RaconLua error in package.lua at line 80: module 'Module:i18n' not found.
Light
First litLua error in package.lua at line 80: module 'Module:i18n' not found.
DeactivatedLua error in package.lua at line 80: module 'Module:i18n' not found.
Focal heightLua error in package.lua at line 80: module 'Module:i18n' not found.
LensLua error in package.lua at line 80: module 'Module:i18n' not found.
IntensityLua error in package.lua at line 80: module 'Module:i18n' not found.
RangeLua error in package.lua at line 80: module 'Module:i18n' not found.
Characteristic[[File:Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value).|20px]] Lua error in package.lua at line 80: module 'Module:i18n' not found.

</syntaxhighlight>

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 categories

See also

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Infobox lighthouse in articles based on its TemplateData.

TemplateData for Infobox lighthouse

Click the [show] link to the right to display the TemplateData.

No description.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
namename

no description

Unknownoptional
qidqid

no description

Unknownoptional
suppressfieldssuppressfields

no description

Unknownoptional
Fetch wikidatafetchwikidata

use and leave blank to turn off Wikidata values

Unknownoptional
image_nameimage_name

no description

Unknownoptional
image_widthimage_width

no description

Unknownoptional
image sizeimage size

no description

Unknownoptional
image_sizeimage_size

no description

Unknownoptional
imagesizeimagesize

no description

Unknownoptional
image_uprightimage_upright

no description

Unknownoptional
altalt

no description

Unknownoptional
imageimage

no description

Unknownoptional
captioncaption

no description

Unknownoptional
coordinatescoordinates

no description

Unknownoptional
map_captionmap_caption

no description

Unknownoptional
onlysourcedonlysourced

no description

Unknownoptional
locationlocation

no description

Unknownoptional
grid_ref_UKgrid_ref_UK

no description

Unknownoptional
designationdesignation

no description

Unknownoptional
Year builtyearbuilt

usually the year the light first built

Unknownoptional
Year lityearlit

the year the light entered service, if different from yearbuilt

Unknownoptional
Year automatedautomated

the year it was automated

Unknownoptional
Year deactivatedyeardeactivated

If the light is no longer in service, list the year it was last working

Unknownoptional
Foundation materialfoundation

the material of the foundation

Unknownoptional
Construction materialconstruction

the material of the structure

Unknownoptional
Structure shapeshape

the shape of the structure

Example
Cylindrical, conical, pyramidal
Unknownoptional
Markingmarking

color or other distinctive marks

Unknownoptional
Height above foundationheight

the total height of the structure above its foundation

Unknownoptional
Focal heightfocalheight

the height of the actual light source above mean sea level

Unknownoptional
Lenslens

the type of lens originally used in the light

Example
Fresnel lens
Unknownoptional
Light sourcelightsource

the source of illumination

Unknownoptional
Intensityintensity

candlepower

Unknownoptional
Rangerange

the distance at which the light can be seen

Unknownoptional
characteristiccharacteristic

the pattern of flashes, given in the light list

Unknownoptional
Fog signalfogsignal

the type and frequency of any fog signal

Example
Bell, horn
Unknownoptional
raconracon

the letter shown if there is a Racon

Unknownoptional
countrylinkcountrylink

a (non mandatory) link to the country's list of lighthouses or the website hosting that list

Unknownoptional
countrycountry

if a country has its own numbering system, the country name

Example
Netherlands
Unknownoptional
countrynumbercountrynumber

number according to the country's numbering system

Unknownoptional
Managing agentmanagingagent

the authority responsible for operating the light

Unknownoptional
heritageheritage

a description of the building's heritage status

Unknownoptional
modulemodule

used for embedding other templates into this infobox

Unknownoptional
mapframemapframe

no description

Unknownoptional
mapframe-zoommapframe-zoom

no description

Unknownoptional
mapframe-widthmapframe-width

no description

Unknownoptional
mapframe-heightmapframe-height

no description

Unknownoptional
mapframe-markermapframe-marker

no description

Unknownoptional
mapframe-marker-colormapframe-marker-color

no description

Unknownoptional
mapframe-marker-colourmapframe-marker-colour

no description

Unknownoptional
mapframe-latmapframe-lat

no description

Unknownoptional
mapframe-latitudemapframe-latitude

no description

Unknownoptional
mapframe-longmapframe-long

no description

Unknownoptional
mapframe-longitudemapframe-longitude

no description

Unknownoptional
mapframe-captionmapframe-caption

no description

Unknownoptional