User talk:Chieftain Alex/ATools.js
From Guild Wars 2 Wiki
Jump to navigationJump to search
Since switching to vector (and having uninstalled gw2wt anyway), I miss all the useful stuff like "diff last" and the lazy-bastard buttons like del tags and stuff. Does this thing do any of those things? If so, how2install pls. If not, waah. — snograt 09:38, 2 May 2014 (UTC)
- Atools has
5.6k7.4k characters, and GW2WT has 40.9k characters - theres a reason why atools is shorter and unfortunately its because I binned a lot of features. Lets see:- 0 It hasn't got delete tags, since that whole popup window thing needed a fairly chunky bit of code and if you're an admin you just delete it unless its a real article... I could probably get it to add a delete tag to the top of the page in the editing window without too much hassle. I guess a speedy tag wouldn't be a bad idea. It'd have to add
<noinclude>{{delete|spam|speedy}}</noinclude>
... Whether I could get the cursor to land in the edit box between the tags idk. - 1 It has got "diff last" (top-right of the window)
- 1 + links to all of a user's userpages/user images (left-bottom).
- 1 Apparently (just tested) it has buttons to tag screenshots/icons with, but bluntly those could do with improving since they just add it to the top of the page + then immediately save it. And this has been less useful since the image tag enforcing js was applied.
- 0 It hasn't got delete tags, since that whole popup window thing needed a fairly chunky bit of code and if you're an admin you just delete it unless its a real article... I could probably get it to add a delete tag to the top of the page in the editing window without too much hassle. I guess a speedy tag wouldn't be a bad idea. It'd have to add
- my regex is a bit better than when I cobbled this together too. It used to occasionally break on pages with wierd characters in the title, e.g. pages with quotation marks in the titles, I forget if I fixed that or not.
- For "installing".. just add
importScript("User:Chieftain Alex/ATools.js"); // [[User:Chieftain Alex/ATools.js]]
to Special:MyPage/vector.js. and it should work I reckon. (wikilink is just so it gets entered in whatlinkshere.
- I've got a poster to do for an exhibition though, so no ETA on other features.. maybe a few hours :p -Chieftain Alex 10:25, 2 May 2014 (UTC)
- That wikilink will stop working when we upgrade to MW 1.22 - CSS/JS pages will no longer be parsed as wikitext. —Dr Ishmael 12:46, 2 May 2014 (UTC)
- oh goody. -Chieftain Alex 12:56, 2 May 2014 (UTC)
- I suppose that means that we finally get syntax highlighting in our .js and css files too! -Chieftain Alex 13:43, 2 May 2014 (UTC)
- That wikilink will stop working when we upgrade to MW 1.22 - CSS/JS pages will no longer be parsed as wikitext. —Dr Ishmael 12:46, 2 May 2014 (UTC)
- Update:
- 1 Delete tags for speedy click once + it tags stuff (edit page, edit summary, saves)
- 1 Screenshot/icon tag button - replaces existing arenanet image tags on the page.
- hopefully I've not introduced any new bugs while cleaning up whitespace + pruning dead code. -Chieftain Alex 13:41, 2 May 2014 (UTC)
- Update:
- The summary of changes for v1.21 state that Extension:SyntaxHighlight GeSHi is now bundled with MW. And if Wikipedia can be trusted as a reference, yes, that means we get JS/CSS syntax highlighting. —Dr Ishmael 13:51, 2 May 2014 (UTC)
- Good spot, ctrl+f5 to clear the version you're using at the moment if the typo still persists -Chieftain Alex 16:50, 2 May 2014 (UTC)
- As suspected, the quotes on titles had not been fixed, but its now working. -Chieftain Alex 20:05, 2 May 2014 (UTC)
- Good spot, ctrl+f5 to clear the version you're using at the moment if the typo still persists -Chieftain Alex 16:50, 2 May 2014 (UTC)