User talk:The Transhumanist/ConvertCategoryTreeToOutline.js


 * I'm using this page as a workspace for the development of the script. The talk page portion of it starts at, below.

(Script under development - not yet functional)

When completed, this script will take an identified category tree, copy and convert it into an outline.

= 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
(Script under development - not yet functional)

CategoryTree2Outline = Convert Category Tree to Outline

When completed, this script will take an identified category tree, copy and convert it into an outline.

Desired features

 * Ask for destination page?
 * Use top category in tree as the subject in the title of the outline?

Development notes
How do you identify a tree within the category network?

Some trees are not true hierarchies, and breakout to the larger system.

Rough rough talk-through
The script starts from the current category page.

If it isn't on a category page, it asks for the title of one.

First thing it does is save the subject name to a variable.

Then it checks for an existing outline on that subject,
 * First, looking in article space
 * Then with the prefix Draft:
 * Then with the prefix Wikipedia:WikiProject Outlines/Drafts/

To select the categories included in the tree, have the script present each subcat to the user for approval, then the subcats of those approved, etc, until there are none left.

Each subcat is used as a heading in the outline.

The links in a subcat are pulled in, to populate each section.

Then the front and end material is added to the page.

Script dependencies
= Discussions =