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

Template:Wikidata item ID link/sandbox

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:Wikidata item ID link
This is the template sandbox page for Template:Wikidata item ID link (diff).
See also the companion subpage for test cases.
Template documentation[view] [edit] [history] [purge]
Shortcut
  • {{QIDTemplate:QID}}

Usage

edit

This template frames Wikidata item IDs (QIDs) for usage inside the |id= parameter in the various {{citation}} and {{cite xxx}} templates, or elsewhere. At present it just allows the QID node to be given in some documented way and links to both the corresponding external resource at Wikidata and the Wikidata article in Wikipedia in order to provide some explanation. It thereby helps to frame the code in some machine readable form and to standardize the appearance.

The template could be expanded to make the given code available as meta-data or to provide some error checking.

Parameters

edit

The first parameter should be the QID node ID (alternatively given as |qid=.

  • Example 1:
{{QID|56672530}}
will result in
QID 56672530
  • Example 2:
{{QID|qid=56672530}}
will result in
QID 56672530
  • Example 3 (up to 9 parameters - do not use |qid= at the same time):
{{QID|56672530|56672530}}
will result in
QID 56672530, 56672530

See also

edit
  • {{Q|<QID>}}
  • {{Get QID|<Wikipedia page title>}}
  • {{Catalog lookup link}}
The above documentation is transcluded from Template:Wikidata item ID link/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Wikidata_item_ID_link/sandbox&oldid=1290919651"
Last edited on 17 May 2025, at 22:48

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 17 May 2025, at 22:48 (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