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

Template:Wdtable row/lighthouse9

  • 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 the Philippines 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 9
Labelimage (P18)
___location (P276)
located in the administrative territorial entity (P131)
service entry (P729)
height (P2048)
focal height (P2923)
Custom input
Custom input

Example

The Wikidata QID for Basco Lighthouse is Q4866328. Typing the following:
{{Wdtable row/lighthouse9|qid=Q4866328}}
produces
NameImageLocationLocated in the administrative territorial entityService entryHeightFocal heightColumn 8Column 9
Basco Lighthouse Edit this on WikidataBasco, BatanesBasco, Batanes200320 m (66 ft)20 m (66 ft)

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 the Philippines 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
Q4866328<!-- Basco 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 located in the administrative territorial entityc4

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

Contentoptional
Append to located in the administrative territorial entityc4+

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

Contentoptional
Override service entryc5

Override the service entry (column 5) with this content

Contentoptional
Append to service entryc5+

Append this content to the service entry (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
Define column 8c8

Define column 8 with this content

Contentoptional
Define column 9c9

Define column 9 with this content

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/lighthouse9&oldid=1137672737"
Last edited on 5 February 2023, at 22:00

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 22:00 (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