Template:Databox

From Wikidata
Jump to navigation Jump to search
Documentation icon Template documentation[view · edit · history · purge ]


This module provides an as simple as possible infobox system based on Wikidata.

An introductory presentation of Databox, given at the Wikidata Reuse Days 2022

It is fully automated, does not require any configuration to be used and does not have any declination based on the type of entity (person, place...).

How does it work?

This module is the backend code of the Databox template.

It uses the Wikidata item linked to the current page or the item which id is filled into the item parameter to automatically build an infobox.

Its basic algorithm is:

  • Use the label of the item or, if none exists, the title of the page for the infobox title.
  • Use the value of image (P18) for the main image.
  • Use the value(s) of instance of (P31) for the data table title.
  • Take all the properties used by the item, sort them according to MediaWiki:Wikibase-SortedProperties, and for each one:
    • If the property has the datatype External identifier, Commons media file or Quantity[a 1], do not display anything.
    • If the property is in the property_blacklist array of the module, do not display anything (it is done in order to filter properties not very relevant for displaying in infoboxes).
    • If the property has more than 5 values do not display anything (to avoid long lists in the infobox).
    • Use default Wikibase rendering system to display the values that have the "best" rank (i.e. the values with the rank "preferred", if some exists, and, if not, the ones with the rank "normal").
  • If there is value for coordinate location (P625), then display a map using Kartographer.

Notes

  1. The current display of quantities by Wikibase is very limited, this filter should be removed after improvements

How to use it in your wiki?

  1. Copy the code of Module:Databox in a module page in your wiki named Module:Databox.
  2. Add the created module page to the sitelinks of Q53931871.
  3. Create Template:Databox in your wiki with the wikitext: {{#invoke:Databox|databox}}.
  4. Add the created template page to the sitelinks of Q20702632.
  5. At this point if you add {{Databox}} to an existing article connected to a Wikidata item it should work.
  6. Write an help page in your language

Examples

Early Modern Swedish
Language Edit
Dead language Edit
Subclass ofNorth Germanic
 • East Scandinavian
  • Modern Swedish Edit
ChronologyRunic Swedish
Early Old Swedish
Late Old Swedish

Early Modern Swedish Edit

Late Modern Swedish
Contemporary Swedish Edit
Start time1526 Edit
End time1750 Edit
Lucy
Female given name Edit
Female given name Edit
Part ofLucy Edit
Latvian transc­rip­tionLūsija Edit
IPA transc­rip­tionˈluːsi Edit
Name dayDecember 13 Edit
Family name identical to this given nameLucy Edit
Given name version for other genderLucius Edit
Language of work or nameEnglish, Dutch Edit
Writing systemLatin script Edit
SoundexL200 Edit
Cologne phonetics58 Edit
Caverp­ho­neLS1111 Edit
Attested infrequency of first names in the Netherlands, 2010 Edit
Ethanol
Chemical compound Edit
Type of chemical entity Edit
Subclass offatty alcohol, alkanol Edit
Has usepolar protic solvent, medication, solvent Edit
Mass46.042 dalton Edit
Has effectethanol exposure, intoxication Edit
Conjugate baseethoxide Edit
Chemical formulaC₂H₆O Edit
Canonical SMILESCCO Edit
Ioni­za­tion energy10.47±0.01 electronvolt Edit
Electric dipole moment1.69 debye Edit
Specific heat capacity13.444 joule per mole kelvin Edit
Standard enthalpy of formation−277.6±0.1 kilojoule per mole, −234.8±0.1 kilojoule per mole Edit
Com­bus­tion enthalpy−1,367 kilojoule per mole Edit
Standard molar entropy160.7±0.1 joule per mole kelvin, 281.6±0.1 joule per mole kelvin Edit
Density790±10 kilogram per cubic metre Edit
Melting point−173±1 degree Fahrenheit, −114 degree Celsius, −114.1 degree Celsius Edit
Boiling point173±1 degree Fahrenheit, 79 degree Celsius, 78.29 degree Celsius Edit
Vapor pressure44±1 millimetre of mercury, 58 hectopascal Edit
Speed of sound1,162±1 metre per second Edit
PKa16±0.01 Edit
Ref­rac­ti­ve index1.3611 Edit
Crystal systemmonoclinic crystal system Edit
Point groupmonoclinic-domatic Edit
Space groupspace group Pn Edit
Flash point55±1 degree Fahrenheit, 12 degree Celsius Edit
Autoig­ni­tion tem­pe­ra­tu­re363 degree Celsius Edit
Lower flammable limit3.3±0.1 volume percent Edit
Upper flammable limit19±1 volume percent Edit
Safety clas­si­fi­ca­tion and labellingNFPA 704: Standard System for the Identification of the Hazards of Materials for Emergency Response, Regulation (EC) No. 1272/2008 Edit
UN class3 Edit
UN packaging groupII Edit
NIOSH Pocket Guide ID0262 Edit
TWAEL1,900±1 milligram per cubic metre Edit
Imme­dia­te­ly dangerous to life or health6,237±1 milligram per cubic metre Edit
Active ing­re­dient inalcoholic beverage Edit
Phy­si­cal­ly interacts with5-hydroxytryptamine (serotonin) receptor 3A, Potassium inwardly-rectifying channel, subfamily J, member 3, Potassium inwardly-rectifying channel, subfamily J, member 5 Edit
Has cha­rac­te­ris­tichygroscopy, Class IB flammable liquid Edit
Subject has rolelocal anti-infective agent, depressant Edit
Has part(s)hydrogen, oxygen, carbon Edit
Hubble Space Telescope
NASA and ESA space telescope (launched 1990) Edit
Hubble after release from Space Shuttle Atlantis during STS-125/Servicing Mission 4. Edit
Space telescope Edit
Part ofGreat Observatories program Edit
Native labelHubble Space Telescope Edit
Short nameHST Edit
Named afterEdwin Hubble Edit
Mass12,247 kilogram Edit
Followed byCompton Gamma Ray Observatory, James Webb Space Telescope Edit
Country of originUnited States of America Edit
Service entry20 May 1990 Edit
Manu­fac­tu­rerLockheed Martin Missiles and Space, PerkinElmer Edit
Powered byspacecraft solar array, nickel–hydrogen battery Edit
Focal length57.6 metre Edit
DeveloperMarshall Space Flight Center, Goddard Space Flight Center Edit
Start pointKennedy Space Center Launch Complex 39B Edit
Space launch vehicleSpace Shuttle Edit
OperatorGoddard Space Flight Center, Space Telescope Science Institute Edit
Launch cont­rac­torRockwell International Edit
UTC date of spa­cec­raft launch24 April 1990 Edit
Time of object orbit decay2030s Edit
Parent ast­ro­no­mi­cal bodyEarth Edit
Apoapsis524.2 kilometre Edit
Periapsis520.1 kilometre Edit
Type of orbitlow Earth orbit Edit
Orbital eccent­ri­ci­ty0.0002968 Edit
Orbital inc­li­na­tion28.468 degree Edit
Orbital period95.07 minute Edit
Semi-ma­jor axis of an orbit6,900.3 kilometre Edit
Length13.25 metre Edit
Area4.525 square metre, 0.0754 square metre Edit
Diameter4.2 metre, 2.40 metre, 0.31 metre Edit
EpochOctober 28, 2023 Edit
FunderNational Aeronautics and Space Administration, European Space Agency Edit
Official website URLhubblesite.org Edit
4 Vesta
Second largest asteroid of the main asteroid belt Edit
Asteroid Edit
Named afterVesta Edit
Mass2,590.76±0.01 exagram Edit
ChronologyCeres
2 Pallas
3 Juno

4 Vesta Edit

5 Astraea
6 Hebe
7 Iris Edit
Sig­ni­fi­cant eventnaming Edit
Dis­co­ve­rer or inventorHeinrich Wilhelm Olbers Edit
Time of discovery or invention29 March 1807 Edit
Site of ast­ro­no­mi­cal discoveryBremen Edit
Minor planet groupasteroid belt Edit
Parent ast­ro­no­mi­cal bodySun Edit
Apoapsis2.573193867116444±0.0000000017091 astronomical unit Edit
Periapsis2.150650299541145±0.0000000020172 astronomical unit Edit
Argument of periapsis151.6622800356213±0.00000018544 degree Edit
Orbital eccent­ri­ci­ty0.08944909117827099±0.00000000025002 Edit
Orbital inc­li­na­tion5.56 degree, 7.142176968213055±0.00000021708 degree Edit
Orbital period1,325.857278061479±0.0000013209 day Edit
Rotation period5.34212766±0.00000001 hour Edit
Semi-ma­jor axis of an orbit2.361922083328795±0.0000000015688 astronomical unit Edit
Longitude of ascending node103.7099923672372±0.00000038868 degree Edit
Mean anomaly169.3518013373338±0.0000016356 degree Edit
Asteroid familyVesta family Edit
Asteroid spectral typeV-type asteroid Edit
Apparent magnitude5.1 Edit
Absolute magnitude3.22 Edit
Albedo0.4228 Edit
Density3.456±0.035 gram per cubic centimetre Edit
Tem­pe­ra­tu­re85 kelvin, 270 kelvin Edit
Length572.6±0.2 kilometre Edit
Width557.2±0.2 kilometre Edit
Height446.4±0.2 kilometre Edit
Area866,000±20,000 square kilometre Edit
Volume as quantity74,600,000±3,000,000 cubic kilometre Edit
Radius262.7±0.1 kilometre Edit
Diameter525.4±0.2 kilometre Edit
EpochSeptember 13, 2023 Edit
Surface gravity0.22 metre per square second Edit
Time of periapsis2,459,576.788004567±0.0000054024 Julian day Edit
Pro­vi­sio­nal desig­na­tionA807 FA Edit
Atheism
Absence of belief in the existence of deities; the opposite of theism Edit
World view, philosophical movement, doxastic attitude Edit
Subclass ofirreligion Edit
Has cha­rac­te­ris­ticunbelief Edit
Opposite oftheism Edit
Practiced byatheist Edit
Has part(s)Marxist‒Leninist atheism, New Atheism Edit
Iron Man
2008 film directed by Jon Favreau Edit
Film Edit
TitleIron Man Edit
Based onIron Man Edit
SeriesMarvel Cinematic Universe Edit
Main subjectterrorism, business ethics, computer, industrialist, inventor, ammunition, technology, business magnate Edit
Genreaction film, science fiction film, adventure film, superhero film Edit
PerformerLauren Scyphers, Stacy Stas Hurst Edit
Country of originUnited States of America Edit
Original languageEnglish Edit
Pub­li­ca­tion date2 May 2008 Edit
Sig­ni­fi­cant eventprincipal photography, première Edit
DirectorJon Favreau Edit
Screenw­ri­terMark Fergus, Hawk Ostby, Art Marcum, Matt Holloway Edit
Executive producerPeter Billingsley, Jon Favreau, Stan Lee, David Maisel, Louis D'Esposito, Ari Arad Edit
Director of pho­tog­rap­hyMatthew Libatique Edit
Film editorDan Lebental Edit
Pro­duc­tion designerJ. Michael Riva Edit
Costume designerLaura Jean Shannon, Rebecca Bentjen Edit
ComposerRamin Djawadi Edit
ProducerAvi Arad, Kevin Feige Edit
Pro­duc­tion companyMarvel Studios, Paramount Pictures Edit
Dist­ri­bu­ted byParamount Pictures, Disney+, Walt Disney Studios Motion Pictures Edit
Soundt­rack releaseIron Man Edit
Set in period2008 Edit
Narrative locationAfghanistan, Los Angeles, Kunar Edit
Duration126 minute Edit
Aspect ratio (W:H)2.39:1 Edit
Colorcolor Edit
Review score94%, 7.7/10, 79/100 Edit
Box office585,366,247 United States dollar Edit
Cost140,000,000 United States dollar Edit
Takes place in fictional universeMarvel Cinematic Universe Edit
Dist­ri­bu­tion formatdigital download, video on demand Edit
Atten­dan­ce1,315,743 Edit
BBFC rating12A certificate Edit
ClassInd rating12 Edit
CNC film rating (France)no age restriction Edit
Filmiroda ratingCategory II Edit
FPB rating10 Edit
FSK film ratingFSK 12 Edit
ICAA ratingNot recommended for children under 7 Edit
JMK film ratingfree from 12 years Edit
Kijk­wij­zer rating12 Edit
MPA film ratingPG-13 Edit
RTC film ratingB Edit
Assess­mentBechdel test, reverse Bechdel Test Edit
IMDA ratingPG Edit
Medie­rå­det ratingFor ages 11 and up Edit
RCQ clas­si­fi­ca­tionG Edit
IFCO rating12A Edit
MTRCB ratingParental Guidance Edit
Official website URLwww.marvel.com/movies/iron-man Edit
IMDb IDtt0371746 Edit
Airbus
European aircraft manufacturer Edit
Business, enterprise Edit
Industryaircraft and space construction Edit
Inception18 December 1969, 1970 Edit
Founded byRoger Béteille, Felix Kracht, Henri Ziegler, Franz Josef Strauß Edit
CEOGuillaume Faury Edit
Motto textWe make it fly Edit
CountryNetherlands Edit
Member ofAerospace Valley, GIFAS, Linux Foundation, CVE Numbering Authority, Association of German Airports Edit
Legal formsociété par actions simplifiée Edit
Total assets111,130,000,000 euro Edit
Total equity3,650,000,000 euro Edit
Total revenue11,050,000,000 United States dollar Edit
Net profit2,873,000,000 Edit
Operating income4,253,000,000 euro Edit
Location of formationFrance Edit
Parent orga­ni­za­tionAirbus Group Edit
HQBlagnac, Toulouse Edit
Employees80,895 Edit
IPv6 routing prefix2a00:6fc0:10::/44, 2a00:6fc0:690::/44, 2a00:6fc0:c010::/44 Edit
Egapro gender equality index89, 88, 88 Edit
Official website URLlink Edit
ICAO airline desig­na­torAIB Edit
Esperanto
International auxiliary language designed by L. L. Zamenhof Edit
Planned language, international auxiliary language, a posteriori language, constructed language, modern language Edit
Inception26 July 1887 Edit
Has usesecond language, lingua franca Edit
Named afterDoktoro Esperanto Edit
MovementEsperanto movement Edit
AnthemLa Espero Edit
CultureEsperanto culture Edit
CountryEsperantujo Edit
Location of formationWarsaw Edit
Studied inEsperantology, interlinguistics Edit
Foun­da­tio­nal textUnua Libro Edit
ChronologyProto-Esperanto

Esperanto Edit

CreatorL. L. Zamenhof Edit
Country of originRussian Empire, Poland Edit
Inf­luen­ced byGreek, Latin, English, Polish, Yiddish, Russian, German, French Edit
Sig­ni­fi­cant eventWorld Esperanto Congress 1905, World Esperanto Congress 1987 Edit
Lin­guis­tic typologyfree-order language, nominative–accusative language, agglutinative language, isolating language, subject–verb–object Edit
Has gram­ma­ti­cal caseaccusative case, nominative case Edit
Has tensepresent tense, past tense, future tense Edit
Has gram­ma­ti­cal moodinfinitive, conditional, volitive Edit
Writing systemLatin script Edit
Uses capi­ta­li­za­tion forfull name, toponym Edit
Language regu­la­to­ry bodyAcademy of Esperanto Edit
Signed formSignuno Edit
Number of speakers, writers, or signers2,000,000±1,000,000 Edit
Eth­no­lo­gue language status3 Wider Communication Edit
Dis­co­ve­rer or inventorL. L. Zamenhof Edit
Flagflag of Esperanto Edit
Used byEsperantist Edit
Dedicated heritage entityMuseo de Esperanto de Subirats, International Esperanto Museum in Zaozhuang, Department of Planned Languages and Esperanto Museum, Hungarian Museum of Esperanto, Esperanto Museum in Svitavy, Nacia Esperanto-Muzeo, Gray Edit
Wikimedia language codeeo Edit
Berlin
Federated state, capital and largest city of Germany Edit
Part ofBerlin-Brandenburg Metropolitan Region, agglomeration of Berlin Edit
Inception1244 Edit
IPA transc­rip­tionbərˈlɪn, bɛʁ.lɛ̃ Edit
Ranking9 Edit
Archives atLandesarchiv Berlin Edit
Official languageGerman Edit
ContinentEurope Edit
CountryGermany Edit
Capital ofGermany Edit
Located in the admi­nis­tra­ti­ve ter­ri­to­rial entityGermany Edit
Located in time zoneCentral European Standard Time (GMT+1) Edit
Enclave withinBrandenburg Edit
Coor­di­na­tes52°31′0″N 13°23′0″E Edit
Coor­di­na­tes of eas­tern­most point52°26′16″N 13°45′40″E Edit
Coor­di­na­tes of nort­hern­most point52°40′31″N 13°28′46″E Edit
Coor­di­na­tes of sout­hern­most point52°20′19″N 13°38′53″E Edit
Coor­di­na­tes of wes­tern­most point52°25′11″N 13°5′18″E Edit
Geoshapelink Edit
Highest pointArkenberge Edit
Office held by head of govern­mentGoverning Mayor of Berlin Edit
Head of govern­mentKai Wegner Edit
Legis­la­ti­ve bodyAbgeordnetenhaus of Berlin Edit
Highest judicial authorityConstitutional Court of the State of Berlin Edit
Member ofClimate Alliance, Mayors for Peace, IT Planning Council, Creative Cities Network, C40 Cities Climate Leadership Group, World Tourism Cities Federation Edit
Public holidayInternational Women's Day Edit
Popu­la­tion3,755,251 Edit
Male popu­la­tion1,792,801 Edit
Female popu­la­tion1,852,025 Edit
Elevation above sea level34±1 metre Edit
Twinned admi­nis­tra­ti­ve bodyKyiv Edit
Shares border withBrandenburg Edit
ReplacesAlt-Berlin, East Berlin Edit
Language usedGerman, Berlin German Edit
Sig­ni­fi­cant eventFall of Berlin, 1936 Summer Olympics, Soviet Airstrike Against Berlin in 1941, Battle of Berlin, fall of the Berlin Wall, Landesbank Berlin scandal Edit
Award receivedFührerstadt, City of Design, Princess of Asturias Award for Concord Edit
Budget28,000,000,000 euro Edit
Connects withEuropean route E55 Edit
Area891.12 square kilometre Edit
Postal code10115–14199 Edit
Flagflag of Berlin Edit
Coat of armscoat of arms of Berlin Edit
Geography of topicgeography of Berlin Edit
Open data portalBerlin Open Data Edit
Economy of topiceconomy of Berlin Edit
Demog­rap­hics of topicdemographics of Berlin Edit
District heating gridBerliner Fernwärmenetz Edit
Category for honorary citizens of entityCategory:Honorary citizens of Berlin Edit
Time of earliest written record1237, 1244 Edit
Vehicles per thousand people344 Edit
Official website URLlink Edit
Local dialing code030 Edit
Licence plate codeB Edit
Map
Douglas Adams
English author and humourist (1952–2001) Edit
Portrait of Douglas Adams Edit
Human Edit
Sex or gendermale Edit
Country of citi­zens­hipUnited Kingdom Edit
Birth nameDouglas Noël Adams Edit
Given nameDouglas, Noël Edit
Family nameAdams Edit
PseudonymDavid Agnew Edit
Short nameDouglas Adams Edit
Date of birth11 March 1952 Edit
Place of birthCambridge Edit
Date of death11 May 2001 Edit
Place of deathSanta Barbara Edit
Manner of deathnatural causes Edit
Cause of deathmyocardial infarction Edit
Place of burialHighgate Cemetery Edit
FatherChristopher Douglas Adams Edit
MotherJanet Adams Edit
SiblingSusan Adams Edit
SpouseJane Belson Edit
ChildPolly Adams Edit
Native languageEnglish Edit
Languages spoken, written or signedEnglish Edit
Writing languageEnglish Edit
Occu­pa­tionplaywright, screenwriter, novelist, children's writer, science fiction writer, comedian, writer, musician Edit
FOWscience fiction literature Edit
EmployerBBC, The Digital Village Edit
Educated atBrentwood School, St John's College Edit
ResidenceLondon, Brentwood Edit
Work locationLondon Edit
Ethnic groupWhite British Edit
Religion or worldviewatheism Edit
Eye colorbrown Edit
Inst­ru­mentguitar Edit
Notable workThe Hitchhiker's Guide to the Galaxy pentalogy, Dirk Gently series, The Private Life of Genghis Khan Edit
Archives atSt John's College Library Edit
Member ofFootlights, Groucho Club Edit
Genrescience fiction, comedy, satire Edit
Award receivedInkpot Award, Ditmar Award Edit
Nominated forHugo Award for Best Dramatic Presentation, Locus Award for Best Science Fiction Novel Edit
Height1.96 metre Edit
Official website URLdouglasadams.com Edit
IMDb IDnm0010930 Edit
Douglas Adams' gravestone Edit

See also