Now we no longer have to request dependency files separately, speeding
up load times as well as resolving the “undefined Hogan” error as
reported in the linked issue.
Per multiple requests in IRC and on WT:WPAFC. A new, optional parameter was added to AFCH.makeLinkElementToPage which sets `target` for the `<a>` to `'_self'` instead of `'_blank_'`.
Upon typing a title, the plugin will check for the main page, the talk
page, a draft page in the format 'draft:title' and the talk page for the
draft, in that order of importance
Known issues: The error message flashes a little when the name is being
typed, due to the different namespaces being checked.
Notify User if the talk page exists (fixed)
Reworked the code from the previous commit, removing most of it in favor
of a $.when().fail() block to check for the existence of a talk page when
the actual page does not exist
Fixed Minor Issues
Removed namespace: in favor of 'Talk:' + title
Removed a random ` from a comment
Resolved issues
Use .done() instead of .when().fail()
Move linkToPage declaration to be with the other variables
Minor Fixes
Removed unnecesary return
Fixed indentation
When an article exists, suggest the title of the current draft instead of "chocolate chip cookies". For "Draft:Example", it would suggest "Example", and for "User:Example/Title" or "Wikipedia talk:Articles for creation/Title" it would suggest "Title".
When an article exists, suggest the title of the current draft instead of "chocolate chip cookies". For "Draft:Example", it would suggest "Example", and for "User:Example/Title" or "Wikipedia talk:Articles for creation/Title" it would suggest "Title".
This reverts commit c05056ce86b06cff154d21a2fdd3bb0340fb099a.
For future reference, exact details about why this hack IS necessary:
> Very recently I'm having this trouble where as I'm typing in letters
into the Category field, when the dropbox appears for options, it
blanks out my cat field after a second, so I need to add or subtract a
typed letter to be able to see what I'm typing, which is kinda hinky.
—MatthewVanitas
Currently prefillBiographyDetails prefills the LISTAS/DEFAULTSORT if
the page title is only two words—assumes that word 1 is first name,
word 2 is last name. This won’t be right 100% of the title, but for the
most part might be kinda handy.
In the future, envision also having the pre-existing PERSONDATA
detection here…