User:Alex 21/script-updateepisodes.js is a script that updates a television of list-of-episodes page when the most recent episode airs. It updates |num_episodes=
in {{
Infobox television}}, |RTitle=
in {{
Episode list}}, and the date in {{
Aired episodes}}.
To install the script, add:
importScript('User:Alex 21/script-functions.js'); importScript('User:Alex 21/script-updateepisodes.js');
>>> User:Alex 21/script-functions.js is required to include multiple shared functions, and the custom "TV Scripts" header, many of which are used identically in a few of my other scripts - you only need to include it in Special:MyPage/common.js once. Follow the instructions at User:Alex 21/script-functions for installing scripts by Alex 21. <<<
There will be a "Update episodes" link in the toolbox on the left on every article. Click it while in editing mode for the whole article in both the main article and list of episode article (if one exists), to update all counter parameters/templates and remove title references. Only works for the first episode that originally has a title reference (i.e. if that particular day aired a double episode, click the link twice).
Use the script on the following articles in the following order.
Please report any bugs on the talk page of the script's creator.