Jump to content

User:Alex 21/script-plotlength

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Alex 21 (talk | contribs) at 00:41, 6 April 2016 (Create.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

User:AlexTheWhovian/script-plotlength.js is a script that checks all of the plots for television episode summaries that are added through {{Episode list}}, and determines whether they are in compliance with the WP:TVPLOT guideline; that is, if they are below 200 words.

Installation

To install the script, add:

importScript('User:AlexTheWhovian/script-functions.js');
importScript('User:AlexTheWhovian/script-plotlength.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 "Plot length" link in the toolbox on the left on every article. Click it to determine the lengths of each plot. You will be presented with an alert that either 1) shows which episodes are too long and their length, and the summary will be modified to include **TOO LONG (LENGTH)** or 2) states that all summaries are of acceptable length.

If there are one or more episodes of excess length, then {{Plot}} will be copied to your clipboard, date with the current month and year. Open the edit page in a new tab and tag the summaries that are too long.

Bugs

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