User:Alex 21/script-tvepisoderatings

User:Alex 21/script-tvepisoderatings.js is a script that converts the episode ratings tables for television series to an easily formatted and easily dealt with template.

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

There will be a "Television episode ratings" link in the toolbox on the left on every article. Click it to convert the episode ratings table, and make sure you paste it to either the edit box or a new medium, before clicking the link again once in edit mode to collect all of the references. You will need to manually replace the references into the templated version of the ratings table.

Only sortable tables will be converted to the template - if the ratings table is not already sortable, add it via editing the page or add "sortable" to the class attribute through Inspect Element.

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