Jump to content

User:Danski454/stubsearch

From Wikipedia, the free encyclopedia

Stub search is a script for tagging stubs, which supports searching for tags and the hierarchy structure used at Wikipedia:WikiProject Stub sorting/Stub types. This script works in Vector, Cologne Blue, Modern, Monobook, and Timeless. Information for CSS customisation is here. The source code is here.

Installation

[edit]

Copy the line below, then click here, paste the line, and hit the save button.

  • {{subst:iusc|User:Danski454/stubsearch.js}}

Documentation

[edit]

To use the script click the Stub search button, this should be in the same place as the move button. This will load the stub search menu. Once loaded you can scroll trough the list or use the search box. If the search box is empty, only the first level down of children of the current selection will be shown, however if there is text in the search box, all descendants matching the search term will be shown. Please note that if templates or categories do not come up, they may not be properly listed on the stub type list. To ask for help with correctly listing things on the stub type list, please go to Wikipedia talk:WikiProject Stub sorting.

To select a template or category click on it. This will clear the search box and restrict further searches to that item's descendants. To go up use the drop down box to select the parent, then click on the Go up to button.

To add a template, select it and then click on the Add {{...}} to this article button or click the Replace old stub templates with {{...}}. You can select if you want to load changes. If you do not load changes, an alert box will appear instead.

Changes

[edit]
  • 26 October 2018
    • Added drop down menu to select which parent to go to when clicking the up button
    • Hierarchy improvements
    • Added ability to replace existing templates
  • 28 October 2018
    • Fixed bug where replacing existing templates actually copied the sandbox to the article
    • Ensured stubs are preceded by two blank lines
    • Made diff automatically load when adding a stub template
  • 3 November 2018
    • Added a checkbox to not load changes
    • Added a button to load changes
  • 8 November 2018
    • Added support for pre-ES2015 browsers
  • 11 November 2018
    • Fixed a bug that caused edit summaries from just adding stubs to say that old stubs templates were replaced
  • 18 November 2018
    • Added a list of stub templates that are not listed by Wikiproject stub sorting
  • 24 November 2018
    • Fixed bug with detecting existing stub templates with different capitalisation
    • Made UI load the base stubs section after making an edit without loading changes
  • 8 March 2019
    • Slowed down the appearance of save buttons slightly
    • Added option to go up to base stubs section for stubs not listed by WikiProject stub sorting

Images

[edit]