User:Alex 21/script-seriesoverview

User:Alex 21/script-seriesoverview.js is a script that transforms a tabular series overview for television series to the templated version Series overview.

Installation
To install the script, add: importScript('User:Alex 21/script-functions.js'); importScript('User:Alex 21/script-seriesoverview.js'); to Special:MyPage/common.js.

There will be a "Series overview" link in the toolbox on the left on every article. This script assumes that the first table on an television series' episodes page is the series overview (excluding warning messages and infoboxes) - if it is not, and another table appears before the overview, then manually add the attribute  to the series overview table via the Inspect Element feature of your browser. This will override the first-table assumption.

Click the "Series overview" 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 series overview where it belongs, manually replacing references as you do so. Save the page.

September 2016 update
This mass update in September 2016 provided support for the newer features of the Series overview template, including custom link text for all seasons, split seasons, special rows (the previous two now implemented in the maint template itself, rather than sub-templates), excluding to-be-announced info cells, proper support and html-to-wikitext linking for the network column, auxiliary columns, released series (for seasons both released in their entirety and not), twenty-six info cells rather than five, and end dates identical to their start dates. The mass update also included a lot of code cleanup, optimization though functions, adding in the proper page link, and insertion of reminders to re-insert references not included in the table-to-template conversion

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