Template:Wikidata image/doc: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Fryed-peach No edit summary |
meta>Zyxw add Category:Templates that add a tracking category, update formatting, prevent categories from being transcluded by /sandbox |
||
Line 1: | Line 1: | ||
{{Documentation subpage}} | |||
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | |||
[[Template:Wikidata image]] can be used in infobox templates. It adds all articles using the template that have no image, but do have an image on Wikidata, to [[:Category:No local image but image on Wikidata]]. | |||
See [[User:Taketa/Wikidata Images]] for more information. | See [[User:Taketa/Wikidata Images]] for more information. | ||
== | == Usage == | ||
Add the following to a template and change the "image" to whatever that templates uses, like "image" or "Image": | |||
<code><nowiki> | |||
<includeonly>{{Wikidata image|1={{{image|}}} }}</includeonly> | |||
</nowiki></code> | |||
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | | |||
< | <!-- Categories below this line, please; interwikis at Wikidata --> | ||
[[Category:Wikidata templates]] | [[Category:Wikidata templates]] | ||
[[Category:Graphics templates]] | [[Category:Graphics templates]] | ||
</includeonly> | [[Category:Templates that add a tracking category]] | ||
}}</includeonly> |
Revision as of 01:34, 28 April 2015
This is a documentation subpage for Template:Wikidata image. It may contain usage information, categories and other content that is not part of the original template page. |
Template:Wikidata image can be used in infobox templates. It adds all articles using the template that have no image, but do have an image on Wikidata, to Category:No local image but image on Wikidata.
See User:Taketa/Wikidata Images for more information.
Usage
Add the following to a template and change the "image" to whatever that templates uses, like "image" or "Image":
<includeonly>{{Wikidata image|1={{{image|}}} }}</includeonly>