Template:Infobox lighthouse/doc: Difference between revisions

From Random Island Wiki
Jump to navigation Jump to search
>Muhandes
m (→‎Parameter usage: wikilink)
>Innotata
m (fixed dashes using a script)
Line 57: Line 57:
==Parameter usage==
==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
*put in a span of years - deactivated =1952-1980
*put in a span of years deactivated =1952–1980
*explanation - year lit = 1880 (current tower)
*explanation year lit = 1880 (current tower)
*more than one answer - <nowiki>fogsignal = Bell 1880<br>Horn 1 every 20s 1915</nowiki>
*more than one answer <nowiki>fogsignal = Bell 1880<br>Horn 1 every 20s 1915</nowiki>
-----
-----
*yearbuilt - usually the year the light was first established
*yearbuilt usually the year the light was first established
*yearlit - usually the year the current structure was lit
*yearlit usually the year the current structure was lit
*automated - the year it was automated
*automated the year it was automated
*yeardeactivated - the year it was last working, or the period when it was not used
*yeardeactivated the year it was last working, or the period when it was not used
*foundation - the material of the foundation
*foundation the material of the foundation
*construction - the material of the structure
*construction the material of the structure
*shape - the shape of the structure (Cylindrical, conical, pyramidal, etc.)
*shape the shape of the structure (Cylindrical, conical, pyramidal, etc.)
*marking -- color or other distinctive marks
*marking color or other distinctive marks
*height - the total height of the structure above its foundation
*height the total height of the structure above its foundation
*focalheight -- the height of the actual light, usually [[above mean sea level]].  This is the height given in light lists (this is the Height listed above plus the distance of the foundation above mean sea level less the distance between the bulb and the top of the lantern)
*focalheight the height of the actual light, usually [[above mean sea level]].  This is the height given in light lists (this is the Height listed above plus the distance of the foundation above mean sea level less the distance between the bulb and the top of the lantern)
*lens - the type of lens originally used in the light, usually a [[Fresnel lens]].
*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]] which are easier to maintain and operate better on solar power.
*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]] which are easier to maintain and operate better on solar power.
*intensity - Candlepower, not often used.
*intensity Candlepower, not often used.
*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).
*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).
*characteristic - the pattern of flashes, given in the light list, such as Fl W 7.5s. Please use shorthand, see [[Light characteristic]] for examples and explanation.
*characteristic the pattern of flashes, given in the light list, such as Fl W 7.5s. Please use shorthand, see [[Light characteristic]] for examples and explanation.
*fogsignal - the type and frequency of any fog signal. (Bell, horn, etc.)
*fogsignal the type and frequency of any fog signal. (Bell, horn, etc.)
*racon - the letter shown if there is a [[Racon]]
*racon the letter shown if there is a [[Racon]]
*admiralty - the number in the British Admiralty Light List (worldwide)
*admiralty the number in the British Admiralty Light List (worldwide)
*canada - the number in the Canadian Light List (Canadian)
*canada the number in the Canadian Light List (Canadian)
*NGA - the number in the US National Geospatial-Intelligence Agency Light Lists (lights outside of the USA)
*NGA the number in the US National Geospatial-Intelligence Agency Light Lists (lights outside of the USA)
*ARLHS - the number in the Amateur Radio Lighthouse Society list
*ARLHS the number in the Amateur Radio Lighthouse Society list
*USCG - the number in the US Coast Guard Light Lists (inside the USA, written as Volume-number) can be cited easily with <nowiki>{{cite uscgll|volume|year|page}}</nowiki>
*USCG the number in the US Coast Guard Light Lists (inside the USA, written as Volume-number) can be cited easily with <nowiki>{{cite uscgll|volume|year|page}}</nowiki>
*country - if a country has its own numbering system (such as the Netherlands), the country name
*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
*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
*countrylink a (non mandatory) link to the country's list of lighthouses or the website hosting that list


==Pushpin map==
==Pushpin map==
Line 101: Line 101:
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]].
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]].


Briefly, insert the entire NRHP infobox template after the last line in the lighthouse infobox that actually has data. It's easiest if the parameters are left in the order above -- then the NRHP infobox template goes after the last line that has something on the right side of the equals sign. The remaining parameter lines in the lighthouse infobox template, if any, can be deleted or left in place following the NRHP template.
Briefly, insert the entire NRHP infobox template after the last line in the lighthouse infobox that actually has data. It's easiest if the parameters are left in the order above then the NRHP infobox template goes after the last line that has something on the right side of the equals sign. The remaining parameter lines in the lighthouse infobox template, if any, can be deleted or left in place following the NRHP template.


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 third example below for an exception).
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 third example below for an exception).
The insertion should look <br>'''like this:''' (Insert the actual NRHP name in place of ABCDE)
The insertion should look <br>'''like this:''' (Insert the actual NRHP name in place of ABCDE)


Line 171: Line 171:




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.
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.


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.
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.

Revision as of 14:24, 4 November 2010

{{Infobox lighthouse}} may be used to summarise information about a lighthouse.

Usage

Empty fields and missing lines are not displayed

{{Infobox lighthouse     
  | name =   
  | image_name = 
  | caption = 
  | location = 
  | pushpin_map =
  | pushpin = 
  | latd = | latm = | lats = | latNS =
  | longd= | longm= | longs= | longEW=
  | coordinates_display =
  | yearbuilt = 
  | yearlit = 
  | automated = 
  | yeardeactivated = 
  | foundation = 
  | construction = 
  | shape = 
  | marking = 
  | height = 
  | focalheight = 
  | lens = 
  | currentlens = 
  | intensity = 
  | range = 
  | characteristic = 
  | fogsignal =
  | racon =
  | admiralty =
  | canada =
  | NGA =
  | ARLHS =
  | USCG =
}}

Coordinates

For coordinates, use

  | latd = | latm = | lats = | latNS =
  | longd= | longm= | longs= | longEW=

which displays linked coordinates using the {{coord}} template. Alternatively, you can use the {{coord}} template directly using the coordinates = option. For example,

| coordinates = {{coord|1|2|N|3|4|E|type:landmark|display=inline,title}}

Parameter usage

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

  • put in a span of years – deactivated =1952–1980
  • explanation – year lit = 1880 (current tower)
  • more than one answer – fogsignal = Bell 1880<br>Horn 1 every 20s 1915

  • yearbuilt – usually the year the light was first established
  • yearlit – usually the year the current structure was lit
  • automated – the year it was automated
  • yeardeactivated – the year it was last working, or the period when it was not used
  • 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
  • focalheight – the height of the actual light, usually above mean sea level. This is the height given in light lists (this is the Height listed above plus the distance of the foundation above mean sea level less the distance between the bulb and the top of the lantern)
  • 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 which are easier to maintain and operate better on solar power.
  • intensity – Candlepower, not often used.
  • 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).
  • characteristic – the pattern of flashes, given in the light list, such as Fl W 7.5s. Please use shorthand, see Light characteristic for examples and explanation.
  • fogsignal – the type and frequency of any fog signal. (Bell, horn, etc.)
  • racon – the letter shown if there is a Racon
  • admiralty – the number in the British Admiralty Light List (worldwide)
  • canada – the number in the Canadian Light List (Canadian)
  • NGA – the number in the US National Geospatial-Intelligence Agency Light Lists (lights outside of the USA)
  • ARLHS – the number in the Amateur Radio Lighthouse Society list
  • USCG – the number in the US Coast Guard Light Lists (inside the USA, written as Volume-number) can be cited easily with {{cite uscgll|volume|year|page}}
  • 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

Pushpin map

To add a {{Location map}}, specify which map using pushpin_map = . For this option to work, the coordinates must be specified using latd = and longd =.

pushpin = red for   (default)
pushpin = green for
pushpin = lighthouse for

To add a label next to the pushpin, use pushpin_label_position =, with a value of top, bottom, left, or right. The default value is none.

Using the lighthouse infobox template with the NRHP infobox template for USA lights

About three quarters of United States lighthouses are on the National Register of Historic Places. It is useful in those cases to include both {{Infobox lighthouse}} and {{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.

Briefly, insert the entire NRHP infobox template after the last line in the lighthouse infobox that actually has data. It's easiest if the parameters are left in the order above – then the NRHP infobox template goes after the last line that has something on the right side of the equals sign. The remaining parameter lines in the lighthouse infobox template, if any, can be deleted or left in place following the NRHP template.

Add "|embed = yes" as the second line of the NRHP infobox, immediately after {{Infobox_nrhp The result should end in }}}} (two for the lighthouse box and two for the NRHP – but see the third example below for an exception). The insertion should look
like this: (Insert the actual NRHP name in place of ABCDE)

.
.
  | fogsignal = none
  | admiralty =
  | canada =
  | NGA =
  | ARLHS =
  | USCG = 1-12345
{{Infobox nrhp
  |embed = yes
  | name = ABCDE
.
.
}}}}

or like this

.
.
| fogsignal = none
{{Infobox nrhp
  |embed = yes
  | name = ABCDE
.
.
}}}}

or even like this

.
.
  | fogsignal = none
{{Infobox nrhp
  |embed = yes
  | name = ABCDE
.
.
}} <!- the end of the NRHP infobox ->
  | admiralty =
  | canada =
  | NGA =
  | ARLHS =
  | USCG =
}} <!- the end of the lighthouse infobox ->

but not like this

.
.
  | fogsignal = none
  | admiralty =
  | canada =
  | NGA =
  | ARLHS =
  | USCG =
{{Infobox nrhp
  |embed = yes
  | name = ABCDE
.
.
}}}}


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.

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.


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.