Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Wikidata image/doc: Difference between revisions

Template page
Created page with "{{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> {{High-use|439000+}} {{Tracks Wikidata|P18|cat=No local image but image on Wikidata}} 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 W..."
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{wikipedia|page name}}
{{Documentation subpage}}
{{Documentation subpage}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
{{High-use|439000+}}
{{Tracks Wikidata|P18|cat=No local image but image on Wikidata}}


[[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 ([[:Category:No local image but image on Wikidata|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.
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.


== Usage ==
== Usage ==
Line 25: Line 24:


== Tracking categories ==
== Tracking categories ==
* {{clc|No local image but image on Wikidata}} — also used by [[Template:Compare]]
* {{clc|No local image but image on Wikidata}} — also used by Template:Compare


== Infoboxes using this template ==
== Infoboxes using this template ==
* {{tl|Infobox person}} and [[:Category:Templates calling Infobox person|templates calling Infobox person]]
* {{tl|Infobox person}} and templates calling Infobox person
* {{tl|Infobox sportsperson}} and [[:Category:Templates calling Infobox sportsperson|templates calling Infobox sportsperson]]
* {{tl|Infobox sportsperson}} and templates calling Infobox sportsperson
* {{tl|Infobox football biography}}
* {{tl|Infobox football biography}}
* {{tl|Infobox bandy biography}}
* {{tl|Infobox bandy biography}}
Line 35: Line 34:
* {{tl|Infobox book}}
* {{tl|Infobox book}}


== See also ==
* [[User:Taketa/Wikidata Images]]
* {{tl|Compare image with Wikidata}}


<includeonly>{{Sandbox other||
<includeonly>{{Sandbox other||

Latest revision as of 17:38, 9 April 2025

This page uses Creative Commons Licensed content from Wikipedia (view authors).

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.

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

Infoboxes using this template