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 CustomInfo function with the following syntax: DataInsert("pagename","custom name","custom image", [=[custom description]=])

Custom Name
DataInsert("PAGENAME","Custom Name","", [=[]=])

Custom Image
DataInsert("PAGENAME","","image.png", [=[]=])

Custom Description
DataInsert("PAGENAME","","", [=[The automated description is bad so here's my custom one]=])