User talk:The Transhumanist/OutlineMain2LI.js


 * This script is under development, and is not yet functional

When completed, this script will convert each main link to the top outline item in its respective section.

= Script's workshop =
 * This is the work area for developing the script and its documentation. The talk page portion of this page starts at, below.

Description / instruction manual for OutlineMain2LI.js

 * This script is under development, and is not yet functional

This is an outline utility for cleaning up Main links in outlines. Outlines generally don't utilize main links, because they are usually topics that belong in the body of the outline, as list items. Converting them to list items makes the outline easier to parse, and it allows an annotation to be added to each of them.

When completed, this script will process each main link on the page, letting the user decide what the script should do with them one-by-one. The choices will be to convert it to a suggested list item, delete it, or skip it.

General approach
(general approach goes here)

More specifically, starting at the beginning...

Desired/completed features

 * Completed features are marked with ✅


 * Alerts you that there are some Main links, and asks if you want to process them now
 * If so, presents each one, asking if you want to convert it, delete it, or skip it.

Rough rough talk-through
This script will be activated by menu item. The difference between this menu item and the one in anno.js is that this one is not a toggle. The script executes every time the menu item is clicked.

When it is clicked, it checks for main links. If the page has none, it presents an alert ("No main links found!"). If it finds any, then the program's main function is called.

The main function puts the page in edit mode, and processes each main link...

It puts in into a variable.

Then it asks the user what he wants to do with it.

1) Convert it into (suggested) list item

2) Delete it

3) Skip it

The user presses 1, 2, or 3, and the program processes the main link

Then the program moves on to the next one, repeating the above process.

When all the main links are processed, the program fills in the edit summary and saves the page.

Then terminates.

Script dependencies
= Discussions =


 * This is where the actual talk page starts for User:. Please post your discussion threads below...