Extension talk:InputBox

Jump to: navigation, search

About this board

For the page history, see also here. / previous talk on this page

By clicking "Add topic", you agree to our Terms of Use and agree to irrevocably release your text under the CC BY-SA 3.0 License and GFDL
Perhelion (talkcontribs)

I wondering there is no option for this as old templates support this on Wikimedia like Template:Clickable_button, I see this because someone used some unicode signs which are not really supported by many systems: 🔍

Quiddity (WMF) (talkcontribs)

I believe this would be covered by phab:T106948 ("Convert InputBox to use OOJs UI where possible"), but I'll ask some folks...

Quiddity (WMF) (talkcontribs)

I believe that task would cover the issue of extensions/tools which desire to have consistent/pre-determined icons within buttons, see examples in OOjs_UI/Widgets/Buttons_and_Switches. So, after that work was done, additional work could be done on the InputBox extension to include a magnifying-glass icon on the type=fulltext/search/search2 form input buttons by default. However, changing the image manually for each usage of the InputBox, would run counter to the desire for standardization (for a more intuitive/learn-able interface). HTH.

Reply to "why not jquery icons?"
SapoPT (talkcontribs)

Hi, I have a header search box but I can't find a way to edit it and use InputBox, more precisely i wanted to do something like this:

<inputbox>type=search namespaces=Main**,Help </inputbox>

So users could selected categories to search. How can I change this?


Quiddity (WMF) (talkcontribs)

That should work, assuming you mean "namespace" and not "categories". (See functional example at W:en:Help:Contents)

If you mean "categories", I don't believe it is possible to use the checkboxes for those. However, defaults could be entered in, per Help:CirrusSearch#Filters (intitle:, incategory: and linksto:). e.g.

 default=incategory:"Freeware games" incategory:"Art games" 


Reply to "Editing page header searchbox"
MSGJ (talkcontribs)

Can anyone provide an example to show how the "summary" parameter works? The example provided does not seem to have an edit summary.

Quiddity (WMF) (talkcontribs)

It doesn't seem to work with type "comment", only with "create" and "move". I'll update the docs.

Reply to "Use of "summary""
Ibutakov.smartec (talkcontribs)

is there any way to add button or smth to add namespace for new page from list? Ibutakov.smartec (talk) 16:09, 22 April 2016 (UTC)

Reply to "Namespaces for create form"
Mattho69 (talkcontribs)

Hi !

Is it possible to use InputBox with VisualEditor ?

Bozomal (talkcontribs)

I guess you are asking about the create article "problem"?

I'm a newbie, so probably what I'm suggesing might be very bad, but worked for me

here is suppoed to be a solution, but not working for me

so I search in the source files and found that if you change the file /extensions/Inputbox/Inputbox.classes.php and change action to veaction (see below) the magic happens. This doesn't work When you are using the parameter prefix, it won't create an article with prefix in the name.

$htmlOut .= Xml::openElement( 'input',
        'type' => 'hidden',
	'name' => 'veaction',
	'value' => 'edit',
Mpconnick (talkcontribs)

An easier way (now) to do this is add the parameter 'useve' for InputBox. I'm not sure when this was added, but I'm running MediaWiki 1.26.2.






Mattho69 (talkcontribs)

Thanks for that ;-)

Do you know if using a preload is possible with VisualEditor?

Swennet (talkcontribs)

@Mattho69 Did you manage to get preload working with VisualEditor?

Mpconnick (talkcontribs)

I'm not sure what you mean by preload. I'm pretty new to administering an instance of MediaWiki. Still figuring a lot out. Sorry I can't be of more help.

Mattho69 (talkcontribs)

@Swennet Not yet but I hope this will be available soon

@Mpconnick look at Manual:Creating pages with preloaded text

Thanks :-)

Reply to "VisualEditor"

Remove Flow so that the talkpage becomes usable

The Quixotic Potato (talkcontribs)

Can someone remove Flow? I would like to use this talkpage, and Flow is a buggy mess.

Kghbln (talkcontribs)

You apparently just managed to use this talk page using Flow.

Reply to "Remove Flow so that the talkpage becomes usable"

Getting the "Subject" string into preloadparams[]

Andreluciani (talkcontribs)

I'd like to make the preloadparams[] value equal to the "Subject" or 'title' field, when creating a new page.

I'm not sure if there is any easy way to do that, so I'm trying with some code management without success since I'm quite a beginner with php.

In that way I could set the only parameter I want to change ($1) to the title of the new page. If there's other way to do that, it would solve my problem as well.


Reply to "Getting the "Subject" string into preloadparams[]"

preloadparams[] Doesn't work (version 1.24.1)

Dshinks (talkcontribs)

Hi All,

I'm using InputBox for the first time. All seems to be working well apart from one feature: preloadparams[].

InputBox text


In the preload page I'm calling, I'm expecting it to replace the string $1 with the text abcde, but it just outputs $1.

Ideally, I want to pass in a category string (like [[category:categoryname]]) but I thought I'd just start off simple to get it working.

Any ideas where I'm going wrong?


Ciencia Al Poder (talkcontribs)

You're not going wrong, but apparently support for preloadparams was added for the 1.25 version of InputBox and it's not present in 1.24

Doing a grep of the code of 1.24 doesn't match anything for preloadparams, but for 1.25 it does. I've fixed the compatibility column. (talkcontribs)

The code to support preloadparams[] was added before the extension was forced into 1.24. I've got it running on 1.23 at the moment.

I had to pull the extension with git and force it back to the commit where support was added:

git clone https://git.wikimedia.org/git/mediawiki/extensions/InputBox.git
cd InputBox 
git reset --hard 474dd170d24e3710144a5ae0a4ddfea1b520773e

No idea about the stability. Its version shows up in Special:Version as "0.3.0 (474dd17) 01:47, 13 November 2014".

Andreluciani (talkcontribs)

Well, I'm having the exact same problem, but I have no shell access. Would be there any easier solution? (A whole mediawiki upgrade is possible but it would be great to solve without doing that).


Andreluciani (talkcontribs)

Actually I've solved this changing the code that comes with it. It's working just fine right now!

Reply to "preloadparams[] Doesn't work (version 1.24.1)"
Cavila (talkcontribs)

it would be great if this extension had options for word completion. Some of the code could perhaps be borrowed from Extension:Semantic Forms, which for example lets you autocomplete on a given namespace.

Emijrp (talkcontribs)

I found this Manual:Enabling autocomplete in a form but doesn't work for me.

Reply to "Autocomplete"

Search bar default settings?

Summary by AmazingTrans
AmazingTrans (talkcontribs)

Is it possible to make the top right search bar to select File & Main, other than Main only?

AmazingTrans (talkcontribs)

This was the solution: