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 (desktop version) and Template:Infocard/mobile (mobile version) 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 and Soloists as of January 5, 2023, 1:00PM GMT-3. The data in these files were acquired using MediaWiki Action API and formatted using a Python script. These text files are not dynamic and need to be updated from time to time.

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.]=]},