Wikipedia:Gadget/proposals
This page is used to discuss the addition of user scripts as Wikipedia gadgets.
wikEd as a gadget
- Discussion started at Wikipedia:Village pump (technical)#wikEd as a gadget.
wikEd is a full-featured Wikipedia-integrated text editor that adds enhanced text processing functions to edit pages. Currently it works only for Firefox and other Mozilla browsers. wikEd is already a gadget on the German, French, Hungarian, and Occitan Wikipedia as well as the Polish Wiktionary. I suggest to add it as a gadget on the English Wikipedia. Сасусlе 03:00, 17 January 2008 (UTC)
- A localized version of wikEd is now enabled at the Vietnamese Wikipedia and Wiktionary. – Minh Nguyễn (talk, contribs) 10:02, 17 January 2008 (UTC)
- Usually I'm against scripts that only work in one browser. Also, I agree with some users that the code is kind of bloated. On the other hand, a lot of users seem to like it, and I guess we cannot expect major improvements right away, so why not? ∴ AlexSm 22:11, 17 January 2008 (UTC)
- I agree with AlexSm. Gadgets should be cross-platform; Mozilla and Internet Explorer are both big browsers. However, I think that the amount of people requesting IE support will boost if this becomes a gadget, prompting Cacycle to add IE support to wikEd, so why not give it a shot? --PostScript 15:30, 21 January 2008 (UTC)
Metadata script as a gadget
- Discussion started at Wikipedia:Village pump (technical)#Suggestion for new gadget.
I suggest that the script at User:Outriggr/metadata.js be made into a gadget. The script displays an article's assessment rating below the page title and colors the page title accordingly.
Making this script into a gadget would result in the assessment system, a good judge of the overall quality of an article, becoming more generally known and available to more people. For more detail on how it meets all the criteria for gadgets, see the village pump discussion.
There's a slightly different version of the script in my userspace at User:Pyrospirit/metadata.js. The only difference is that I changed one condition for the begin
function so that it works on diff pages and old revisions. It's a useful additional feature, so I recommend that this change be made to the gadget version as well.
The script can't do any damage, and since it seems to be compatible with all major browsers, I really don't see any reason not to turn it into a gadget. Pyrospirit (talk · contribs) 14:23, 17 January 2008 (UTC)
- I think the code can be shortened by using existing
sajax_init_object()
. Also, if assesment is always on the top of the talk page,&action=raw
should be changed into&action=raw§ion=0
(this feature has been added quite recently). And while I don't like scripts that query the server on every page, I guess this can't be improved in this particular case ∴ AlexSm 22:11, 17 January 2008 (UTC)
- I'm very inexperienced with JavaScript, so could you show me how you would do this? You can make the change you suggested to my slightly modified version at User:Pyrospirit/metadata.js; it already has the change that lets it work on diffs and old revisions, which means it'll probably be the version the gadget will be copied from. Pyrospirit (talk · contribs) 23:51, 17 January 2008 (UTC)
- I found that the script, apparently, cannot parse & correctly. See this for an example. -- ReyBrujo (talk) 15:18, 20 January 2008 (UTC)
- Well, it is not &, as this works correctly. -- ReyBrujo (talk) 15:19, 20 January 2008 (UTC)
- I'm not sure what's causing this, but my best guess would be that it's the parentheses since those are the only characters other than the &, letters, and spaces in the title. Fortunately, it seems to fail silently in the first diff you linked to instead of giving annoying error messages or something. I'll try to fix it, but it doesn't seem to happen very often. Pyrospirit (talk · contribs) 15:30, 20 January 2008 (UTC)
- I've done some testing, and it seems to occur whenever there is an & symbol inside parentheses. For examples, see Gnome (Dungeons & Dragons), Character class (Dungeons & Dragons), Wizard (Dungeons & Dragons), and any other page with (Dungeons & Dragons) in the title. Pyrospirit (talk · contribs) 15:36, 20 January 2008 (UTC)
- The problem is that it is requesting the wrong talk page: http://en.wikipedia.org/w/index.php?title=Talk:Gnome%20(Dungeons%20&%20Dragons)&action=raw§ion=0
- Note that it is not escaping the &. -- ReyBrujo (talk) 15:49, 20 January 2008 (UTC)
- And Mario & Sonic is not working, the URL is http://en.wikipedia.org/w/index.php?title=Talk:Mario%20&%20Sonic%20at%20the%20Olympic%20Games&action=raw§ion=0
- that means it is taking the assessment from Mario instead of Mario & Sonic. -- ReyBrujo (talk) 15:52, 20 January 2008 (UTC)
- I tried escaping the
wgTitle
variable, but it seems to have made no difference. Did I do that correctly? I'm still learning JavaScript, and this is the first script of this size written by someone else that I've worked on. I don't see what else could be wrong with it at this point. Pyrospirit (talk · contribs) 16:42, 20 January 2008 (UTC) - Took a while to figure out what was wrong, but it is now fixed and seems to work on all pages as it should. Pyrospirit (talk · contribs) 20:44, 20 January 2008 (UTC)
- I tried escaping the
- I'm very inexperienced with JavaScript, so could you show me how you would do this? You can make the change you suggested to my slightly modified version at User:Pyrospirit/metadata.js; it already has the change that lets it work on diffs and old revisions, which means it'll probably be the version the gadget will be copied from. Pyrospirit (talk · contribs) 23:51, 17 January 2008 (UTC)
Special:Log Table
- Moved from MediaWiki talk:Gadgets-definition.
I propose adding LogPage Table script as a gadget. I guess some icons could be changed to better ones. One possible problem is the maintenance, since new kinds of logs seem to appear regularly these days ∴ AlexSm 02:42, 12 January 2008 (UTC)