Editing
Template:WikidataCheck/doc
From Thetacola Wiki
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{documentation subpage}} {{High-use}} {{#ifeq:{{NAMESPACE}}|Module | {{Module rating |protected}}{{Ombox|text=The following is the documentation for [[Template:WikidataCheck]].}} | {{Lua|Module:WikidataCheck}} }} [[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]]. == Usage == To add only [[Wikipedia:What is an article?#Namespace|articles]] to the categories: <code><nowiki>{{WikidataCheck|property=P###|value={{{value|}}}|category=Category prefix}}</nowiki></code> To add pages in other [[Wikipedia:Namespace|namespaces]] to the categories: <code><nowiki>{{WikidataCheck|property=P###|value={{{value|}}}|category=Category prefix|namespaces=0,14}}</nowiki></code> To prevent adding pages to a "same as" category: <code><nowiki>{{WikidataCheck|property=P###|value={{{value|}}}|category=Category prefix|nocatsame=1}}</nowiki></code> == Parameters == ; Required * {{para|property}} is the P### of the property. The "P" must be uppercase. * {{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> * {{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". ** It is recommended you create these categories with {{tlx|hiddencat}} before applying this template. ; Optional * {{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. * {{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. * {{para|qid}} if specified will check a a different Wikidata item than the current article == Example == For {{tlx|MusicBrainz artist}}, which checks {{property|P434}}, the following code would be added: <code><nowiki>{{WikidataCheck|property=P434|value={{{mbid|{{{id|{{{1|}}}}}}}}}|category=MusicBrainz artist}}</nowiki></code> Articles using that template with an ID would be placed in one of the following categories: * [[:Category:MusicBrainz artist not in Wikidata]] * [[:Category:MusicBrainz artist same as Wikidata]] * [[:Category:MusicBrainz artist different from Wikidata]] == See also == * {{tl|Tracks Wikidata}} for use in template documentation * {{tl|Wikidata tracking category}} for use in hidden tracking categories <includeonly>{{Sandbox other||{{#switch:{{NAMESPACENUMBER}} |10= [[Category:Wikidata templates]] |#default= [[Category:Wikidata modules]][[Category:Modules using data from Wikidata]] }}}}</includeonly>
Summary:
Please note that all contributions to Thetacola Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Project:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Documentation subpage
(
edit
)
Template:High-use
(
edit
)
Template:Lua
(
edit
)
Template:Mbox
(
edit
)
Template:Nowrap
(
edit
)
Template:Para
(
edit
)
Template:Property
(
edit
)
Template:Str left
(
edit
)
Template:Strong
(
edit
)
Template:Template link
(
edit
)
Template:Template link expanded
(
edit
)
Template:Terminate sentence
(
edit
)
Template:Tl
(
edit
)
Template:Tlx
(
edit
)
Template:Wikidata
(
edit
)
Template:Wikidata property link
(
edit
)
Module:Arguments
(
edit
)
Module:High-use
(
edit
)
Module:List
(
edit
)
Module:Lua banner
(
edit
)
Module:Message box
(
edit
)
Module:Message box/configuration
(
edit
)
Module:Message box/ombox.css
(
edit
)
Module:TableTools
(
edit
)
Module:Template link general
(
edit
)
Module:Text
(
edit
)
Module:Transclusion count
(
edit
)
Module:Transclusion count/data/W
(
edit
)
Module:Wd
(
edit
)
Module:Yesno
(
edit
)
Navigation menu
Page actions
Template
Discussion
Read
Edit source
History
Page actions
Template
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Search
Tools
What links here
Related changes
Special pages
Page information