Template:Wikidata Infobox
Wikimedia template | |||
Upload media | |||
Wikipedia Wikivoyage | |||
Instance of | Wikimedia multi-site page, Wikimedia template | ||
---|---|---|---|
Different from |
| ||
| |||
This template has been protected from editing to prevent vandalism. Please discuss changes on the talk page or request unprotection. |
Uses Lua: |
This template uses TemplateStyles: |
longest river in South America | |||
Upload media | |||
Wikipedia Wikivoyage | |||
Instance of | river | ||
---|---|---|---|
Named after | |||
Location | Peru, Colombia, Brazil | ||
Length |
| ||
Origin of the watercourse |
| ||
Mouth of the watercourse |
| ||
Drainage basin | |||
Basin country | |||
Tributary |
| ||
Different from |
| ||
| |||
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= }}
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:
- Would small Wikidata-enabled infoboxes be useful on category pages? (January 2018)
- Proposal to bot-deploy Wikidata Infobox (February 2018)
- Bot approval (March/April 2018)
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
qid | QID | Q ID (number) of the topic; overrides lookup in the database for this ID. | {{#invoke:wd|properties|raw|P301}} | optional |
interwiki | Disable automatic interwiki | interwiki=- (hyphen-minus) to disable calling {{Interwiki from Wikidata}} on category pages. | empty | optional |
defaultsort | Disable DEFAULTSORT | defaultsort=no to disable auto-adding a {{DEFAULTSORT}} | y | optional |
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 Newly created template documentation and imports Wikipedia's help about TemplateData • Commons-specific information Includes a small Wikidata-enabled infobox on category pages. See https://commons.wikimedia.org/wiki/Commons:Wikidata_infobox_help for the FAQ.
|
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
日本語 ∙ беларуская (тарашкевіца) ∙ 한국어 ∙ Esperanto ∙ Napulitano ∙ українська ∙ العربية ∙ English ∙ Türkçe ∙ ไทย ∙ slovenščina ∙ polski ∙ മലയാളം ∙ shqip ∙ македонски ∙ ଓଡ଼ିଆ ∙ русский ∙ 中文 ∙ suomi ∙ Nederlands ∙ vèneto ∙ मराठी ∙ svenska ∙ français ∙ čeština ∙ magyar ∙ اردو ∙ Deutsch ∙ italiano ∙ Bahasa Indonesia ∙ português ∙ বাংলা ∙
This template makes use of {{Autotranslate}} and the translate extension.
Wikidata properties
The following Wikidata properties can be displayed:
- category's main topic (P301)
- image (P18) collage image (P2716) image of grave (P1442) photosphere image (P4640) flag image (P41) coat of arms image (P94) logo image (P154) service ribbon image (P2425)
- audio (P51) spoken text audio (P989) pronunciation audio (P443) audio recording of the subject's spoken voice (P990)
- instance of (P31) subclass of (P279) part of (P361) facet of (P1269) main subject (P921) edition or translation of (P629) industry (P452) category combines topics (P971) category contains (P4224)
- taxon name (P225) taxon rank (P105) parent taxon (P171) taxon author citation (P6507) original combination (P1403) taxon author (P405) taxon common name (P1843) parent club (P831)
- call sign (P2317) located in protected area (P3018)
- named after (P138) dedicated to (P825) commemorates (P547) genre (P136) depicts (P180) made from material (P186)
- located in/on physical feature (P706) located on astronomical body (P376) location (P276) located in the administrative territorial entity (P131), country (P17) located on street (P669) street number (P670) applies to jurisdiction (P1001) located in or next to body of water (P206) P969 (P969) postal code (P281) country of origin (P495)
- cathedral (P1885) architectural style (P149) diocese (P708)
- highway system (P16) connects with (P2789)
- constellation (P59) site of astronomical discovery (P65) spectral class (P215) galaxy morphological type (P223) minor planet group (P196)
- capital (P36) basic form of government (P122) legislative body (P194) executive body (P208) highest judicial authority (P209) official language (P37) anthem (P85) currency (P38) head of state (P35) head of government (P6) party chief representative (P210)
- publisher (P123) author (P50) architect (P84) main building contractor (P193) creator (P170) composer (P86) librettist (P87) discoverer or inventor (P61) location of discovery (P189) editor (P98) illustrator (P110) producer (P162) performer (P175) present in work (P1441) from narrative universe (P1080) commissioned by (P88) business division (P199) chief executive officer (P169) item operated (P121) screenwriter (P58) maintained by (P126) operator (P137) owned by (P127) headquarters location (P159) occupant (P466) based on (P144) mascot (P822) home venue (P115) season of club or team (P5138) league (P118) general manager (P505) head coach (P286) has part (P527) victory (P2522) manufacturer (P176) location of creation (P1071) yard number (P617) home port (P504) port of registry (P532) vessel class (P289) aircraft registration (P426) airline hub (P113) airline alliance (P114) space launch vehicle (P375) UTC date of spacecraft launch (P619) Lagrangian point (P1145) type of orbit (P522) organizer (P664) speaker (P823) has program committee member (P5804) director (P57) cast member (P161)
- collection (P195) developer (P178) founded by (P112) platform (P400) operating system (P306) software version identifier (P348)
- heritage designation (P1435) IUCN protected areas category (P814) IUCN conservation status (P141)
- point in time (P585) first flight (P606) service entry (P729) service retirement (P730) start time (P580) inception (P571) publication date (P577) time of discovery or invention (P575) dissolved, abolished or demolished date (P576) discontinued date (P2669) significant event (P793) date of official opening (P1619) date of official closure (P3999) end time (P582)
- powered by (P516) installed capacity (P2109) source of energy (P618)
- regulates (molecular biology) (P128) physically interacts with (P129) measured physical quantity (P111) part of the series (P179)
- gross tonnage (P1093) mass (P2067) beam (P2261) draft (P2262) width (P2049) diameter (P2386) length (P2043) distance from Earth (P2583) height (P2048) horizontal depth (P5524) wavelength (P2808) frequency (P2144) angular resolution (P3439) coastline (P5141) mountain range (P4552) topographic prominence (P2660) topographic isolation (P2659) population (P1082) area (P2046) speed (P2052) cruise speed (P2217) wingspan (P2050) duration (P2047) elevation above sea level (P2044) maximum capacity (P1083) number of graves (P2351) quantity buried (P2324)
- adjacent building (P3032) parent peak (P3137) cause of destruction (P770)
- structure replaces (P1398) structure replaced by (P167) connecting line (P81) adjacent station (P197) origin of the watercourse (P885) mouth of the watercourse (P403) inflows (P200) lake outflow (P201) basin country (P205) tributary (P974) dam (P4792) reservoir created (P4661)lakes on river (P469) follows (P155) followed by (P156) next higher rank (P3730) next lower rank (P3729)
- successful candidate (P991) candidate (P726) electorate (P1831) eligible voters (P1867) ballots cast (P1868) total valid votes (P1697) number of abstentions (P5043) number of blank votes (P5045) number of spoilt votes (P5044)
- user manual URL (P2078) ISO 639-1 code (P218) top-level Internet domain (P78) IATA airport code (P238) ICAO airport code (P239) different from (P1889) said to be the same as (P460) official website (P856) signature (P109) ORCID iD (P496) formatter URL (P1630)
- VIAF ID (P214) GND ID (P227) ISSN (P236) IMDb ID (P345) Joconde work ID (P347) DOI (P356) Rijksmonument ID (P359) PCP reference number (P381) OpenStreetMap relation ID (P402) IMO ship number (P458) MMSI (P587) IUCN taxon ID (P627) NRHP reference number (P649) NCBI taxonomy ID (P685) BHL Page ID (P687) PubMed ID (P698) Historic Scotland ID (P709) P727 (P727) World Heritage Site ID (P757) Kulturminne ID (P758) Czech cultural heritage ID (P762) INE municipality code (P772) Bien de Interés Cultural (BIC) code (P808) WDPA ID (P809) ITIS TSN (P815) Encyclopedia of Life ID (P830) BioLib taxon ID (P838) Fossilworks ID for this taxon (P842) GBIF taxon ID (P846) WoRMS-ID for taxa (P850) PMCID (P932) FishBase species ID (P938) Biblioteca Nacional de España ID (P950) MSW ID (P959) Tropicos ID (P960) IPNI plant ID (P961) MycoBank taxon name ID (P962) PlantList-ID (P1070) ICTV virus ID (P1076) Atlas ID (P1212) National Heritage List for England number (P1216) AlgaeBase URL (P1348) Index Fungorum ID (P1391) GRIN URL (P1421) Cadw Building ID (P1459) kulturnoe-nasledie.ru ID (P1483) Inventari del Patrimoni Arquitectònic de Catalunya code (P1600) SIPA ID (P1700) DGPC ID (P1702) Flora of North America taxon ID (P1727) VASCAN ID (P1745) ZooBank ID for name or act (P1746) Flora of China ID (P1747) Watson & Dallwitz family ID (P1761) USDA PLANTS ID (P1772) GrassBase ID (P1832) Fauna Europaea ID (P1895) conifers.org ID (P1940) LPSN URL (P1991) Plazi ID (P1992) ZooBank publication ID (P2007) Avibase ID (P2026) African Plant Database ID (P2036) GitHub username (P2037) CITES Species+ ID (P2040) Xeno-canto species ID (P2426) Panarctic Flora ID (P2434) Species Profile and Threats Database ID (P2455) BugGuide taxon ID (P2464) BabelNet ID (P2581) New Zealand Organisms Register ID (P2752) Danish listed buildings case ID (P2783) ARKive ID (P2833) COAM structure ID (P2917) BacDive ID (P2946) BVPH publication ID (P2961) EPPO Code (P3031) ButMoth ID (P3060) LepIndex ID (P3064) SIMBAD ID (P3083) Internet Bird Collection species ID (P3099) Flora of Australia ID (old) (P3100) FloraBase ID (P3101) Plantarium ID (P3102) DistroWatch ID (P3112) iNaturalist taxon ID (P3151) Patrimonio Web JCyL ID (P3177) Zaragoza monument ID (P3178) NBN System Key (P3240) World Spider Catalog ID (P3288) Guía Digital del Patrimonio Cultural de Andalucía identifier (P3318) Butterflies and Moths of North America ID (P3398) Calflora ID (P3420) eBird taxon ID (P3444) SIPCA code (P3580) WCSPF ID (P3591) Araneae Spider ID (P3594) Danish ancient monument ID (P3596) BOLD Systems taxon ID (P3606) Naturvårdsregistret ID (P3613) The Met object ID (P3634) Wildflowers of Israel ID (P3746) DOCOMOMO Ibérico ID (P3758) SAHRA heritage site ID (P3759) nature preserve in North Rhine-Westphalia ID (P3974) RKY national built heritage environment ID (P4009) ADW taxon ID (P4024) Czech Monument Catalogue Number (P4075) PalDat plant ID (P4122) CNPS ID (P4194) Bavarian monument authority ID (P4244) Bavarian geotope ID (P4266) PfaF ID (P4301) QEdu ID (P4344) Monumentos de São Paulo ID (P4360) iPatrimônio ID (P4372) Itaú Cultural ID (P4399) ABA bird ID (P4526) BTO five-letter code (P4567) Google Arts & Culture asset ID (P4701) MuBE Virtual ID (P4721) uBio ID (P4728) MONA ID (P4758) Phasmida Species File ID (P4855) Hispania Nostra Red List code (P4868) National Library of Korea ID (P5034) AmphibiaWeb Species ID (P5036) Plants of the World online ID (P5037) IRMNG ID (P5055) HPIP ID (P5094) GONIAT taxon ID (P5216) Tree of Life Web Project ID (P5221) BirdLife taxon ID (P5257) AntWeb ID (P5299) Protected Buildings Register in Finland ID (P5310) Protected Buildings Register in Finland Building ID (P5313) IPHAN ID (P5500) CONDEPHAAT ID (P5525) Belgian Heritage in Brazil ID (P5528) São Paulo: os estrangeiros e a construção da cidade ID (P5950) LUBW Protected Area No (P5965) RegiowikiAT ID (P6228) Bavarian protected area ID (P6230) Berlin protected area ID (P6280) Mecklenburg-Vorpommern protected area ID (P6478) Eliseu Visconti Project ID (P6506) Inventário dos Monumentos RJ ID (P6542) Saxony-Anhalt protected area ID (P6560)
- coordinate location (P625) right ascension (P6257) declination (P6258) date of birth (P569) place of birth (P19) birth name (P1477) date of death (P570) place of death (P20) manner of death (P1196) cause of death (P509) killed by (P157) place of burial (P119) pseudonym (P742) work period (start) (P2031) work period (end) (P2032) floruit (P1317) country of citizenship (P27) country for sport (P1532) residence (P551)
- educated at (P69) doctoral advisor (P184) doctoral student (P185) occupation (P106) sports discipline competed in (P2416)
- member of (P463) member of political party (P102) position held (P39) field of work (P101) movement (P135) ancestral home (P66) native language (P103)
- noble title (P97) title of chess person (P2962) family (P53) father (P22) mother (P25) sibling (P3373) child (P40) spouse (P26) unmarried partner (P451)
- work location (P937) notable work (P800) present in work (P1441) award received (P166)
- VIAF ID (P214) ISNI (P213) Library of Congress authority ID (P244) GND ID (P227) IdRef ID (P269) Bibliothèque nationale de France ID (P268) National Diet Library ID (P349) MusicBrainz artist ID (P434) SELIBR ID (P906) Biblioteca Nacional de España ID (P950) NORAF ID (P1015) NLP ID (unique) (P1695)
- family name (P734) second family name in Spanish name (P1950) given name (P735) sex or gender (P21)
- number of casualties (P1590) number of deaths (P1120) number of missing (P1446) number of injured (P1339)
- mushroom cap shape (P784) hymenium type (P783) hymenium attachment (P785) stipe character (P786) spore print color (P787) mushroom ecological type (P788) edibility (P789) endemic to (P183)
- cost (P2130) budget (P2769) visitors per year (P1174) sponsor (P859)
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: