User:BrandonXLF/TodoList

{{User:BrandonXLF/scripts/doc
 * name=Todo List
 * desc=Adds a todo list
 * image=todoscript.png
 * caption=A screenshot of the popup
 * released=November 11, 2019
 * description=adds a todo list to Wikipedia (or any other MediaWiki wiki). Adds a link to the head to access your todo list. Pressing the link will open a popup that will allow you to add to your todo list, view your todo list and modify your todo list.
 * skins=All
 * additional=

Adding and editing items

 * Page name or URL: A page name or any valid URL. Examples:,  , and.
 * Comment: An additional comment.

Global

 * Redo and Undo: Redo and undo changes. You should not expect to be able to undo all changes. Changes including uploading a todo list, deleting an item, reordering items, deleting the todo list, editing an item, redoing a change, and adding an item. Redo will redo the last undone change. Once you reload the editor, all change history is lost.
 * Clear: Delete your entire todo list, this should be able to be undone, but don't rely on it. Once you reload the editor, this action cannot be undone.
 * Download: Download all items currently in the todo list as a JSON file. The file can later to uploaded again the replace the current todo list. Do not edit the JSON file unless you understand the risks associated with doing so and you understand the structure of the file.
 * Upload: Upload a todo list JSON file. The new list will replace the current list. The operation should be able to be undone. Only upload a file created by the download file button, or else you may cause issues with the script, causing it to become non functional.

Item specific

 * Drag: Drag to change the position of the item.
 * Delete: Delete an item.
 * Edit: Edit an item (page name & comment)
 * More information: View more information about an item, such as the date it was added.

Saving changes
}}
 * All changes are synced with the API after an action is performed (saving, deleting, dragging etc.).
 * When a change is being saved the text "Saving changes..." should appear at the end of the list. Do not leave the page or close the popup until the text disappears as this may cause changes to not be saved.