Module:RandomArticle/doc

Description
Module used to display random articles in Main Page.

This module picks a random page within a list of pages each time the page is loaded. Having selected a page, the module will then load its content and find an image and a description in it automatically. This info will then be displayed in an infocard at the front page of the wiki.

Dependencies
This module uses Template:Infocard to display its output, and uses data stored in Module:RandomArticle/Groups and Module:RandomArticle/Soloists.

Data Maintenance
This module loads text files containing the names of all pages in the categories Groups, Bands, and Soloists as of May 5, 2023, 11:55AM GMT-3. These text files are not dynamic and need to be updated from time to time. The data in these files were generated with a Python script using MediaWiki Action API.

Adding custom info
If you believe the auto retrieved description/name/image of a page is not good enough, you can edit the module to include custom information that will be loaded instead of the auto retrieved data. Entries are added in the custom_info table with the following syntax: ["PAGENAME"] = {name = "custom name", image = "custom image", description = [=[custom description]=]},

Custom Name
["PAGENAME"] = {name = "Custom Name", image = "", description = [=[]=]},

Custom Image
["PAGENAME"] = {name = "", image = "my_image.png", description = [=[]=]},

Custom Description
["PAGENAME"] = {name = "", image = "", description = [=[The automated description is bad so here's my custom one.]=]},