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

Template:Wdtable row/lighthouse8

  • 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 VRB-25 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 4
Labellocated in the administrative territorial entity (P131)
country (P17)
light characteristic (P1030)
lighthouse range (P2929) (in nmi) qualified by color (P462)

Example

The Wikidata QID for Cape Moreton Light is Q5034949. Typing the following:
{{Wdtable row/lighthouse8|qid=Q5034949}}
produces
NameLocated in the administrative territorial entityLight characteristicLighthouse range (in nmi)
Cape Moreton Light Edit this on WikidataQueensland
Australia
Fl(4) W 20s15

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 VRB-25 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

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
Q5034949<!-- Cape Moreton Light -->
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 located in the administrative territorial entityc2

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

Contentoptional
Append to located in the administrative territorial entityc2+

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

Contentoptional
Override light characteristicc3

Override the light characteristic (column 3) with this content

Contentoptional
Append to light characteristicc3+

Append this content to the light characteristic (column 3)

Contentoptional
Override lighthouse rangec4

Override the lighthouse range (column 4) with this content

Contentoptional
Append to lighthouse rangec4+

Append this content to the lighthouse range (column 4)

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/lighthouse8&oldid=1137671927"
Last edited on 5 February 2023, at 21:54

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