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:
<noinclude>{{documentation subpage}}</noinclude>
{{Documentation subpage}}
This template can be used on 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]].   
<!-- 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.


== Adding to a template ==
== Usage ==
To add the template Wikidata image, add the following to a template and change the "image"to whatever that templates uses, like "image" or "Image":
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>


<nowiki><includeonly>{{Wikidata image|1={{{image|}}} }}</includeonly></nowiki>
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<includeonly>
<!-- 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

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>