Okay, so, I have an idea for my Fandom site but I have no clue whether or not this is within the website's abilities.
I have a Fandom page of a Belgian tv show. It has over 5000 episodes and my goal is to add 2-3 stills of each episode to the database. Now, I want to make sure every image is utilized, not just the ones that I select. So, I want a random image displayer on the homepage, which changes the image every time you refresh the page. Or for example, when you go to the page Season 7, on top of the page each time you visit it you will see another still of an episode of Season 7.
The image file names of the episodes each contain the metadata of the episode number, and the characters that appear on the image.
So image file names look like this:
Thuis_afl5562_T1_LowieLieselot.jpg
Thuis_afl5562_T2_WaldekEddyVince.jpg
Thuis_afl5563_T1_Waldek.jpg
Thuis_afl5563_T2_TamaraViv.jpg
('afl' is Dutch for 'ep(isode)')
Ideally, I want to see Thuis_afl5562_T2_WaldekEddyVince.jpg appear for example when I refresh the page, with the caption 'Aflevering 5562<br />Waldek, Eddy & Vince'. I think it would be possible to create a template that lists all the image files and use a Python environment to bulk add the captions to that template, so when the image generator selects one of the lines in the template, it will simply use the caption that is already there. So I would create a template that looks like this:
Thuis_afl5562_T1_LowieLieselot.jpg{{!}}Aflevering 5562<br />Lowie & Lieselot
Thuis_afl5562_T2_WaldekEddyVince.jpg{{!}}Aflevering 5562<br />Waldek, Eddy & Vince
Thuis_afl5563_T1_Waldek.jpg{{!}}Aflevering 5563<br />Waldek
Thuis_afl5563_T2_TamaraViv.jpg{{!}}Aflevering 5563<br />Tamara & Viv
However, then I still have to get the random line selection going, and I have no clue if that is possible.
Anyone that knows how to do this? Seems like a fun project, thought I'd ask in here! Thanks in advance, guys.