Wikidata - Wikisource Integration Modules

Overview and Background
The following documentation helps you to deploy various MediaWiki modules and configure a bot, that will help your Wikisource to retrieve a book's metadata from existing data on Wikidata and display it on your Wikisource. For example, this index page on Punjabi Wikisource, is displaying the title, author, translator, publisher, address, and year, information from its respective Wikidata item. The following the pages and their respective functions;
 * Modules
 * MediaWiki:Proofreadpage index data config: Data configuration presentation for index pages.
 * MediaWiki:Proofreadpage index template: Interface text for index pages.
 * Module:Index data: To retrieve data from Wikidata.
 * Module:Index template: To display the retrieved data on the index page form.
 * A significant part of the modules was written by Tpt from French Wikisource, and further improvements made by Bodhisattwa from Bengali Wikisource, and Tshrinivasan as part of the WikiCite Project Grant.


 * Bot
 * [LINK TO THE BOT]: While the above modules retrieve data from Wikidata and display it on the index pages, they work only after the respective Wikidata QIDs are added to the index page form, which has to be done manually. The bot helps to automate the process of adding Wikidata QIDs to the index pages, to an extent. With the help of the index page, the bot traces the main pages of books and then their linked Wikidata items.
 * The bot has been programmed by Tshrinivasan as part of the WikiCite Project Grant.

Step 1: Proofreadpage index data config
{{Codesample| {   "Type": { "type": "string", "size": 1, "default": "book", "label": "Type", "header": true, "values": { "book": "Book", "journal": "Journal", "collection": "Collection", "phdthesis": "Phdthesis", "dictionary": "Dictionary", "film": "Film", "audio": "Audio" },       "help": "Select the type of the book", "data": "type" },   "wikidata_item": { "type": "wikibase-itemid", "size": 1, "default": "", "label": "Wikidata Item", "header": true, "data": "wikibase-itemid" }, }}
 * lang=json
 * name=MediaWiki:Proofreadpage index data config
 * highlight=20-27
 * line = yes
 * code=

Step 2: Proofreadpage index template
{{Codesample| {   "Type": { "type": "string", "size": 1, "default": "book", "label": "Type", "header": true, "values": { "book": "Book", "journal": "Journal", "collection": "Collection", "phdthesis": "Phdthesis", "dictionary": "Dictionary", "film": "Film", "audio": "Audio" },       "help": "Select the type of the book", "data": "type" },   "wikidata_item": { "type": "wikibase-itemid", "size": 1, "default": "", "label": "Wikidata Item", --Please translate/transliterate the text "Wikidata Item" into your language. "header": true, "data": "wikibase-itemid" }, }}
 * lang=lua
 * title=MediaWiki:Proofreadpage index data config
 * highlight=20-27
 * line = yes
 * code=