MediaWiki talk:Pagemovedtext
From Wikipedia, the free encyclopedia
Admins who would like a delete link on this page can add the following to their personal javascript:
// Begin delete link code function addDeleteLink() { var targetSpan = document.getElementById('specialDeleteTarget'); var linkSpan = document.getElementById('specialDeleteLink'); if (targetSpan == null || linkSpan == null) return; var targetLink = targetSpan.getElementsByTagName("A")[0]; if (targetLink == null) return; var targetTitle = targetLink.childNodes[0].data; var deleteHref = "http://en.wikipedia.org/w/index.php?action=delete&title=" + escape(targetTitle); var deleteSpan = null; with (easyDom) { deleteSpan = span({ "class": "plainlinks" }, " (", a({ "href": deleteHref, "class": "external text" }, "delete"), ")"); } linkSpan.appendChild(deleteSpan); } addOnloadHook(addDeleteLink); document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=User:Mike Dillon/Scripts/easydom.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); // End delete link code
Contents |
[edit] Direct link
I replaced "[[$1]]" with "$1", so that when you click the first entry (the page title before the move) it takes you to the page at that title, rather than redirecting to the new title. To be especially clear, an example:
Before, the message was Page "Foo" moved to "Foo2"., but when you clicked Foo, it redirected you to Foo2. This is completely useless, as the only reason to click the previous title is to delete the resulting redirect. Now, instead of redirecting to Foo2, clicking the first link will take you to the Foo&redirect=no page, where you will be able to see (and delete) the resulting redirect. Essjay Talk • Contact 06:09, 1 March 2006 (UTC)
Freakofnurture, vi:MediaWiki:Pagemovedtext still uses redirect=no
and it works like a charm. It seems the only change was that variables in nowiki tags no longer work for this message. – Minh Nguyễn (talk, contribs) 10:58, 27 May 2006 (UTC)
[edit] Ack
Have re-re-re-reverted this one, as the software changes Brion made that fixed the issue had to be removed because they caused problems elsewhere. I expect we'll all be making changes like crazy as this software soap-opera progresses. :D Essjay (Talk • Connect) 03:44, 29 May 2006 (UTC)
[edit] New version
I really preferred the old format; it was simple and straightforward. Was there a reason for the change? -- Visviva 12:49, 10 October 2006 (UTC)
- Yes, there was. The paranthetical links greatly simplify common tasks like updating incoming links and deleting page move vandalism. The only really superfluous link is the second 'links', which I've just removed. // [admin] Pathoschild (talk/map) 16:30, 10 October 2006 (UTC)
- I liked the check in bold (pointing at the newly moved page!) but having the delete link is great too. Current version is fine by me. --kingboyk 16:50, 10 October 2006 (UTC)
-
-
- I guess as a non-admin it seems a bit silly to have a link (two links!) pointing to an option I can never exercise. Is there no way to customize the version seen by admins? -- Visviva 01:40, 11 October 2006 (UTC)
-
/* hide admin content */ .admin_content { display:none; }—[admin] Pathoschild 07:03, 11 October 2006 (UTC)
[edit] Bots
Should we add a link to WP:BOTREQ saying to request bot assistence there if there are a huge amount of redirects which need to be fixed? —Mets501 (talk) 18:39, 10 October 2006 (UTC)
- Possibly. Many a time I've fixed a truckload of redirects myself, so if that solution didn't occur to an experienced user as I am it surely will pass others by too? OTOH, it's probably more on target to add the link and some supporting text to Wikipedia:Double redirects. --kingboyk 11:42, 11 October 2006 (UTC)
[edit] Borked?
When I move multi-word titled pages the first page link doesn't go to the redirect page, but instead to "word_one+word_two."
brenneman {L} 03:23, 13 October 2006 (UTC)
- I'm not having that experience... could you give a specific example or set up a test? Snoutwood 06:43, 10 January 2007 (UTC)