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

Template:Wikidata image

  • Template
  • Talk
  • Language
  • Watch
  • View source
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on 993,000+ pages, or roughly 2% of all pages.
To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them.
This template tracks the Wikidata property:
  • image (P18) (see uses)

Template:Wikidata image may be added to infobox templates to implement tracking of articles using the infobox which might be improved by adding an image. When an article uses the infobox without an image, but the article's Wikidata has an image name, the article is added to a hidden tracking category (No local image but image on Wikidata). Once an image is added to the infobox, the article is removed from the category. The template also allows excluding individual articles from the category without adding an image.

Contents

  • 1 Usage
  • 2 Parameters
  • 3 Tracking categories
  • 4 Infoboxes using this template
  • 5 See also

Usage

Add the following to a template (if necessary, change "image" to whatever parameter name that template uses to display an image):

<includeonly>{{Wikidata image |1={{{image|}}} }}</includeonly>

To allow individual articles using the template to be excluded from the tracking category, add the following instead:

<includeonly>{{Wikidata image |1={{{image|}}} |2={{{nocat_wdimage|}}} }}</includeonly>

Parameters

This template accepts two unnamed parameters:

  1. (required) If no value is assigned, adds the tracking category. This should be the parameter name used by the infobox to display an image, usually {{{image|}}}.
  2. (optional) If any value is assigned, does not add the tracking category. This should be a parameter name used by the infobox to exclude an individual article from the category, usually {{{nocat_wdimage|}}}.

Tracking categories

  • Category:No local image but image on Wikidata (9,406) — also used by Template:Compare

Infoboxes using this template

  • {{Infobox person}} and templates calling Infobox person
  • {{Infobox sportsperson}} and templates calling Infobox sportsperson
  • {{Infobox football biography}}
  • {{Infobox bandy biography}}
  • {{Infobox aircraft begin}}
  • {{Infobox book}}

See also

  • User:Taketa/Wikidata Images
  • {{Compare image with Wikidata}}
The above documentation is transcluded from Template:Wikidata image/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) 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_image&oldid=764385104"
Last edited on 8 February 2017, at 17:10

Languages

    • Afrikaans
    • Alemannisch
    • العربية
    • Arpetan
    • অসমীয়া
    • Авар
    • Basa Bali
    • বাংলা
    • 閩南語 / Bân-lâm-gí
    • भोजपुरी
    • Bikol Central
    • Boarisch
    • Буряад
    • Cymraeg
    • Dansk
    • الدارجة
    • Deutsch
    • ཇོང་ཁ
    • Ελληνικά
    • فارسی
    • Fiji Hindi
    • Føroyskt
    • Français
    • Gagauz
    • ગુજરાતી
    • Gungbe
    • 客家語 / Hak-kâ-ngî
    • 한국어
    • Հայերեն
    • हिन्दी
    • Ilokano
    • Bahasa Indonesia
    • עברית
    • Jawa
    • ಕನ್ನಡ
    • ქართული
    • Kernowek
    • Ikinyarwanda
    • Kongo
    • Kurdî
    • Ladin
    • Latviešu
    • Lëtzebuergesch
    • Lingála
    • मैथिली
    • Македонски
    • Malagasy
    • മലയാളം
    • मराठी
    • ဘာသာမန်
    • Bahasa Melayu
    • Minangkabau
    • Mirandés
    • Мокшень
    • Монгол
    • မြန်မာဘာသာ
    • Nederlands
    • नेपाली
    • 日本語
    • Norsk bokmål
    • ଓଡ଼ିଆ
    • Oʻzbekcha / ўзбекча
    • ਪੰਜਾਬੀ
    • Pangasinan
    • Papiamentu
    • پښتو
    • Português
    • Qaraqalpaqsha
    • Română
    • ᱥᱟᱱᱛᱟᱲᱤ
    • Scots
    • Shqip
    • සිංහල
    • Simple English
    • سنڌي
    • Slovenščina
    • کوردی
    • Српски / srpski
    • Sunda
    • Svenska
    • Tagalog
    • Татарча / tatarça
    • တႆး
    • తెలుగు
    • ไทย
    • Türkçe
    • Türkmençe
    • Українська
    • اردو
    • Tiếng Việt
    • 吴语
    • ייִדיש
    • Yorùbá
    • 粵語
    • 中文
    • Igala
    • Kumoring
    • Руски
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 8 February 2017, at 17:10 (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