This approximates the behaviour prior to core change for
T119158. It will language convert the options: default,
buttonlabel, searchbuttonlabel, and placeholder if they
contain a "-{".
The old behaviour was to handle the insides
of -{ glossary rules here }- and convert text if there was a
glossary rule both prior to the beginning of the attribute and
prior to the end of the attribute (So default=foo-{}-bar-{}-baz
only bar would be converted). I believe that just looking for
-{ is probably close enough. It also opens the question of if these
options should always be language converted, but I'll leave that
for someone else to decide.
Bug: T180485
Change-Id: I3aa10890950afce445075e895baf6b10327bc222
Add an optional tour parameter with adds `&tour=[x]` to the local Special:Search URL
Remove whitespace error
Add test
Modify test HTML (x3)
Bug: T174077
Change-Id: Iaaf1d04e1939bd555cacd4ea3ac4390d7e43b19d
The following sniffs are failing and were disabled:
* MediaWiki.Commenting.FunctionComment.MissingParamName
* MediaWiki.Commenting.FunctionComment.MissingParamTag
* MediaWiki.Commenting.FunctionComment.MissingReturn
* MediaWiki.Commenting.FunctionComment.WrongStyle
* MediaWiki.FunctionComment.Missing.Public
* MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment
Change-Id: I063d035702bf538bcf1b05730c295a09210eb2d1
For search-style inputboxes, if you have `searchfilter=foo` as a
parameter, it will append `foo` after the search term. This is
useful for leveraging search filters in custom search boxes without
exposing it to the user.
Bug: T147951
Change-Id: Ie23ce220ff9657c38fe5b41195e297ca7cebf7f1
Added "useve" option to commentbox and createbox to decide, if these
inputboxes should redirect to the wikitext editor (default) or the
VE editor (if it is installed).
Bug: T89341
Change-Id: I9df0e3c00f7eb4bf4146532a0fef57f8b0e3d9d9
If there is no line break between the button and the input field (both
fields are in the same line), don't add a margin-bottom[1] to the inputfield.
[1] Originally added to make some space between the button and the input field,
which doesn't make sense, if both are in the same line. Added in:
Follow up: I6435df752530
Bug: T108512
Change-Id: I51f3ede288a220a54937a7b79dc9366e0a031db8
'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