[Special:MovePage] Split new title input, fix bug 29454 (byteLimit), namespaceSelector
authorKrinkle <krinkle@users.mediawiki.org>
Sat, 28 Jan 2012 16:26:12 +0000 (16:26 +0000)
committerKrinkle <krinkle@users.mediawiki.org>
Sat, 28 Jan 2012 16:26:12 +0000 (16:26 +0000)
commitdb2179b7f6e5adeb5d5114e8a16524ebe19b37ba
treeb9be933624d6fb7d6a5c1b1daeec11debd6cd124
parent638b58c27233f883817125fe6ac18d8708d8795b
[Special:MovePage] Split new title input, fix bug 29454 (byteLimit), namespaceSelector

* Two reasons:
-- Limit bug: Limit can't be enforced if the two are together
because only page_title is limited, the namespace prefix
is not part of the title. Plus even then, there is still
ambiguity with the various ways to denote namespaces (aliases)
and whitespace freedom between namespace, colon and title.
-- Extra feature: Now that the two are separate it' s easier
for users to move across namespaces as one doesn't have to type,
can't make spelling mistakes. Also, in the future we could exclude
certain target namespaces that are not possible or not allowed (now one can
perfectly submit a request to move from NS_CATEGORY or NS_FILE, only to
get a warning on submission). By showing them disabled in the drop down
this becomes clearer).

* Keeps backwards compatibility for gadgets and permalinks generated
by templates on wikis so that they can still pre-set the "new title"
from a url the old way. The new way can also be pre-set from the url,
and allows them to be set separately (wpNewTitleNs=10&wpNewTitleMain=Infobox)
* Gadgets and templates linking to Special:MovePage with a preset target
-- Old way (still works): wpNewTitle=Template:Infobox
-- New way: wpNewTitleNs=10 (and/or) wpNewTitleMain=Infobox

* Fixes bug 29454; Depends on r109990;
-- (bug 29454) Enforce byteLimit for page title input on Special:MovePage
RELEASE-NOTES-1.19
includes/specials/SpecialMovepage.php
resources/mediawiki.special/mediawiki.special.movePage.js