NO WIKIDATA ID FOUND! Search for Wikidata Infobox/core on Wikidata |
![]() | This template has been protected from editing to prevent vandalism. Please discuss changes on thetalk page orrequest unprotection. |
Note: This template is used on a lot of pages. In order not to put too much load on the servers, edits should be kept to a bare minimum. Pleasediscuss proposed changes onthe talk page first. Afterwards, changes caninitially be done at and tested withTemplate:Wikidata Infobox/sandbox.
|
![]() | UsesLua: |
![]() | This template usesTemplateStyles: |
Includes a Wikidata-enabled infobox on category pages. SeeCommons:Wikidata infobox help for the FAQ.
The template automatically sets the following categories:
{{Wikidata Infobox
|qid =
|defaultsort =
|interwiki =
|autocat =
|trackingcats =
}}
This template mustnever be transcluded via another template, it has to always be directly used in categories and galleries - doing otherwise will lead to duplicate uses of this template. It can be used on template documentation pages (use the 'qid' parameter to link it correctly), or by noinclude'ing it in the template so it just shows on the template page rather than transclusions. (find transclusions to remove)
Common issues
If you see a Wikidata QID (a number, prefixed with "Q") instead of the correct title, then that means that the topic does not have a label in English – to fix this, add an English label on Wikidata. If you see content that's not in your own language, then that probably means that a label isn't available in your language – to fix this, add the appropriate label in your language on Wikidata.
If you spot a problem with the information displayed in the infobox, please first try to fix it on Wikidata. For further info seeCommons:Wikidata infobox help, which also has extensive information about the many types of images desired on Wikidata. If that fails, ask on thetemplate talk page.
If the infobox is empty, or it doesn't contain all of the information you think it should, then please expand the Wikidata entry. The infobox should grow accordingly, though the page on Wikimedia Commons might needpurging to show very recent updates from Wikidata.
Customisation
If you do not want to see the infobox, then add#wdinfobox { display: none;}
toSpecial:MyPage/common.css and it will not be displayed.
To display the infobox in a horizontal format, add the following toSpecial:MyPage/common.css. Note that this will only work in some browsers (Chrome and Safari should work, but Firefox won't):
#wdinfobox { width:100%!important; clear:both!important; display: block; -webkit-column-count: 4; -ms-column-count: 4; -moz-column-count: 4; column-count: 4; }
You can also use Javascript to change the settings by adding the following toSpecial:MyPage/common.js:
$( "#wdinfobox" ).addClass( "mw-collapsed" );
$( "#wdinfo_ac" ).addClass( "mw-collapsed" );
$( "#wdinfo_taxon" ).addClass( "mw-collapsed" );
$( "#wdinfobox" ).addClass( "wdinfobox_hide" );
$( "#wdinfobox" ).addClass( "wdinfobox_horizontal" );
Maintenance
Uses of this template are categorised intoCategory:Uses of Wikidata Infobox orCategory:Uses of Wikidata Infobox with no item depending on whether the template can find a QID.
Template developers: please ensure that if you are nesting {{Wikidata Infobox}} inside another template that you are wrapping it accordingly, that is<includeonly>{{Wikidata Infobox}}</includeonly>
, so that it doesn't categorise the template.
For past discussions about this template, see:
Parameter | Description | Default | Status | |
---|---|---|---|---|
qid | QID | Q ID (number) of the topic; overrides lookup in the database for this ID. | Value ofcategory's main topic(P301) if available, otherwise the ID of the connected Wikidata item | optional |
defaultsort | Disable DEFAULTSORT | Set to “no” to disable auto-adding a{{DEFAULTSORT}} | y | optional |
interwiki | interwiki | Set to “no” to disable auto-adding interwiki links usingModule:Interwiki | yes | optional |
autocat | automatic categorisation | Set to “no” to disable automatic categorisation under categories such asCategory:Living people | yes | optional |
trackingcats | tracking categories | Set to “no” to disable automatic addition of hidden categories such asCategory:Uses of Wikidata Infobox | yes | optional |
spf suppressfields | suppressfields | Comma-separated denylist of property IDs passed to WikidataIB, e.g. "P1923,P527" (note that some properties cannot be hidden) | empty | optional |
fwd fetchwikidata | fetchwikidata | Comma-separated allowlist of property IDs passed to WikidataIB, e.g. "P31" | ALL | optional |
<templatedata>JSON</templatedata> ./.{{TemplateBox}}
TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used byVisualEditor and possibly other tools likeUpload Wizard. Existing template documentation Newly created template documentation and imports Wikipedia's help about TemplateData •Commons-specific information Includes a Wikidata-enabled infobox on category pages. See https://commons.wikimedia.org/wiki/Commons:Wikidata_infobox_help for the FAQ.
|
The template is intended to be used in the following namespaces:the Category namespace
The template is intended to be used by the following user groups:no user group specified
Placement:At the top of the page
Relies on:
Module:WikidataIB;Module:Wikidata4Bio;Module:Taxontree;Module:Coordinates;{{Unbulleted list}};{{SuperFallback}};{{Dir}}
Bahasa Indonesia ∙italiano ∙magyar ∙Frysk ∙español ∙Lëtzebuergesch ∙Deutsch ∙galego ∙Nederlands ∙English ∙čeština ∙français ∙hrvatski ∙Esperanto ∙Napulitano ∙беларуская (тарашкевіца) ∙한국어 ∙shqip ∙العربية ∙বাংলা ∙српски / srpski ∙ଓଡ଼ିଆ ∙मराठी ∙اردو ∙slovenščina ∙polski ∙മലയാളം ∙తెలుగు ∙vèneto ∙українська ∙português do Brasil ∙粵語 ∙Türkçe ∙ไทย ∙suomi ∙中文 ∙ꠍꠤꠟꠐꠤ ∙македонски ∙svenska ∙+/−
This template makes use of{{Autotranslate}} andthe translate extension.
AskMike Peel orLennardHofmann if you need help.
The principal template is now a wrapper for the core code. This facilitates internationalisation by making parameter names easier to adapt.
Both templates have sandbox versions:
There are known issues, for which we invite suggested fixes: