'createboxButton' class was erroneously removed in Ia608324703987371
so add it back again. Also prefixed "inputbox-element" class with
a "mw-" for consitency as well.
Bug: T92611
Change-Id: I36718671e6012427a647de7a1cc712e3c8394ee1
For checkboxes and text input fields, not only for buttons.
Fix missing space between input and submit button in search2, too.
Follow up: Ia608324703987371aa66beccbac962024fc6e897
Bug: T63526
Change-Id: Id9fb22885b836c0dfe6a086e2ec45e2018244210
The current button styles are outdated, and due to the adoption of a new
standard UI and the wide use of this extension, they should be brought up
to the standard
bug: T63526
Change-Id: Ia608324703987371aa66beccbac962024fc6e897
If the user does not enter a title in the <inputbox> for type=create
and hits the submit button, it opens the Main page for editing (or
view-source) due to empty title= param in URL. Greying out the submit
button until user enters the title solves the issue.
Bug: 61606
Bug: 62975
Change-Id: I5c6c34b90c6c499ef7cb96ad8d47fdbbcbbcd8a8
There can be more then one <inputbox> in page. Don't reuse id
attributes.
See also r60072
Bug: 11777
Change-Id: If7c518445c966aa5c0b16929ccdf22cdf014b59d
Add an option to InputBoxes to allow them to prefill Special:MovePage with
prefixes and other similar options to pages being created
Change-Id: I1740497030b5e9872162a1a261ac38791bb1373a
Property name is $mID, certain parts were testing $mId, and then
using isset to (presumably) hide the undefined property warnings.
Change-Id: I0c2d29fbdb8314aa0c04bea387364a7307e68b9b
This prevents possible current or future key conflicts. Keys for
translations will be updated at translatewiki.net.
Change-Id: Ie94fa53340c9534f45a70cbafc4d55a7e2d58a7c
These variables are included in attributes of elements built
with Xml::openElement or Xml:element which escape them using
Sanitizer::encodeAttribute.
Change-Id: Ib34a21a6312ba88b390110115d655b46a64b9dcd
InputBoxes creates HTML which will later be cached (probably).
Right now this can lead to strange button labels eg.
https://www.wikidata.org/wiki/Wikidata:Requests_for_comment?uselang=qqx&action=purge
will cache the qqx of the createarticle button so that all users
see it (till it's purged again). To prevent this we set the parser
to cache per user language.
Change-Id: I69ade88bb43f73404965b7cb63e88b824561d988
* Replace deprecated methods.
* Remove superfluous newlines.
* Fix docs for a few methods.
* Add some type hints.
Change-Id: I09671b5e70d33ffa9746e95c965bd1bc2bbd4a3f
* instead of checking each namespace if it is given through the parameter, check each given namespace if it is a valid one
* this fixes the inconsistency where 2 namespaces are given but only 1 is valid and that one is shown (normally if there is only 1 given, it is hidden)
* fix bug 22591 (Allow i18n of Main namespace search option label)
* allow namespace aliases as well
* also trim the given namespaces, so spaces do not make them invalid
Reuse getSearchForm() for both 'search' and 'fulltext' type, IMO it should also be used for 'search2' (exact-match only), but since 'search2' is kindof strange and ignores some params (like 'break') for which I'm not sure if it's bug or feature, leaving 'search2' as separate function.