Some of you may have noticed the sudden influx of images containing the words "main page" in their names. As you can guess, I'm currently working on a major restructure of the wiki's main page. Without going into too much detail, it's tacky and non-responsive, and it is a complete mess on the mobile skin. Because it is that bad, I've elected to just institute the update as soon as possible. At the moment, I'm just waiting for FANDOM staff to approve some required JavaScript code.
Structurally, it won't be too dissimilar from what we currently have; it will just look a bit more 2025. The horrific rainbow lolly series list will instead be a carousel of tabs which will open on-click to reveal all of the major characters (note: not just series regulars), the constituent miniseries where applicable, and details about two randomly selected episodes from that series. Please note that series modules have not yet been created for every Casualty and Holby City series, but they have been implemented such that new modules can simply be appended to the list without any additional changes to the process. As of writing, series 22 - 39 of Casualty and series 13 - 23 of Holby City are accounted for. A module for HolbyBlue will be created at a later date.
With respect to the random episodes, the data used for these episodes (title, synopsis, iPlayer ID) is pulled from existing Lua modules on the wiki. Over the past year, I have been Lua-fying many of the wiki's templates. Previously, these templates were reliant on inefficient and totally unreadable parser functions; their Lua equivalents — in comparison — run like Sonic the Hedgehog and are much more programmer-friendly. It goes without saying that the new main page is a Lua-heavy beast.
However, you will notice upon the new design going live that pretty much all of the pre-2019 episodes lack synopses and images. This is one area where I ask for your help.
Module:Casualty episodes is where you will find a Lua table of every Casualty episode article title.
Module:Casualty episode summaries is where you will find a Lua table of Casualty episode synopses.
Module:Casualty episode IDs is where you will find a Lua table of Casualty episode iPlayer IDs.
I'm admittedly speaking as a full-time web developer here, but the table syntax shouldn't be too difficult to understand. When a new episode is released, if I haven't already, please make updating these tables part of your procedure. These tables are load-bearing. Furthermore, if you want to help improve the quality of the new home page, please consider adding old episode summaries and IDs to the table as well.
As for the images, the underlying code — using the show title and the episode article name — creates a DynamicPageList query for a random file that originates from the episode and is classified as an infobox image. However, since wiki articles aren't actual databases, this workaround retrieves an image that belongs to both the episode's designated file category (e.g. [[category:"Wednesday's Child" images]]) and the show's episode infobox category (e.g. [[category:Casualty episode infobox images]]). If no applicable files are found, the function returns nothing. Whilst not a critical issue, it would be greatly appreciated if, as well as licensing your uploads, you categorise them. Templates exist to help save you time and ensure consistency.
These templates have existed since 2019, but I converted them to Lua last year, and I have just added TemplateData for those of you who I haven't managed to wean off the visual editor yet. As always, if you need examples of use, just look at any screenshot I've uploaded since 2019.
The main page will evolve over time: I aim to create an updated news module as well as randomise the 'on this day' module. In the mean time though, I hope you all enjoy the main page!