|
|
Line 1: |
Line 1: |
| {{Documentation subpage}}
| | [[Special:Contributions/2600:1:C736:C82E:B116:82DF:B24B:2C90|2600:1:C736:C82E:B116:82DF:B24B:2C90]] ([[User talk:2600:1:C736:C82E:B116:82DF:B24B:2C90|talk]]) 19:11, 13 September 2017 (UTC) |
| <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
| |
| {{High-risk|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.
| |
| | |
| == Usage ==
| |
| Add the following to a template (if necessary, change "image" to whatever parameter name that template uses to display an image):
| |
| | |
| :<code><nowiki> | |
| <includeonly>{{Wikidata image |1={{{image|}}} }}</includeonly>
| |
| </nowiki></code>
| |
| | |
| To allow individual articles using the template to be excluded from the tracking category, add the following instead:
| |
| | |
| :<code><nowiki> | |
| <includeonly>{{Wikidata image |1={{{image|}}} |2={{{nocat_wdimage|}}} }}</includeonly>
| |
| </nowiki></code>
| |
| | |
| == Parameters ==
| |
| This template accepts two unnamed parameters:
| |
| # (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 <code><nowiki>{{{image|}}}</nowiki></code>.
| |
| # (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, ususally <code><nowiki>{{{nocat_wdimage|}}}</nowiki></code>.
| |
| | |
| == Infoboxes using this template ==
| |
| * {{tl|Infobox person}} and [[:Category:Templates calling Infobox person|templates calling Infobox person]]
| |
| * {{tl|Infobox sportsperson}} and [[:Category:Templates calling Infobox sportsperson|templates calling Infobox sportsperson]]
| |
| * {{tl|Infobox football biography}}
| |
| * {{tl|Infobox bandy biography}}
| |
| * {{tl|Infobox aircraft begin}}
| |
| *{{tl|Infobox book}}
| |
| | |
| == See also ==
| |
| * [[User:Taketa/Wikidata Images]]
| |
| | |
| <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
| |
| <!-- Categories below this line, please; interwikis at Wikidata -->
| |
| [[Category:Wikidata templates]]
| |
| [[Category:Graphics templates]]
| |
| [[Category:Templates that add a tracking category]]
| |
| }}</includeonly>
| |