https://en.seminaverbi.bibleget.io/w/index.php?title=Template:WikidataCheck/doc&feed=atom&action=historyTemplate:WikidataCheck/doc - Revision history2024-03-29T09:52:21ZRevision history for this page on the wikiMediaWiki 1.41.0https://en.seminaverbi.bibleget.io/w/index.php?title=Template:WikidataCheck/doc&diff=2480&oldid=prevJohnrdorazio: 1 revision imported2020-08-31T19:47:08Z<p>1 revision imported</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<tr class="diff-title" lang="en">
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 19:47, August 31, 2020</td>
</tr><tr><td colspan="2" class="diff-notice" lang="en"><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>Johnrdoraziohttps://en.seminaverbi.bibleget.io/w/index.php?title=Template:WikidataCheck/doc&diff=2479&oldid=preven>Uzume: fix mispaste2020-05-05T18:35:03Z<p>fix mispaste</p>
<p><b>New page</b></p><div>{{documentation subpage}}<br />
{{#ifeq:{{NAMESPACE}}|Module<br />
| {{Module rating |protected}}{{Ombox|text=The following is the documentation for [[Template:WikidataCheck]].}}<br />
| {{Lua|Module:WikidataCheck}}<br />
}}<br />
<br />
[[Template:WikidataCheck]] compares a template parameter to a Wikidata property and adds pages using the template to one of three categories: not in, same as, or different from Wikidata. It is powered by the Lua module [[Module:WikidataCheck]].<br />
<br />
== Usage ==<br />
To add only [[Wikipedia:What is an article?#Namespace|articles]] to the categories: <br />
<br />
<code><nowiki>{{WikidataCheck|property=P###|value={{{value|}}}|category=Category prefix}}</nowiki></code><br />
<br />
To add pages in other [[Wikipedia:Namespace|namespaces]] to the categories: <br />
<br />
<code><nowiki>{{WikidataCheck|property=P###|value={{{value|}}}|category=Category prefix|namespaces=0,14}}</nowiki></code><br />
<br />
To prevent adding pages to a "same as" category:<br />
<br />
<code><nowiki>{{WikidataCheck|property=P###|value={{{value|}}}|category=Category prefix|nocatsame=1}}</nowiki></code><br />
<br />
== Parameters ==<br />
; Required<br />
* {{para|property}} is the P### of the property. The "P" must be uppercase.<br />
* {{para|value}} is the value to use from the template. This would be something like <code><nowiki>{{{id|}}}</nowiki></code> or <code><nowiki>{{{id|{{{1|}}}}}}</nowiki></code><br />
* {{para|category}} is the prefix to use in front of the category names. The categories created are "[prefix] not in Wikidata", "[prefix] same as Wikidata", and "[prefix] different from Wikidata".<br />
** It is recommended you create these categories with {{tlx|hiddencat}} before applying this template.<br />
; Optional<br />
* {{para|namespaces}} is a comma separated list of the numerical namespaces to apply the template in. The default is 0, which is just article space.<br />
* {{para|nocatsame}} if set to any value will prevent adding pages to a "same as" category. The "not in" and "different from" categories are still added, where applicable.<br />
<br />
== Example ==<br />
For {{tlx|MusicBrainz artist}}, which checks {{property|P434}}, the following code would be added:<br />
<br />
<code><nowiki>{{WikidataCheck|property=P434|value={{{mbid|{{{id|{{{1|}}}}}}}}}|category=MusicBrainz artist}}</nowiki></code><br />
<br />
Articles using that template with an ID would be placed in one of the following categories:<br />
* [[:Category:MusicBrainz artist not in Wikidata]]<br />
* [[:Category:MusicBrainz artist same as Wikidata]]<br />
* [[:Category:MusicBrainz artist different from Wikidata]]<br />
<br />
== See also ==<br />
* {{tl|Tracks Wikidata}} for use in template documentation<br />
* {{tl|Wikidata tracking category}} for use in hidden tracking categories<br />
<br />
<includeonly>{{Sandbox other||{{#switch:{{NAMESPACENUMBER}}<br />
|10=<br />
[[Category:Wikidata templates]]<br />
|#default=<br />
[[Category:Wikidata modules]][[Category:Modules using data from Wikidata]]<br />
}}}}</includeonly></div>en>Uzume