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

edit

To install the script, add:

importScript('User:Alex 21/script-functions.js');
importScript('User:Alex 21/script-tvepisoderatings.js');

to Special:MyPage/common.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 "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

edit

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

See also

edit