User:Alex 21/Scripts
Appearance
Home Talk Userboxes Scripts Sandbox 1 | 2 | DW | Module: / Sandbox TV Shows Notes Contributions Subpages Uploads
* Important!
[edit]Concerning the functions script: >>> 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. <<< To install the script, add importScript('User:Alex 21/script-functions.js');
to Special:MyPage/common.js.
Television
[edit]Episode table
[edit]- User:Alex 21/script-episodetable.js is a script that transforms a raw-code episode table header for television series to the templated version {{Episode table}}, including suggested widths in the template code, based on averages of widths automatically calculated by HTML. This allows for proper tracking of accessibility issues through Category:Articles using Template:Episode table with invalid colour combination.
Format air dates
[edit]- User:Alex 21/script-formatdates.js is a script that formats usages of {{Episode list}}, so that
|OriginalAirDate=
uses {{Start date}}, and|AltDate=
does not, per the template's documentation.
Line colour
[edit]- User:Alex 21/script-linecolour.js is a script that takes the line colours from the template {{Episode list}} (both hexadecimal and HTML colour names) and adjusts them per WP:COLOR and Template talk:Infobox television season/Archive 3. When replacing the non-compliant colours, the colours of the episode table headers will also be adjusted.
Plot length
[edit]- User:Alex 21/script-plotlength.js is a script that checks either 1) 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, or 2) the plot for a film and checking that its summary is less than 700 words per WP:FILMPLOT.
Season_list parameter
[edit]- User:Alex 21/script-seasonlist.js is a script that removes the
|season_list=
parameter from the {{Infobox television episode}}, and replaces it with|prev=
and|next=
, per the template's documentation.
Series overview
[edit]- User:Alex 21/script-seriesoverview.js is a script that transforms a tabular series overview for television series to the templated version {{Series overview}}.
Table colours
[edit]- User:Alex 21/script-tablecolour.js is a script that takes the colours from any infoboxes or episode tables (both hexadecimal and HTML colour names) and adjusts them per WP:COLOR and Template talk:Infobox television season/Archive 3.
Television episode ratings
[edit]- 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.
Update episodes
[edit]- User:Alex 21/script-updateepisodes.js is a script that updates a television of list-of-episodes page when the most recent episode airs. It updates
|num_episodes=
in {{Infobox television}},|RTitle=
in {{Episode list}}, and the date in {{Aired episodes}}.
Miscellaneous
[edit]Category pagelinks
[edit]- User:Alex 21/script-categorypagelinks.js is a script that adds individual Talk, Edit and History links to every article listed in a category.
Category sorting
[edit]- User:Alex 21/script-categoriessort.js is a script that sorts categories in an article alphabetically.
Image resolution
[edit]- User:Alex 21/script-imageres.js is a script that provides statistics for files and their sizes in compliance with WP:IMAGERES.
References
[edit]- User:Alex 21/script-references.js is a script that moves all references declared within the article into the declaration of {{Reflist}} at the end of the article, to tidy up the article's contents just the readable prose and declared reference names. Any unnamed references are included with this move and are provided with a newly-generated reference name.
Removing redlinks
[edit]- User:Alex 21/script-redlinks.js is a script that removes red links from an article. Per WP:REDLINK, only remove them if there are too many red links for an article, or if one or more of the links present (regardless of number) are inappropriate for any reason.