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, Module:RandomArticle/Bands, 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 January 2, 2023, 4:36PM 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. While I (D4rkWzd, developer of this module) could keep these files updated if I wanted, my plan is to update them once a year.

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