• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Wdtable row/lighthouse

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:Wdtable row
Template documentation

This template will retrieve certain data from Wikidata for use in a table in an article. It is a wrapper template for Module:Wikidata table function makerow, using predefined properties.

It was designed for use on List of lighthouses in England but may also be used on other articles. (Search)

Contents

  • 1 Usage
  • 2 Example
  • 3 Notes
  • 4 Overriding columns
  • 5 Add named reference
  • 6 References
  • 7 TemplateData

Usage

The data that is displayed in each column is as follows:
Column 1Column 2Column 3Column 4Column 5Column 6Column 7Column 8Column 9Column 10
Labelimage (P18)
___location (P276)
coordinate ___location (P625)
historic county (P7959)
inception (P571)
height (P2048)
focal height (P2923)
lighthouse range (P2929) qualified by focal height (P2923)
operator (P137) qualified by end time (P582)
NGA lighthouse ID (P3563)

Example

The Wikidata QID for Bamburgh Lighthouse is Q3739752. Typing the following:
{{Wdtable row/lighthouse|qid=Q3739752}}
produces
NameImageLocationHistoric countyInceptionHeightFocal heightLighthouse rangeOperatorNGA lighthouse ID
Bamburgh Lighthouse Edit this on WikidataBamburgh
55°37′0″N 1°43′27″W
Northumberland1910[1]9 m (30 ft)[1]12 m (39 ft)[2]14 nmi (26 km; 16 mi)[2] (white), 11 nmi (20 km; 13 mi)[2] (red green)Trinity House[1]114-2252

Notes

  • The table caption, column headings, etc. need to be added manually.
  • Please be careful about making changes to this template, as corresponding changes will need to be made to the column headings on List of lighthouses in England and any other article using it. (Search)

Overriding columns

It is possible to override or append to data values obtained from Wikidata in any column in the table.
  • To completely override column n with some custom content, use parameter cn=
    For example, to replace column 5 with the number 1957 use c5=1957
  • To append some custom content to the end of column n use parameter cn+=
    For example, to add a footnote to column 6 use c6+={{efn|This value is approximate.}}

Add named reference

If you define references in a list then you can cite one of these by using the parameter refname. This will add a reference to column 1 directly after the label. For example you can define a reference called Smith1 by using
{{reflist|refs=
<ref name="Smith1">reference</ref>
}}
Then use refname=Smith1

References

  1. ^ a b c https://www.trinityhouse.co.uk/lighthouses-and-lightvessels/bamburgh-lighthouse
  2. ^ a b c Reeds PBO Small Craft Almanac 2014. ISBN 978-1-4081-9330-3. OL 32692860M. Wikidata Q25198336.

TemplateData

This template reads some data from Wikidata while also allowing an editor to override or append their own content.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
QIDqid

Enter the Wikidata QID, which is a number beginning with Q. You can also add the name of the item as an HTML comment.

Example
Q3739752<!-- Bamburgh Lighthouse -->
Stringsuggested
Add named referencerefname

Add a named reference defined in a list

Example
ref1
Stringoptional
Override labelc1

Override the label (column 1) with this value

Contentoptional
Append to labelc1+

Append this content to the label (column 1)

Contentoptional
Override imagec2

Override the image (column 2) with this content

Contentoptional
Append to imagec2+

Append this content to the image (column 2)

Contentoptional
Override ___locationc3

Override the ___location (column 3) with this content

Contentoptional
Append to ___locationc3+

Append this content to the ___location (column 3)

Contentoptional
Override historic countyc4

Override the historic county (column 4) with this content

Contentoptional
Append to historic countyc4+

Append this content to the historic county (column 4)

Contentoptional
Override inceptionc5

Override the inception (column 5) with this content

Contentoptional
Append to inceptionc5+

Append this content to the inception (column 5)

Contentoptional
Override heightc6

Override the height (column 6) with this content

Contentoptional
Append to heightc6+

Append this content to the height (column 6)

Contentoptional
Override focal heightc7

Override the focal height (column 7) with this content

Contentoptional
Append to focal heightc7+

Append this content to the focal height (column 7)

Contentoptional
Override lighthouse rangec8

Override the lighthouse range (column 8) with this content

Contentoptional
Append to lighthouse rangec8+

Append this content to the lighthouse range (column 8)

Contentoptional
Override operatorc9

Override the operator (column 9) with this content

Contentoptional
Append to operatorc9+

Append this content to the operator (column 9)

Contentoptional
Override NGA lighthouse IDc10

Override the NGA lighthouse ID (column 10) with this content

Contentoptional
Append to NGA lighthouse IDc10+

Append this content to the NGA lighthouse ID (column 10)

Contentoptional
Editors can experiment in this template's sandbox (create | mirror) and testcases (edit) pages.
Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Wdtable_row/lighthouse&oldid=1113319564"
Last edited on 30 September 2022, at 22:20

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 30 September 2022, at 22:20 (UTC).
      • Content is available under CC BY-SA 4.0 unless otherwise noted.
      • Privacy policy
      • About Wikipedia
      • Disclaimers
      • Contact Wikipedia
      • Code of Conduct
      • Developers
      • Statistics
      • Cookie statement
      • Terms of Use
      • Desktop