Template:Wikidata Infobox

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Template:Wikidata Infobox 
Wikimedia template
Upload media
Wikipedia-logo-v2.svg  Wikipedia
Instance of Wikimedia template,
Wikimedia multi-site page
Different from
  • Template:Universal infobox
  • Template:Databox
Authority control
Blue pencil.svg
Plantilla:Wikidata Infobox (es); साचा:विकिडाटा माहितीचौकट (mr); Nodyn:Wikidata Infobox (cy); फलकम्:Wikidata Infobox (sa); Template:Wikidata Infobox (en); قالب:صندوق معلومات ويكي بيانات (ar); Template:Wikidata Infobox (zh); Шаблон:Wikidata Infobox (ru) plantilla de Wikimedia (es); Templat Wikimedia (ms); Wikimedia template (en-gb); ويکيمېډيا کينډۍ (ps); Уикимедия шаблон (bg); Vikimedya şablonu (tr); 維基媒體模板 (zh-hk); šablóna projektov Wikimedia (sk); modèl de Wikimèdia (oc); 維基媒體模板 (zh-hant); 维基媒体模板 (zh-cn); Wikimedia-Vorlage (gsw); 위키미디어 틀 (ko); fyrimynd Wikimedia (fo); Vikimedia ŝablono (eo); šablona na projektech Wikimedia (cs); Wikimedia-Vorlog (bar); plantilla de Wikimedia (an); উইকিমিডিয়া টেমপ্লেট (bn); modèle de Wikimedia (fr); cithakan Wikimedia (jv); विकिपीडिया:साचा (mr); ଉଇକିମିଡ଼ିଆ ଛାଞ୍ଚ (or); Wikimedia projekta veidne (lv); plantilia ti Wikimedia (ilo); Викимедијин шаблон (sr); predefinição da Wikimedia (pt-br); Wikimedia template (sco); Wikimedia-Schabloun (lb); Wikimedia-mal (nn); Wikimedia-mal (nb); Wikimedia template (en); قالب ويكيميديا (ar); 維基媒體模 (yue); Wikimédia-sablon (hu); વિકિપીડિયા ઢાંચો (gu); Wikimediako txantiloia (eu); šablon Wikimedia (bs); plantía de proyectu (ast); шаблон проекта Викимедиа (ru); Викимедиа ҡалыбы (ba); nodyn Wikimedia (cy); Викимедин проектан кеп (ce); шаблон праекта Вікімедыя (be); Викимедијин шаблон (sr-ec); 维基媒体模板 (zh); Wikimedia-berjocht (fy); ვიკიმედიის თარგი (ka); ウィキメディアのテンプレート (ja); 维基媒体模板 (zh-hans); Wikimedia-Vörlaag (nds); Wikimedia-mall (sv); Wikimedia-sjabloon (li); תבנית של ויקימדיה (he); formula Vicimediorum (la); Wikimedia mall (et); விக்கிமீடியா வார்ப்புரு (ta); వికీమీడియా మూస (te); Wikimedia-málle (se); шаблони лоиҳаи Викимедиа (tg-cyrl); Wikimedia template (en-ca); шаблони лоиҳаи Викимедиа (tg); shabloni loihai Vikimedia (tg-latn); template di un progetto Wikimedia (it); 維基媒體模板 (zh-tw); bản mẫu Wikimedia (vi); szablon w projekcie Wikimedia (pl); шаблён праекту Вікімэдыя (be-tarask); หน้าแม่แบบวิกิมีเดีย (th); Wikimedia-föörlaag (frr); Wikimedia-Vorlage (de); шаблон на Викимедија (mk); àdàkọ Wikimedia (yo); Wikimedia-sjabloon (zea); predefinição da Wikimedia (pt); şablona Wîkîmediyayê (ku-latn); format Wikimedia (ro); Վիքիմեդիայի նախագծի կաղապար (hy); Vikimedijos šablonas (lt); الگوی ویکی‌مدیا (fa); Padrong pang-Wikimedia (tl); plantilla de Wikimedia (ca); шаблон проекту Вікімедіа (uk); templat Wikimedia (id); kigezo cha Wikimedia (sw); വിക്കിമീഡിയ ഫലകം (ml); Wikimedia-sjabloon (nl); Wikimedia-mal (nds-nl); Wikimedia-skabelon (da); Ulmang pang-Wikimedia (pam); Wikimedia-Foarloage (stq); modelo da Wikimedia (gl); Wikimedia-malline (fi); Πρότυπο εγχειρήματος Wikimedia (el); stampë e Wikimedias (sq)
Documentation icon Documentationviewedithistorypurge

This documentation is transcluded from Template:Wikidata Infobox/doc.

Vale do Anhangabaú, escultura 1.JPG
Upload media
Instance of monument
LocationVale do Anhangabaú, Central Zone of São Paulo, São Paulo, Brazil
Located at street address
  • Parque do Anhangabaú
Date of official opening
  • 1992
  • 16 m
  • 8 m
23° 32′ 43.3″ S, 46° 38′ 11.62″ W
Authority control
Blue pencil.svg
Drusas (en); Drusas (pt-br); Monumento Drusa (pt) monumento na cidade de São Paulo (pt-br); monument au Brésil (fr); Denkmal in Brasilien (de)

Includes a small 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= |interwiki= |defaultsort= }}

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 title starting with Q, 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 problems depending on whether the template can find a QID.

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.{{#invoke:wd|properties|raw|P301}}optional
interwikiDisable automatic interwikiinterwiki=- (hyphen-minus) to disable calling {{Interwiki from Wikidata}} on category pages.emptyoptional
defaultsortDisable DEFAULTSORTdefaultsort=no to disable auto-adding a {{DEFAULTSORT}}yoptional
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 small Wikidata-enabled infobox on category pages. See https://commons.wikimedia.org/wiki/Commons:Wikidata_infobox_help for the FAQ.

Template parameters

This template prefers inline formatting of parameters.

Disable DEFAULTSORTdefaultsort

Add “no” to disable auto-adding the default category sort key (i.e. ).

Disable automatic interwikiinterwiki

Add “-” (hyphen-minus) to disable adding interwikis using {{Interwiki from Wikidata}} on category pages.


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


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:Wd, {{Br separated entries}}; {{Dir}}; {{Fallback}}; {{Label}}; {{Property}}; {{Replace text}}; {{Str left}}; {{Tl}}; {{Wikidata ID}}

Wikidata properties

The following Wikidata properties can be displayed:

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: