User:AlexTheWhovian/script-tvepisoderatings

From wikishia

User:AlexTheWhovian/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:AlexTheWhovian/script-functions.js');
importScript('User:AlexTheWhovian/script-tvepisoderatings.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 "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.

See also