User talk:The Transhumanist/AnnotateListItem.js


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

When completed, this script will add an annotation to the highlighted linked list item, fetching it from the lead of the article linked to.

= 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 AnnotateListItem.js

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

When completed, this script will add an annotation to the highlighted linked list item, fetching it from the lead of the article linked to.

General approach
(general approach goes here)

More specifically, starting at the beginning...

Desired/completed features

 * Completed features are marked with ✅


 * Implement a selection area feature or a selection rectangle
 * Load the annotation into an edit window, so you can edit it before it inserts it.
 * Handle multiple highlighted list items.

Development notes for AnnotateListItem.js
Is there a way in JavaScript or jQuery to check for highlighted/selected areas?
 * Yes. WikEd does it for its A-Z sort feature, and or its search/replace feature, albeit in the edit window.

It needs to check that a list item is indeed highlighted. If not LI is highlighted when this script is activated, give a message "no list item highlighted, then terminate.

If more than one list item is highlighted, annotate the first one only.

Script dependencies
= Discussions =


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