User:AlexTheWhovian/script-episodetable

From wikishia

User:AlexTheWhovian/script-episodetable.js is a script that transforms a raw-code episode table header for television series to the templated version {{Episode table}}. This allows for proper tracking of accessibility issues through Category:Articles using Template:Episode table with invalid colour combination.

Installation

To install the script, add:

importScript('User:AlexTheWhovian/script-functions.js');
importScript('User:AlexTheWhovian/script-episodetable.js');

to Special:MyPage/common.js.

User:AlexTheWhovian/script-functions.js is required to include multiple shared functions, 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.

There will be a "Episode table" link in the toolbox on the left on every article. This script gathers all of the episode tables on the page by specifically searching for episode lists and retrieving the table from that, and converting to {{Episode table}}.

Click the "Episode table" link to convert the tabular overview to the template, which will be saved in your clipboard - you will be directed to the edit page. Once in edit mode, pasted the copied episode table header over the raw code, making sure that you replace the original table's ending |} with }} to close the template, manually replacing references as you do so (the template automatically gives the parameters for the references). Save the page.

Bugs

Please report any bugs on the talk page of the script's creator.

See also