Module talk:Databox
Pahimi yaɣiliRequest to collaborate on adding new Databox improvements
[mali mi di yibu sheena n-niŋ]Apologies for posting in English, you can help spread the message by translating it.
Hello, I am trying to get in touch with someone who can edit this page. I’m writing on behalf of the Wikidata for Wikimedia Projects development team at Wikimedia Deutschland.
We’re currently working on extending the Databox with a few new parameters — including options for a local blacklist (to exclude specific statements) and for selecting which image (P18) will be displayed.
What we are requesting:
- Please go to this page: Databox:Code changes and copy the code there.
- Return to the Module:Databox page, enter edit source, and replace the code with the newly-copied code.
- Save the page with an edit summary like "Replaced code with Databox changes from Databox:Code changes".
(This will make it easier for future editors to revert the changes if desired)
Since the module on this wiki is protected (an effect of being invoked on these Protected pages: Alfaatiha, Alikuraan) we can’t directly add our proposed changes for testing or review.
I’m happy to provide full details of the planned updates, including the code, documentation, and examples of how the new parameters work.
Thank you very much for your time and help! -Danny Benjafield (WMDE) (Yɛltɔɣa) 13:01, 6 Silimin gɔli November 2025 (GMT)
Databox has 2 new parameters
[mali mi di yibu sheena n-niŋ]The LUA code in this module contains 2 additional parameters:
useImageexcludeProperties
How to use
Both parameters can be included when invoking the databox template: {{Databox}}
useImage={{Databox|useImage=add the P18 (image) filename here}}excludeProperties={{Databox|excludeProperties=add comma-separated property ID's here (P105,P171)}}
Parameter behaviour
Both parameters when used will make changes to the invoked databox at the local page level.
They do not affect any other Databoxes on the wiki.
useImage:This parameter allows the local databox to choose which image of the item's P18 files to display.
A Wikidata item can have multiple files for its property Image (P18). By default, only the most recently uploaded (or Preferred) file will be displayed when a databox is invoked.
excludeProperties:This parameter allows the local databox to exclude additional properties from being included in the current databox.
Databox code already contains a global list of properties to exclude from displaying, this exclusion list affects all databoxes on the current wiki. Adding or removing properties of the code at Module:Databox will affect all databoxes currently displayed and any future ones. Editors' may want to have more control over what data/properties are shown for individual databoxes to stop it from becoming too long or containing irrelevant data for the current article, page or topic.
Databox - additional Parameters - More information about these parameters can be found here.
User Talk: Databox - additional Parameters - Questions and feedback about these parameters are welcome here (or as a reply to this topic).
Thank you, - Danny Benjafield (WMDE) (yɛlmi yaɣilitɔŋsatarili) 09:56, 11 December 2025 (UTC) Danny Benjafield (WMDE) (Yɛltɔɣa) 10:22, 11 Silimin gɔli December 2025 (GMT)