Wikipedia talk:WikiProject User scripts/Scripts/Edit Top: Difference between revisions
Content deleted Content added
Attempts at editing an older version will only summon the current version. |
MalnadachBot (talk | contribs) m Fixed Lint errors. (Task 12) |
||
(18 intermediate revisions by 12 users not shown) | |||
Line 12:
==Script does not work for historical page==
Attempts at editing an older version will only summon the current version. [[User:Circeus|Circeus]] 19:35, 24 June 2006 (UTC)
Similarly, I've had trouble where an article title with an ampersand (for example [[Madam & Eve]]) will try to edit the top section of [[Madam]] when I use the javascript [[null|edit top]] link. -- ''[[User:Nae'blis|nae]]'[[User_talk:Nae'blis|blis]]'' 20:57, 2 August 2006 (UTC)
== What am I missing? ==
I added the js to my user page, but it doesn't seem to be working. (No "edit" links for section 0.) I have dumped my cache a couple of times, and restarted the browser. I am probably doing something wrong, since I don't know js at all. Please see the page here: [[User:Pharillon/monobook.js]] Using Firefox 1.5.0.6 on Mac OS 10.4.
Advice appreciated. --[[User:Pharillon|Pharillon]] 07:28, 4 August 2006 (UTC)
: In your case, it looks like the <nowiki> }); </nowiki> might be missing from the end. [[User_talk:Gimmetrow|''Gimmetrow'']] 04:08, 3 September 2006 (UTC)
==Diff pages==
An edit link for section0 appears on diff pages, currently. [[User_talk:Gimmetrow|''Gimmetrow'']] 04:08, 3 September 2006 (UTC)
: Same here... shows up on history pages too. [[User:Clindberg|Carl Lindberg]] 04:21, 3 September 2006 (UTC)
== redundant? ==
Why is
|| window.___location.href.indexOf("/wiki/Special:") != -1
repeatedly added? One if-statement could replace that. Also, why isn't this an includable script file? I've mirrored the contents at [[User:Gerbrant/edit/top.js|Gerbrant.edit.top]] and will be editing it as I see fit. You might want to watch that page. Or not. Bye, [[User:Gerbrant|Shinobu]] 20:51, 8 September 2006 (UTC)
== Pages with lowercase first letter ==
Pages with lowercase first letter at [[Template:Lowercase]], should all have a link to this project page so that they can change the first letter to look like lowercase. Obviously, someone that knows how to use the code should implement it and test it out on the pages. Big pages are: [[iPod]], and [[eBay]]. [[User:70.111.218.254|70.111.218.254]] 13:38, 14 October 2006 (UTC)
:I don't think it's a good idea to implement this as part of this module. It's better to start a seperate module. Maybe I'll have a go at it sometime. [[User:Gerbrant|Shinobu]] 18:39, 27 October 2006 (UTC)
:: If you place <nowiki>{{lowercase|title=news.admin.net-abuse.email}}</nowiki> on the top of the page it can change it to lowercase. --[[User:70.111.218.254|70.111.218.254]] 00:54, 4 December 2006 (UTC)
== Doesn't work on [[Wikicities:|Wikia.com]] ==
I noticed this doesn't work on [[Wikicities:|Wikia.com]]. Would you like me to host a Wikia.com only version? I can't write it for you, but I can create the page as a subpage of [[Wikicities:User:Will Pittenger]].
The problem:
{| style="background:none; important!" border=1
|-
|'''URL created by the script:'''||http://starwars.wikia.com/w/index.php?title=User:Will_Pittenger/monobook.js&action=edit§ion=0
|-
|'''Sample URL for section'''||http://starwars.wikia.com/index.php?title=User:Will_Pittenger/monobook.js&action=edit§ion=1
|-
|'''Sample URL for page'''||http://starwars.wikia.com/index.php?title=User:Will_Pittenger/monobook.js&action=edit
|}
== Not working ==
Hi, I put the code in my monobok page [[User:Pgan002/monobook.js]], but I can't see the edit links at the top. I am using the monobook skin. Any idea how to make it work? Thanks! -[[User:Pgan002|Pgan002]] 23:38, 7 February 2007 (UTC)
:Try first [http://en.wikipedia.org/w/index.php?title=User:Pgan002/monobook.js&action=purge purging the server cache], then bypassing the browser cache (Ctrl + F5 for IE, Ctrl + Shift + R for FX). [[User:Pyrospirit|<span style="color:green;">Pyrospirit</span>]] <sup>[[User talk:Pyrospirit|<span style="color:red;">Flames</span>]] [[Special:Contributions/Pyrospirit|<span style="color:orange;">Fire</span>]]</sup> 04:25, 10 March 2007 (UTC)
== Breaks on secure.wikimedia.org ==
The href portion of this script breaks when used on secure.wikimedia.org. What ''should'' be linked to is, for example, <nowiki>https://secure.wikimedia.org/wikipedia/en/w/index.php?title=Wikipedia:The_Zen_of_Wikipedia&action=edit§ion=0</nowiki>, but what you actually get <nowiki>https://secure.wikimedia.org/w/index.php?title=Wikipedia:The_Zen%20of%20Wikipedia&action=edit§ion=0</nowiki>.
In other words, instead of linking to root (/), secure.wikimedia.org needs a 'wikipedia/en/'. --[[User talk:Gwern |Gwern]] [[Special:Contributions/Gwern | (contribs)]] 18:46 [[17 June]] [[2007]] (GMT)
:Considering that the author of this script made 13 edits this year, I wouldn't hope for a quick answer. Would you like to take a look at some other "Edit Top" scripts, for example [[User talk:Alex Smotrov/edittop.js|Simple Edittop]], which should work enywhere? ∴ [[User:Alex Smotrov|Alex Smotrov]] 04:27, 19 June 2007 (UTC)
== Redundant? ==
Does ''[[Special:Preferences]]>Gadgets>User interface gadgets>Add an [edit] link for the introduction section of a page'' make this script redundant? [[User:Jnestorius|jnestorius]]<sup>([[User talk:Jnestorius|talk]])</sup> 22:58, 28 February 2008 (UTC)
:I would say yes. This script simply uses a different approach for the same task. Also it automatically adds /* Intro */ to the edit summary, but this doesn't seem like a good idea to me, since this creates a fake "→" link to nonexisting #Intro section. —[[User:Alex Smotrov|AlexSm]] 06:02, 29 February 2008 (UTC)
|