User talk:Gerbrant/edit/top.js


 * Gerbrant.edit.top
 * Adapted from WikiProject User scripts/Scripts/Edit Top. Adds an [edit]-link for the intro. Exports nothing.

Secedit Compatability
Thanks for a useful tool. It would be nice if this was compatible with User:Supadawg/secedit.js though. --cfp 21:57, 6 January 2007 (UTC)
 * This script just injects another editsection element. Other scripts should be able to detect that, provided they run later, but that a) will require modification of this script so it signals its completion and b) very probabably modification of the other script because it will not function correctly if it is instructed to edit section 0 when it is not designed to handle that case. Shinobu 12:51, 12 November 2007 (UTC)

What's the difference?
Hey, what's the difference between this modified script and the original at WikiProject User scripts/Scripts/Edit Top? I don't know JavaScript, so I'm not sure what's going on here. Is that info already posted somewhere else? Thanks!--Aervanath 04:55, 15 February 2007 (UTC)
 * In principle not much. The primary difference is that this can be included as a module, so you don't copy the actual code, but the page address. Of course as time passes, it may happen that this script gets updated and starts to diverge from Edit Top, but that will be in little things, like fixing little flaws, since this module does not really do much other than add an [edit] link for section 0. Perhaps I will post a full list of fixes when I have the time to do so. Shinobu 11:23, 12 November 2007 (UTC)

Edit summary
Looking through the source, it seems it's supposed to add a /* Intro */ to the edit summary (which is a good idea), but in practice and by trying it out, I can't seem to ever see it. --Gwern (contribs) 22:27 3 May 2007 (GMT)
 * It broke during a Wikimedia upgrade in the past and you're the first to notice. Lucky you! I've updated the script to use the "new" global variables which should make the script more robust against that kind of thing although not everything can be detected that way (yet). Shinobu 12:39, 12 November 2007 (UTC)

Edit label size
Hi, thanks for developing the script. Is there a way to adjust the font size of the "[edit]" label, to suit one's own preferences? (my own pref. being to have the size equal to the other sections' "[edit]" labels) --Wernher 16:56, 21 May 2007 (UTC)
 * That's a good idea. I'll see what I can do. Shinobu 11:24, 12 November 2007 (UTC)
 * I edited the default font size to be the same as the others. Customization was already possible through the handy use of CSS selectors:

.editsection
 * versus

h2 .editsection
 * Remember the more specific selector always takes precedence. Shinobu 11:43, 12 November 2007 (UTC)

Better position
Hi Gerbrandt. I just installed your "edit intro code". I noticed that the new [edit] tag did not position like the other [edit] tags for other sections. So I took a look at the code and fixed it in my own monobook.js. I don't know javascript but I know CSS, so this is what I did:

I changed to

Now the new [edit] tag positions itself neatly like the other ones for me.

--David Göthberg 12:02, 10 August 2007 (UTC)
 * Sounds like a good idea in principle. I just hope it will not accidentally overlap with little things that sometimes appear in the upper-right corner of articles. Shinobu 11:26, 12 November 2007 (UTC)