This page is protected against editing.

Template:Wikidata Infobox/core

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
 
NO WIKIDATA ID FOUND!

Search for Wikidata Infobox/core on Wikidata

Create new Wikidata item
Wikimedia template
Instance ofWikimedia multi-site page,
Wikimedia template
Protected This template has been protected from editing to prevent vandalism.
Please discuss changes on the talk page or request unprotection.
Documentationview · edit · history · purge ]
WikidataCon Award 2019
अमेजन नदी (dty); Amazůnka (szl); Amasónfljót (is); Sungai Amazon (ms); Амазонкæ (os); Amazon River (en-gb); آمازوناس آیالات (ps); دریائے ایمیزون (pnb); دریائے ایمیزون (ur); Amazonka (sk); Амазонка (uk); Amazonka (tk); 亚马逊河 (zh-cn); Amazonas (gsw); Amazon daryosi (uz); Амазон өзені (kk); Амазон (mk); Amazon (bs); अमेजन नदी (bho); Амазонкэ (ady); Amazone (fr); Amazona (hr); अ‍ॅमेझॉन नदी (mr); ଆମାଜନ ନଦୀ (or); Amazuonė (sgs); अमेजन नदी (awa); Amazonas (lb); Amazonas (nb); Walungan Amazon (su); Amazon Naddi (hif); Amazon özeni (crh); 亞馬遜河 (lzh); نهر الأمازون (ar); Amazon (br); အမေဇုံမြစ် (my); 亞馬遜河 (yue); Амазонка (ky); Ríu Amazones (ast); Amazonas (nds); Амазонка (ba); Afon Amazonas (cy); Riu di Amazzun (lmo); An Amasóin (ga); آمازون (fa); 亚马逊河 (zh); Amazonfloden (da); ამაზონი (ka); アマゾン川 (ja); Amazon (ia); Amazon (ha); نهر الامازون (arz); Flumen Amazonum (la); ऍमज़ॉन नदी (sa); अमेज़न नदी (hi); 亚马逊河 (wuu); Amazon (fi); Rio Amazona (lfn); لواد د لأمازون (ary); Амазонка (be-tarask); Ciumi di l'Amazzoni (scn); แม่น้ำแอมะซอน (th); Amazona (sh); Амазонка (rue); Amazonas (stq); Rio de ƚe Amàxoni (vec); ཡ་མ་སོན་གཙང་པོ། (bo); Ātōyātl Amazonas (nah); अमेजन खुसि (new); Salog Amazon (bcl); Río Amazonas (an); Amazône (fy); Amazon River (en-ca); Avon Amazon (kw); Амазонка (bg); Ամազոն (hy); Rio de le Amazzone (roa-tara); Amazon (ro); Amazone (li); Amazôna (mg); Amazonfloden (sv); Amazoni (sq); Amazon çayı (az); Амазон (sr); Дарёи Амазон (tg); amazonas. zei rirxe (jbo); ແມ່ນ້ຳອາມາຊົນ (lo); 아마존강 (ko); Amasoná (fo); Amazono (eo); Amazonka (pl); Riu Amazonas (pap); Rio dles Amazones (lld); Амазонка (krc); Amazon Ò̤ (cdo); Kali Amazon (jv); Амазонка (cv); Sungai Amazon (id); Lanmanzonn (flòv) (gcr); ಅಮೆಜಾನ್ (kn); אמאזאנאס (yi); Амазонка (ab); Amaconas (hsb); Sông Amazon (vi); আমাজান নদী (as); Amazone (lv); Amesonerivier (af); Амазонка (mrj); Амазонка (inh); Amazonii Pɔɔ (kbp); Rio Amazonas (pt-br); Amazon (sco); Амазон мөрөн (mn); Amazonaselva (nn); Amazan Riva (jam); আমাজন নদী (bn); Sungai Amazon (min); Amazonas (vro); Амазонка (av); ئەمازۆن (ckb); Amazon (en); Amazonka (cs); Paranaguasu (gn); Амазонэ (kbd); Amazoni (ln); Amazon (io); Amazonas (hu); አማዞን ወንዝ (am); Amazonas (de); Amazonas (eu); Riu Amazonas (oc); 亞馬孫河 (gan); Roê Amazoni (diq); Amarumayu (qu); अमेजन नदी (mai); Амазонка (ce); Рака Амазонка (be); Амазон мүрэн (bxr); ამაზონი (xmf); Amazon (ku); अमेजन नदी (ne); Amazon özeni (crh-latn); Amazonas (rm); Amazon Nehri (tr); آمازون (mzn); Dah Yamajsenhoz (za); אמזונאס (he); Амазонка (tt); అమెజాన్ నది (te); Karayan Amasona (ilo); ᱟᱢᱟᱡᱚᱱ ᱜᱟᱰᱟ (sat); Riu Amazonas (mwl); Amazonas (struum) (frr); Amazonas (de-ch); ਐਮਾਜ਼ਾਨ ਦਰਿਆ (pa); Amazon da'ryası (kaa); Rio delle Amazzoni (it); Amāzanēa (ang); Amasunu jawira (ay); Амазонко (mhr); Amazonas (et); Amazonas Hô (nan); Амазонка (lez); Ri dj'Amàsson (pms); Amazonas (bar); Odò Amasónì (yo); Амазонка (ru); rio Amazonas (pt); Amazonas (vo); Umlambo iAmazon (xh); Amazonas (es); Amazonė (lt); Amazonka (sl); Ilog Amasona (tl); آمازون (azb); Amazon River (ceb); Salog Amasona (war); Amazonas (sw); ആമസോൺ നദി (ml); Amazone (nl); Mtsinje wa Amazon (ny); Амазон өрүс (sah); riu Amazones (ca); Amazonas (vep); Río Amazonas (gl); அமேசான் ஆறு (ta); Αμαζόνιος (el); 𐌰𐌼𐌰𐌶𐍉𐌽𐌰 (got) río de América del Sur (es); fljót í Suður Ameríku (is); река в Южной Америке (ru); Strom im nördlichen Südamerika und wasserreichster Fluss der Erde (de); river in Peru (en-gb); پرآب‌ترین رود دنیا (fa); 南美洲最长的河流 (zh); ブラジルとその周辺国を流れ大西洋に注ぐ、世界最大規模の河川 (ja); fluvio in America del Sud (ia); flod i Sydamerika (sv); річка (uk); 南美洲最长的河流 (zh-cn); దక్షిణ అమెరికాలోని పొడవైన నది (te); joki Etelä-Amerikassa (fi); rivero en Peruo (eo); řeka v Jižní Americe (cs); fiume dell'America meridionale (it); fleuve d'Amérique du sud (fr); Jõgi Peruus (et); river in Peru (en-ca); rio localizado na América do Sul (pt); Con sông dài thứ hai thế giới (vi); Upe Dienvidamerikā, otra garākā upe pasaulē (lv); karayan idiay Abagatan nga Amerika ken maikadua a kaatiddogan a karayan iti lubong (ilo); најдужа река у Јужној Америци (sr); riu d'Amèrica del Sud (ca); Rzeka w Ameryce Południowej (pl); o mais longo rio na América do Sul (pt-br); langest river in Sooth Americae (sco); Sungai Terpanjang di Dunia (id); elv i Sør-Amerika (nn); elv i Sør-Amerika (nb); rivier in Zuid-Amerika (nl); rieka v Južnej Amerike (sk); נהר ענק באמריקה הדרומית (he); ଦକ୍ଷିଣ ଆମେରିକାର ଦୀର୍ଘତମ ନଦୀ (or); തെക്കെ അമേരിക്കൻ ഭൂഖണ്ഡത്തിലെ നദി (ml); longest river in South America (en); أكبر نهر في أمريكا الجنوبية (ar); ποταμός στην Περού (el); दक्षिण अमेरिका की सबसे बड़ी नदी (hi) Rio Amazonas, río Amazonas (es); Mar Doce (pt-br); ଆମାଜନ (or); Amazone (rivier) (nl); Fluvio Amazon (ia); 亚马孙河 (zh-cn); అమెజాన్ (te); Amazonas (pt); Amazon River, River Amazon, Amazonian River (en); أمازون (نهر), حوض الأمازون, الأمزون, الامازون, امازون, نهر الامازون (ar); 亚马孙河 (zh); Река Амазон (sr)
Amazon 
longest river in South America
Amazon River mouth on the Atlantic.jpg
Upload media
Wikipedia-logo-v2.svg  Wikipedia
Wikivoyage-logo.svg  Wikivoyage
Instance ofriver
Named after
Location Peru, Colombia, Brazil
Length
  • 6,400 km
Origin of the watercourse
  • Quebrada Apacheta (5,170 metre, 15°31′6″S 71°45′53″W, Amazonas placa 2011 Apacheta.jpg)
Mouth of the watercourse
Drainage basin
Basin country
Tributary
4° 26′ 25.08″ S, 73° 26′ 49.92″ W
Authority control
Edit infobox data on Wikidata

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

Usage

{{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 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.

Customisation

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" );

Maintenance

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.

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

ParameterDescriptionDefaultStatus
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

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.

Discussion
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.

ParameterDescriptionTypeStatus
Disable DEFAULTSORTdefaultsort

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

Default
y
Lineoptional
Disable automatic interwikiinterwiki

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

Lineoptional
QIDqid

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

Default
{{#invoke:wd|properties|raw=P301}}
Lineoptional

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

Localization

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

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

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: