This page is protected against editing.

Template:Wikidata Infobox

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
<nowiki>Plantilla:Wikidata Infobox; ઢાંચો:Wikidata Infobox; Шаблон:Wikidata Infobox; Vorlage:Wikidata Infobox; Teimpléad:WD Bosca Sonraí; Template:Wikidata Infobox; Şablon:Wikidata Infobox; ढाँचा:Wikidata Infobox; سانچہ:Wikidata Infobox; Mall:Wikidata Infobox; फलकम्:Wikidata Infobox; साँचा:विकिडाटा ज्ञानसन्दूक; మూస:Wikidata Infobox; Vorlog:Wikidata Infobox; Modèle:Infobox Wikidata; Шаблён:Картка ВікіЗьвестак; साचा:विकिडाटा माहितीचौकट; Bản mẫu:Hộp thông tin Wikidata; Predefinição:Infocaixa Wikidata; Nodyn:Wikidata Infobox; Predefinição:Infocaixa Wikidata; ߞߙߊߞߏ:ߥߞߌߘߕߊ ߌ߲߬ߝߏߓߐߞߛ; Plantilya:Wikidata Infobox; قالب:صندوق معلومات ويكي بيانات; Mal:Wikidata Infobox; Citakan:Kotak info Wikidata; 模板:Wikidata Infobox; Mal:Infobox Wikidata; Templat:Kotak info Wikidata; داڕێژە:زانیاریدانی ویکیدراوە; Template:Wikidata Infobox; ထာမ်ပလိက်:Wikidata Infobox; 模板:Wikidata Infobox; ഫലകം:Wikidata Infobox; plantilla de Wikimedia; Templat Wikimedia; Wikimedia template; ويکيمېډيا کينډۍ; Уикимедия шаблон; Vikimedya şablonu; 維基媒體模板; šablóna projektov Wikimedia; modèl de Wikimèdia; 維基媒體模板; 维基媒体模板; Wikimedia-Vorlage; 위키미디어 틀; fyrimynd Wikimedia; Vikimedia ŝablono; šablona na projektech Wikimedia; Wikimedia-Vorlog; plantilla de Wikimedia; উইকিমিডিয়া টেমপ্লেট; modèle de Wikimedia; cithakan Wikimedia; विकिपीडिया:साचा; ଉଇକିମିଡ଼ିଆ ଛାଞ୍ଚ; Wikimedia projekta veidne; plantilia ti Wikimedia; Викимедијин шаблон; predefinição da Wikimedia; Wikimedia template; Wikimedia-Schabloun; Wikimedia-mal; Wikimedia-mal; citakan Wikimédia; Wikimedia template; قالب ويكيميديا; ߥߞߌߡߋߘߌߦߊ߫ ߞߙߊߞߏ; 維基媒體模; Wikimédia-sablon; વિકિપીડિયા ઢાંચો; Wikimediako txantiloia; šablon na Wikimediji; plantía de Wikimedia; шаблон проекта Викимедиа; Викимедиа ҡалыбы; nodyn Wikimedia; Викимедин проектан кеп; шаблон праекта Вікімедыя; Викимедијин шаблон; 维基媒体模板; Wikimedia-berjocht; ვიკიმედიის თარგი; ウィキメディアのテンプレート; 维基媒体模板; Wikimedia-Vörlaag; Wikimedia-malline; Wikimedia-skabelon; תבנית של ויקימדיה; formula Vicimediorum; Wikimedia mall; விக்கிமீடியா வார்ப்புரு; వికీమీడియా మూస; Wikimedia-málle; шаблони лоиҳаи Викимедиа; Wikimedia template; шаблони лоиҳаи Викимедиа; shabloni loihai Vikimedia; template di un progetto Wikimedia; 維基媒體模板; bản mẫu Wikimedia; szablon w projekcie Wikimedia; шаблён праекту Вікімэдыі; หน้าแม่แบบวิกิมีเดีย; Wikimedia-föörlaag; Wikimedia-Vorlage; Викимедиина предлошка; àdàkọ Wikimedia; Wikimedia-sjabloon; predefinição da Wikimedia; şablona Wîkîmediyayê; format Wikimedia; Վիքիմեդիայի նախագծի կաղապար; Vikimedijos šablonas; الگوی ویکی‌مدیا; Padrong pang-Wikimedia; plantilla de Wikimedia; шаблон проекту Вікімедіа; templat Wikimedia; kigezo cha Wikimedia; വിക്കിമീഡിയ ഫലകം; Wikimedia-sjabloon; Wikimedia-mal; Ulmang pang-Wikimedia; Wikimedia-sjabloon; Wikimedia-Foarloage; modelo da Wikimedia; Wikimedia-mall; Πρότυπο εγχειρήματος Wikimedia; stampë e Wikimedias</nowiki>
Template:Wikidata Infobox 
Wikimedia template
Frideborg Winblad (1869-1964) infobox.png
Upload media
Instance of
  • Wikimedia multi-site page
  • Wikimedia template
Maintained by
Different from
Authority control
Edit infobox data on Wikidata
Protected This template has been protected from editing to prevent vandalism.
Please discuss changes on the talk page or request unprotection.
Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:Wikidata Infobox/doc.
WikidataCon Award 2019

Includes a Wikidata-enabled infobox on category pages. See Commons:Wikidata infobox help for the FAQ.

The template automatically sets the following categories:

  • Interwikis from Wikidata
  • For people: given name(s) and surname(s), alive/deceased person/man/woman, years of birth and death, awards


{{Wikidata Infobox |qid= |defaultsort= |interwiki= |autocat= |trackingcats= }}

English: In most cases it can be used simply as {{Wikidata Infobox}}. The category page needs to be linked to through a sitelink on Wikidata (under 'other sites', add the correct sitelink to 'commons'). The Wikidata entry can either be directly about the category's topic, or include the category's main topic (P301).

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 see Commons:Wikidata infobox help, which also has extensive information about the many types of images desired on Wikidata. If that fails, ask on the template 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 need purging to show very recent updates from Wikidata.


If you do not want to see the infobox, then add #wdinfobox { display: none;} to Special:MyPage/common.css and it will not be displayed.

To display the infobox in a horizontal format, add the following to Special: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 to Special:MyPage/common.js:

  • To auto-hide the whole infobox: $( "#wdinfobox" ).addClass( "mw-collapsed" );
  • To auto-hide the authority control: $( "#wdinfo_ac" ).addClass( "mw-collapsed" );
  • To auto-hide the taxon tree: $( "#wdinfo_taxon" ).addClass( "mw-collapsed" );
  • To never display the infobox: $( "#wdinfobox" ).addClass( "wdinfobox_hide" );
  • To display the infobox horizontally: $( "#wdinfobox" ).addClass( "wdinfobox_horizontal" );


Uses of this template are categorised into Category:Uses of Wikidata Infobox or Category: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:

For further help, see Commons:Wikidata infobox help

Template parameters

qidQIDQ ID (number) of the topic; overrides lookup in the database for this ID.Value of category's main topic (P301) if available, otherwise the ID of the connected Wikidata itemoptional
defaultsortDisable DEFAULTSORTSet to “no” to disable auto-adding a {{DEFAULTSORT}}yoptional
interwikiinterwikiSet to “no” to disable auto-adding interwiki links using Module:Interwikiyesoptional
autocatautomatic categorisationSet to “no” to disable automatic categorisation under categories such as Category:Living peopleyesoptional
trackingcatstracking categoriesSet to “no” to disable automatic addition of hidden categories such as Category:Uses of Wikidata Infoboxyesoptional
suppressfieldsComma-separated denylist of property IDs passed to WikidataIB, e.g. "P1923,P527"emptyoptional
fetchwikidataComma-separated allowlist of property IDs passed to WikidataIB, e.g. "P31"ALLoptional
Template data
<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 by VisualEditor and possibly other tools like Upload Wizard.

Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either ‎useTemplateData=1 or ‎useTemplateData=only on the ‎/doc subpage and transcluding it with {{Documentation}} into the template. ‎<nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw ‎<templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.

There is an ongoing discussion about that matter. Feel invited to comment if you are experienced in either way, your time permits and if you like to share your opinion or to make a suggestion.

Wikipedia's help about TemplateDataCommons-specific information

Includes a Wikidata-enabled infobox on category pages. See for the FAQ.

[Edit template data]

Template parameters

This template prefers inline formatting of parameters.

automatic categorisationautocat

Set to “no” to disable automatic categorisation under categories such as “Living people”

Disable DEFAULTSORTdefaultsort

Set to “no” to disable auto-adding the default category sort key (i.e. {{DEFAULTSORT}}).

fetchwikidatafwd fetchwikidata

Comma-separated allowlist of property IDs passed to WikidataIB, e.g. "P31"


Set to “no” to disable auto-adding interwiki links


Q ID (number) of the topic; overrides lookup in the database for this ID.

Value of "category's main topic" (P301) if available, otherwise the ID of the connected Wikidata item
suppressfieldsspf suppressfields

Comma-separated denylist of property IDs passed to WikidataIB, e.g. "P1923,P527"

tracking categoriestrackingcats

Set to “no” to disable automatic addition of hidden categories such as “Uses of Wikidata Infobox”


Additional information

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}}


čeština  Deutsch  English  español  українська  Napulitano  Esperanto  Türkçe  ไทย  日本語  slovenščina  polski  മലയാളം  shqip  македонски  русский  中文  العربية  suomi  Nederlands  vèneto  मराठी  svenska  ଓଡ଼ିଆ  Bahasa Indonesia  français  magyar  한국어  italiano  اردو  português  বাংলা  беларуская (тарашкевіца)  +/−

This template makes use of {{Autotranslate}} and the translate extension.

Wikidata properties

Copying this template to other wikis

  1. Import dependencies Module:WikidataIB and Template:Unbulleted list
  2. Import w:Template:Wikidata Infobox/i18n/getMsg and w:Module:Wikidata Infobox/i18n from Wikipedia
  3. Import d:Template:Wikidata Infobox/core and d:Template:Wikidata Infobox/styles.css from Wikidata
  4. Import Module:Wikidata Infobox from Commons
  5. Import Template:Wikidata Infobox and configure it to your liking

Ask Mike Peel or LennardHofmann if you need help.

Core and sandboxes

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: