Wikidata:Client modules
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
editFormats statements for a specific property of an item connected to the current page. This formatting can be done in three ways:
- specifying separators and conjunctions.
- Specify what module and what function within that module should be used to format the statement.
- 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
- Copy the text of the module to a "Module:Wikidata" page on your wiki.
- 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.
by Aude
Basic script, with three options.
- id: Gives the id of the item connected to the current page (the QXXX number).
- label: Gives the label of the item connected to the current page in the language of the wiki the module is on.
- 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
- Copy the text of the module to your wiki.
- 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.
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
- Copy the text of the module to your wiki.
- Create an template with the text "{{#invoke:WikidataCheck|wikidatacheck}}".
Specific modules
editby ערן
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
- Copy the text of the module to your wiki.
- Create a template with the text "{{#invoke:Taxobox|taxobox}}".