Extension talk:InputBox

Jump to navigation Jump to search

About this board

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

Option to choose between the VisualEditor and source editor

NemesisAT (talkcontribs)

For wikis with the VisualEditor installed, I think it would be handy to have a setting that enables a selector that allows a user to choose between creating an article in the VisualEditor and the source editor. It would certainly be neater than having two separate boxes. (talkcontribs)


Reply to "Option to choose between the VisualEditor and source editor"

Customise Button and Text Field colour, drop-shadow, border, etc?

3 (talkcontribs)

Hi, is it possible to modify the button colours, borders etc? And maybe the search box also?

Domtron vox (talkcontribs)

Haven't tried this for the input box, but you can make custom changes to the mediawiki CSS via the MediaWiki:Common.css page. Giving it a quick look the CSS classes your interested in is "mw-ui-button", "mw-ui-input", "mw-ui-input-inline", and possibly "mw-inputbox-centered" for the whole form area. (I just pulled these from the browser via the JS dev tools)

A bit late, but maybe it is useful to you or someone else.

Matjung (talkcontribs)

I tried this. Changing MediaWiki:Common.css worked for me.

.mw-inputbox-centered {text-align:left} /* not centered any more */

Reply to "Customise Button and Text Field colour, drop-shadow, border, etc?"
Solstag (talkcontribs)

Ni! Especially for new page creation, it would be very useful if there was a parameter to launch the editor/action in a new tab or window. Quite often a page will have a button to create or edit another page, while the documentation pertaining to the activity to be developed on the next page is to be found in the original page where the inputbox is. There's a (very low) limit to what we can do to help users with only preloaded comments. I deal with this problem very frequently in my Wikiversity courses, but also in the organization of wikiprojects and editathons/workshops. This seems like a low hanging (and tasty) fruit. Abraços!

Quiddity (WMF) (talkcontribs)

That sounds like a good idea to me! I've quickly searched Phabricator and I don't see an existing request for this feature idea. Please do file a new task there. (Ideally, include a specific example or two). Thanks!

Solstag (talkcontribs)
Reply to "New target (tab/window)"

useve and preload doesn't work together

Mattho69 (talkcontribs)


I tried to converte some of our inputbox on fr.wikinews for using VE but it seems that useve is not working with preload parameter. (example here)

I look below and it seems to be the same issue that with prefix.

Ciencia Al Poder (talkcontribs)
Reply to "useve and preload doesn't work together"

Passing pagename as a category

Ziggurat146 (talkcontribs)

Firstly, sorry for the troubles as I'm new to mediawiki and can't find any beginner-friendly documentation that doesn't assume I can code in HTML/PHP, but hopefully this is an easy one.

I'm trying to use an InputBox to create a child page of the current page the InputBox is on, and for the life of me I cannot find a way to take the current PAGENAME and pass it to the created page to be it's Category. Can this be easily done, or am I destined to use a million and one templates for each of the possible categories? A crazy theory I had was to create a single page to be preloaded with the text 'Category:PAGENAME' (notated appropriately, of course), though I concluded it would likely grab the PAGENAME from the newly created page, which does me no good.

Thanks alot, I appreciate any help or guidance!

Ciencia Al Poder (talkcontribs)

In the preload page, you should put the category without variables nor PAGENAME. The category as-is.

This of course means you'll need to create one preload page for each page you put the inputbox in.

Reply to "Passing pagename as a category"

Problem when using prefix and preloadparams[] together

Filburt (talkcontribs)

I run in an issue when I try to pass the prefix (i.e. Category:) and the preloadparams[] parameter at the same time and call it in my template via $1. In the called URL, preloadparams[] becomes preloadparams[0] and this does not work with the template. If I remove the prefix parameter it stays with preloadparams[] and everything works as it should. Any idea?

Thanks a lot!

Filburt (talkcontribs)
Reply to "Problem when using prefix and preloadparams[] together"
RonnieV (talkcontribs)

Is there also a way to tell InputBox to not create a new section (== Section ==), but a subsection (=== Subsection ===)? Thanks in advance, ~~~~

Ciencia Al Poder (talkcontribs)

No, that's currently not possible

240F:C9:3F8:1:947C:360F:64F8:23EC (talkcontribs)

I want to change too.

section (== Section ==) is not something heavily uses

Reply to "Creating subsection"

Form field enter key behaviour

FrugalTPH (talkcontribs)

How would I go about controlling the behavior of the enter key when pressed when a form field has focus in a form?

The default appears to be that it submits the whole form, regardless of which input box is currently focussed.

Quiddity (WMF) (talkcontribs)

I believe that is the only behaviour possible, because it's just showing an HTML form within which that is the standard behaviour.

Reply to "Form field enter key behaviour"

Force inputbox to use Special:Search&profile=all&search=&fulltext=1

2 (talkcontribs)

Hi, is it possible to present on a page, exactly what we see when we go to Special:Search&profile=all&search=&fulltext=1 ?

To provide the advanced search options from the beginning, rather than having to first make an empty search?

Ciencia Al Poder (talkcontribs)

No. I suggest you add a link to the special:search page where you want this functionality instead of trying to create a replica of that page on another one.

Reply to "Force inputbox to use Special:Search&profile=all&search=&fulltext=1" (talkcontribs)

Is autocompletion possible in search type InputBox?

Quiddity (WMF) (talkcontribs) (talkcontribs)

Use Case: Build a google-like start page

Reply to "Autocomplete possible?"