Module:RandomArticle

local p = {}

F = {} L = {} D = {} N = {} count = 0

function ArtistInsert(File, Link, Description, Name) table.insert(F, File) table.insert(L, Link) table.insert(D, Description) table.insert(N, Name) count = count + 1 end

--======================== DATA INSERT: Syntax: ArtistInsert('image','Link',Description,'Name') ========================

function PopulateBand ArtistInsert('X JAPAN.jpg','X JAPAN',X JAPAN is a Japanese rock band from Chiba formed in 1982, and widely credited as one of the pioneers of Visual Kei. They have won multiple awards such as the Best Metal Band from Japan by Loudwire, and the 100 most important Japanese pop acts in 2003.,'X JAPAN') ArtistInsert('The GazettE.jpg','The GazettE',the GazettE is a Visual Kei band created in Kanagawa 2002, they are known as one of the biggest Visual Kei bands in Japan. They have multiple World tours and prefecture tours in the bag, as well as a large discography. They formerly were signed to PS Company but have gone on to create HERSEY inc.,'The GazettE') ArtistInsert('King Gnu.jpg','King Gnu',King Gnu (キングヌー) is a nu-jazz and alternative rock band from Tokyo formed in 2013, they made their major debut in 2017 with their studio album Tokyo Rendez-Vous. They gained popularity after performing the ending theme for the anime Banana Fish and their hit-song Hakujitsu.,'King Gnu') ArtistInsert('Mrs green apple attitude.jpg','Mrs. GREEN APPLE',Mrs. GREEN APPLE (ミセスグリーンアップル) is a 5-member Japanese rock band from Tokyo formed in 2013, they made their major debut in 2015 with EMI Records. They are known for performing the theme to the anime series Yu-Gi-Oh! Arc-V and Fire Force, as well as their first full album, TWELVE, which placed 10th on the Japanese national Oricon charts.,'Mrs. GREEN APPLE') ArtistInsert('MWAM.jpg','MAN WITH A MISSION',MAN WITH A MISSION is a 5-member rock band with their distinguishing wolf masks. According to their back-story, they are an artificial life form created by Jimi Hendrix to play instruments. Their music style has been described as hard rock and dance rock, and many of their singles have been used as theme songs for a variety of anime, live-action movies, and video games.,'MAN WITH A MISSION') --ArtistInsert(,,,'') end

function PopulateSoloist --ArtistInsert(,,,'') end

function PopulateGroup ArtistInsert('EKHdbCpUwAEwyPG.jpg','CY8ER',CY8ER is a "new age vocal & DJ unit." the founding member Rinahamu serves as the producer and lyricist with Yunomi doing the music, they won Ai Odorisai 2017 ~Idol Matsuri~ in their block. They'll make their Major Debut in January 2020.,'CY8ER') ArtistInsert('LGM12-2019.jpg','Little Glee Monster',Little Glee Monster is a J-Pop girl group consisting of 5 singers known for their powerful vocals that were formed in late 2013. Their Music videos often feature acustic singing parts showcasing their strong voices, they have been featured on MTV Unplugged.,'Little Glee Monster') --ArtistInsert(,,,'') end

function PopulateArtist PopulateBand PopulateGroup PopulateSoloist end

--================================================ Module functions ================================================

--Pattern from Template:FAid pattern = [==[{|style=%"height:20px" cellpadding="2" style="float:right; border: 1px solid gray" width="100%" !colspan=1 bgcolor="primarycolor" align="center" colspan="8"| titleplaceholder
 * align="center" bgcolor="primarycolor" width="160px" | fileplaceholder
 * align="left" valign="top" bgcolor="backgroundcolor"|
 * descplaceholder
 * ...Read more about nameplaceholder
 * ...Read more about nameplaceholder


 * }]==]

function p.BuildFAid(title) math.randomseed(os.time) index = math.random(count) size = '250px' primarycolor = '#e15467' backgroundcolor = '#ffffff' pattern = pattern:gsub('primarycolor', primarycolor) pattern = pattern:gsub('backgroundcolor', backgroundcolor) pattern = pattern:gsub('titleplaceholder', title) pattern = pattern:gsub('fileplaceholder', F[index]) pattern = pattern:gsub('sizeplaceholder', size) pattern = pattern:gsub('linkplaceholder', L[index]) pattern = pattern:gsub('descplaceholder', D[index]) pattern = pattern:gsub('nameplaceholder', N[index]) return pattern end

function p.GetBand PopulateBand if(count > 0) then return p.BuildFAid('Featured Band') end end

function p.GetGroup PopulateGroup if(count > 0) then return p.BuildFAid('Featured Group') end end

function p.GetSoloist PopulateSoloist if(count > 0) then return p.BuildFAid('Featured Soloist') end end

function p.GetArtist PopulateArtist if(count > 0) then return p.BuildFAid('Featured Artist') end end return p