Lotí ogba ogbolo

Module talk:Databox

Page contents not supported in other languages.
Add topic
Ákwí Wikipídiya
Omù úkólò etitò: 22 days ago nwí Danny Benjafield (WMDE) efù ojí óla Databox has 2 new parameters

Databox has 2 new parameters

[nwó étéwn che]

/ Sorry for posting in English, you can help by translating it /

The LUA code in this module contains 2 additional parameters:

  • useImage
  • excludeProperties

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 only affect the Databoxes they have been invoked on.

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

  • From Wikidata link and Wikidata icon: make clearer to readers and editors that the data and information presented in the databox is sourced from Wikidata (as it won't be shown in the edit screen), and can navigate them to the top of the Wikidata item.

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) (úkọ̀lá) 15:03, 26 ochu ajodudu 2026 (WAT)Oyí