Jump to content

Nhwɛsoɔ nkitahode:Databox

Page contents not supported in other languages.
Fa atifi asɛm ka ho
Ɛfi Wikipedia
Latest comment: 1 month ago by Danny Benjafield (WMDE) in topic Adding 2 new parameters for Databox

Adding 2 new parameters for Databox

[sesa]

Apologies for posting in English, you can help by translating it

Hello, as per my message at Module Talk: Databox, two new optional parameters to the Databox module have been added. If unused, the Databox behaves exactly as before. If used, they are called when invoking the {{Databox}} template.

Changes

  • useImage= allows you to select which image to use (when there are multiple options)

How to use: {{Databox|useImage=paste the image filename here}}
Example: {{Databox|useImage=example_filename.jpg}}

  • excludeProperties= create a Property+Value exclusion list unique to this article or page.

How to use: {{Databox|excludeProperties=enter any statements you would like to hide from appearing in the databox for this article only, separated by commas.}}
Example: {{Databox|excludeProperties=P7763,P7084}}

Lets you hide specific Property+Value pairs for this article only, useful if the Wikidata item contains properties that aren’t relevant to the current article or page but are still needed elsewhere on the Wiki.

  • Parameters can be combined...

Example: {{Databox|excludeProperties=P123,P456,P78,P9|useImage=example image.jpg}}


The changes are marked in the version history for easy reversion. If you have any concerns or queries, please reach out to me, either reply here or the projects databox changes talk page. Thank you, - Danny Benjafield (WMDE) (Nkitahode beaɛ) 11:49, 1 Ɔpɛnimma 2025 (UTC)Reply