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

Template:Wikidata ID

  • Template
  • Talk
  • Language
  • Watch
  • View source
Template documentation[view] [edit] [history] [purge]

Usage

This template fetches an identifier property from Wikidata and formats it as a URL. Use as for example:

{{Wikidata ID|P3634|P350|qid=Q19912922}}

which returns:

RKDimages ID: 197003
The Met object ID: 436634

If you want to hide the ID, then use:

{{Wikidata ID|P350|P3634|qid=Q19912922|showid=no}}

which returns:

RKDimages
The Met object

Ordering is new lines by default, but you can change it to commas using:

{{Wikidata ID|P350|P3634|qid=Q19912922|separator=comma}}

which returns:

RKDimages ID: 197003, The Met object ID: 436634

See also

  • {{Wikidata ID line}}
The above documentation is transcluded from Template:Wikidata ID/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Wikidata_ID&oldid=960748549"
Last edited on 4 June 2020, at 18:01

Languages

    • العربية
    • বাংলা
    • Banjar
    • Cebuano
    • Cymraeg
    • فارسی
    • Bahasa Indonesia
    • Jawa
    • Latviešu
    • Македонски
    • മലയാളം
    • मराठी
    • 日本語
    • ਪੰਜਾਬੀ
    • Română
    • Scots
    • Simple English
    • Svenska
    • တႆး
    • اردو
    • 中文
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 4 June 2020, at 18:01 (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