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

Template:Wdtable row/lighthouse6

  • 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 Wales#Active lighthouses 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 7
Labelimage (P18)
located in the administrative territorial entity (P131)
coordinate ___location (P625)
inception (P571)
height (P2048) (in m)
focal height (P2923) (in m) qualified by color (P462)
lighthouse range (P2929) (in nmi) qualified by color (P462)

Example

The Wikidata QID for Trwyn Du Lighthouse is Q1324554. Typing the following:
{{Wdtable row/lighthouse6|qid=Q1324554}}
produces
NameImageLocated in the administrative territorial entityInceptionHeight (in m)Focal height (in m)Lighthouse range (in nmi)
Trwyn Du Lighthouse Edit this on WikidataLlangoed
53°18′46″N 4°2′26″W
18382919[1]12[1]

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 Wales#Active lighthouses 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 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
Q1324554<!-- Trwyn Du 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 inceptionc4

Override the inception (column 4) with this content

Contentoptional
Append to inceptionc4+

Append this content to the inception (column 4)

Contentoptional
Override heightc5

Override the height (column 5) with this content

Contentoptional
Append to heightc5+

Append this content to the height (column 5)

Contentoptional
Override focal heightc6

Override the focal height (column 6) with this content

Contentoptional
Append to focal heightc6+

Append this content to the focal height (column 6)

Contentoptional
Override lighthouse rangec7

Override the lighthouse range (column 7) with this content

Contentoptional
Append to lighthouse rangec7+

Append this content to the lighthouse range (column 7)

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/lighthouse6&oldid=1137665169"
Last edited on 5 February 2023, at 21:08

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:08 (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