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

Template:Wdtable row/lighthouse7

  • 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 Scotland 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)
located in the administrative territorial entity (P131)
coordinate ___location (P625)
located in/on physical feature (P706)
inception (P571)
main building contractor (P193)
designed by (P287)
structural engineer (P631)
operator (P137) qualified by end time (P582)
height (P2048) (in m)
focal height (P2923) (in m)
lighthouse range (P2929) (in nmi) qualified by focal height (P2923)

Example

The Wikidata QID for Ailsa Craig Lighthouse is Q4697091. Typing the following:
{{Wdtable row/lighthouse7|qid=Q4697091}}
produces
NameImageLocated in the administrative territorial entityLocated in/on physical featureInceptionMain building contractorOperatorHeight (in m)Focal height (in m)Lighthouse range (in nmi)
Ailsa Craig Lighthouse Edit this on WikidataSouth Ayrshire
55°15′6″N 5°6′24″W
Ailsa Craig1886Thomas Stevenson, David A StevensonNorthern Lighthouse Board11[1]18[2]17[2]

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 Scotland 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. ^ http://www.nlb.org.uk/LighthouseLibrary/Lighthouse/Ailsa-Craig/
  2. ^ a b 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
Q4697091<!-- Ailsa Craig 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 located in the administrative territorial entityc3

Override the located in the administrative territorial entity (column 3) with this content

Contentoptional
Append to located in the administrative territorial entityc3+

Append this content to the located in the administrative territorial entity (column 3)

Contentoptional
Override located in/on physical featurec4

Override the located in/on physical feature (column 4) with this content

Contentoptional
Append to located in/on physical featurec4+

Append this content to the located in/on physical feature (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 main building contractorc6

Override the main building contractor (column 6) with this content

Contentoptional
Append to main building contractorc6+

Append this content to the main building contractor (column 6)

Contentoptional
Override operatorc7

Override the operator (column 7) with this content

Contentoptional
Append to operatorc7+

Append this content to the operator (column 7)

Contentoptional
Override heightc8

Override the height (column 8) with this content

Contentoptional
Append to heightc8+

Append this content to the height (column 8)

Contentoptional
Override focal heightc9

Override the focal height (column 9) with this content

Contentoptional
Append to focal heightc9+

Append this content to the focal height (column 9)

Contentoptional
Override lighthouse rangec10

Override the lighthouse range (column 10) with this content

Contentoptional
Append to lighthouse rangec10+

Append this content to the lighthouse range (column 10)

Contentoptional
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Wdtable_row/lighthouse7&oldid=1137665822"
Last edited on 5 February 2023, at 21:12

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 5 February 2023, at 21:12 (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