Wikidata:Client modules

From Wikidata
Jump to navigation Jump to search
Client modules
This page is a list of modules you can use to get data from Wikidata on your wiki. If you have written a client module, then just add it to this list. Please note that some client modules can not get data from items that are not connected to the current page.

General modules[edit]

Wikidata[edit]

by Tpt and Aude

Formats statements for a specific property of an item connected to the current page. This formatting can be done in three ways:

  1. specifying separators and conjunctions.
  2. Specify what module and what function within that module should be used to format the statement.
  3. Specifying what pattern should be used to format the statement.

Additionally, this module has options to filter statements according to their ranks, output all values or only one value.

How to use
  1. Copy the text of the module to a "Module:Wikidata" page on your wiki.
  2. Create an template with the text "{{#invoke:Wikidata|formatStatements}}".

To translate the error messages to your language, then translate the sentences in an section at the beginning of the module.

Wikibase[edit]

by Aude

Basic script, with three options.

  1. id: Gives the id of the item connected to the current page (the QXXX number).
  2. label: Gives the label of the item connected to the current page in the language of the wiki the module is on.
  3. page: Gives the title of the current page, by fetching it from wikidata.

Those three options are used by writing down different function names

How to use
  1. Copy the text of the module to your wiki.
  2. Create an template with the text "{{#invoke:Wikibase|function}}", and replace the word function for the option you would like to use - either id, label or page.

WikidataCheck[edit]

by Happy5214

Compares a template parameter to a property in Wikidata. Template parameters that do not match the property can be categorised.

How to use
  1. Copy the text of the module to your wiki.
  2. Create an template with the text "{{#invoke:WikidataCheck|wikidatacheck}}".

Specific modules[edit]

Taxobox[edit]

by ערן

This module creates an automatic taxobox. It works by getting the p405 property from wikidata and decides from that what taxonomic information applies.

How to use
  1. Copy the text of the module to your wiki.
  2. Create a template with the text "{{#invoke:Taxobox|taxobox}}".