Template:Infobox lighthouse/doc

From Random Island Wiki
Revision as of 05:12, 28 November 2009 by >Fuhghettaboutit (fix name)
Jump to navigation Jump to search

Empty fields and missing lines are not displayed

{{Infobox lighthouse     
  | name =   
  | image_name = 
  | caption = 
  | location = 
  | coordinates =
  | yearbuilt = 
  | yearlit = 
  | automated = 
  | yeardeactivated = 
  | foundation = 
  | construction = 
  | shape = 
  | marking = 
  | height = 
  | focalheight = 
  | lens = 
  | currentlens = 
  | intensity = 
  | range = 
  | characteristic = 
  | fogsignal =
  | admiralty =
  | canada =
  | NGA =
  | ARLHS =
  | USCG =
}}

Coordinates

For coordinates, use {{coord}} with display=inline,title.

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.