User talk:The Transhumanist/ViewAsOutline-AllPagesWithPrefix.js
{{User:The Transhumanist/Workshop boilerplate/Lead hatnote}}
:This script is functional
This script adds *
to links on the "All pages with prefix" page for easy copying and pasting into lists and outlines. It also hides the bullets that are normally there. Once installed, it operates automatically – it does not have an on/off switch.
= Script's workshop =
: This is the work area for developing the script and its documentation. The talk page portion of this page starts at #Discussions, below.
Description / instruction manual
:This script is functional
This script adds *
to links on the "All pages with prefix" page for easy copying and pasting into lists and outlines. It also hides the bullets that are normally there. Once installed, it operates automatically – it does not have an on/off switch.
To make use of it, click on the edit tab on a Wikipedia page (such as a list or outline). Then, open Wikipedia in another window, and click on "Special pages" (or press {{Keypress|Alt|Shift|q}}), and then click "All pages with prefix".
Enter the topic name desired, and press {{Keypress|Enter}}.
The output will include wikiformatting for easy cutting and pasting into lists and outlines.
Copy and paste one or more links into your other window, as desired.
{{User:The Transhumanist/Workshop boilerplate/Install}}
{{User:The Transhumanist/Workshop boilerplate/Explanatory notes}}
= General approach =
First, the script turns off list item bullets, then it uses regex to wrap list items in link wikicodes preceded by an asterisk (*). For the latter, it applies regex using the outerHTML and replace methods.
More specifically, starting from the beginning...
{{User:The Transhumanist/Workshop boilerplate/Aliases}}
{{User:The Transhumanist/Workshop boilerplate/Bodyguard function}}
{{User:The Transhumanist/Workshop boilerplate/The ready event listener-handler}}
{{User:The Transhumanist/Workshop boilerplate/Only activate for vector skin}}
Change log
Task list
= Bug reports =
= Desired/completed features =
: Completed features are marked with {{done}}
- Make this work with "All pages" too
- On "All pages", hide the redirects (class="allpagesredirect")
Development notes
None needed (so far).
= Rough rough talk-through =
{{Further|Pseudocode}}
The script was simple enough to write, that I skipped this step.
Script dependencies
None.
= Discussions =