Open main menu

Extension talk:InputBox

About this board

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

Is autocompletion possible in search type InputBox?

Quiddity (WMF) (talkcontribs)
Reply to "Autocomplete possible?"

%5B0%5D inserted into URL in stead of %5B%5D

Evolution and evolvability (talkcontribs)

There seems to be an issue with the preloadparams[] = parameter, where instead of including %5B%5D the text %5B0%5D is included, where the extra "0" prevevnts it from functioning.

see example:

Any ideas for fixing this?

Ciencia Al Poder (talkcontribs)
Reply to "%5B0%5D inserted into URL in stead of %5B%5D"

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

2 (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.

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

Is there a way to look for/create pages with suffixes, as in prefix? If not, I don't suppose it would be a viable implementation? It'd be hella useful in some case.

Reply to "Suffix search/creation?"

Entering Content of New Section?

Johnywhy (talkcontribs)

I'd like an input box setup to create a new section to an existing page.

  • The user would enter the content of the new section
  • The section title would be hardcoded into the inputbox.
  • The page name would be hardcoded into the inputbox.
  • On submitting, the user would not be redirected to the target-page-- they'd remain on the current page.

Reading the extension manual, it seems none of this would be possible. Hope someone can prove me wrong.

Ciencia Al Poder (talkcontribs)

It's not possible. You'll need to

  • search for another extension (if one exists)
  • code your own one
  • use JavaScript for that and use the api to create the section on submit.
Johnywhy (talkcontribs)
This post was hidden by Ciencia Al Poder (history)
Johnywhy (talkcontribs)
Ciencia Al Poder (talkcontribs)

If the edit is going to be done on the same wiki where the JavaScript is being executed, JavaScript will be sending the same cookies that use the browser. Then, you don't need to login with JavaScript.

Johnywhy (talkcontribs)

You mean cookies for the user-login?

I thought bot-login is separate from user-login.

Ciencia Al Poder (talkcontribs)

I'd guess you want your users edit under their main account and not under their bot account. If not, disregard my previous comment.

Johnywhy (talkcontribs)

We need our bot to perform write-actions as logged-in user.

But also need to perform reads. i guess the reads could be under bot account, or user account-- doesn't matter cuz there's no write being logged.

So, since we're doing writes as logged-in user, then will keep things simple to perform reads with same cred.

Good idea!

Now i have to figure out how a bot can use the logged-user's cred.

Ciencia Al Poder (talkcontribs)

I don't see any relation between the original question (being able to create a new section from an input box) and bot edits.

Johnywhy (talkcontribs)
Reply to "Entering Content of New Section?"
Barny1952 (talkcontribs)

I am running Mediawiki version 1.30. I have inserted the line <wfLoadExtension( 'InputBox' );> in LocalSettings.php . In addition I have downloaded the latest <InputBox>-files and copied them into /extensions/InputBox/. But in Special:Version this extension <InputBox> did not appear in the listing. And after writing





in the main page did not make appear the create box.

Can anybody help me?

Addendum: Now it works. I have changed the chmod of LocalSettings.php to 644. By upgrading my wikimedia installation it was set to 444.

Jenbme (talkcontribs)

I have the same issue – but chmod on LocalSettings.php is set to 644. Any other thoughts as to why this might not be working?

Barny1952 (talkcontribs)

I am sorry, but I have made no futher investigastions on this issue.

Reply to "Extension: InpuBox not activated"
Evolution and evolvability (talkcontribs)

Is there any way to implement an option to choose between basepage prefixes in the same way that |namespaces= can search a specific namespace?

I would like to be able use the |type=create option with a preset list of prefixes, e.g.:

type = create
prefixes = Option1/**, Option2/, Option3/

For context, I'm looking to include on v:WikiJournal_Preprints the following:

type        = create
buttonlabel = Create pre-print
placeholder = Pre-print title
prefixes      = WikiJournal of Medicine/**, WikiJournal of Science/, WikiJournal of Humanities/, WikiJournal of Extra/
break       = no
preload     = WikiJournal_Preprints/preload_draft

Would that be something possible to implement?

Johnywhy (talkcontribs)

i would like this too, but just using existing namespaces.

Reply to "Multiple basepage prefix option?"

How can I allow a user to search by pageid?

Stevenpcox (talkcontribs)

I would like users to be able to look up an article based on pageid.

Using ?curid=PAGEID I can add the pageid to a url and go directly to the page. I would like to have a search function where the user input the pageid into a field, mediawiki appends the URL and the desired page opens up.

This should be easy. The only thing I cannot figure out is how to have the user type the pageid into a field and hit enter. From there I can turn it into a variable and inject it into the URL.

Krabina (talkcontribs)

I was looking for the same thing. Guess you have to use the Extension:PageForms for this (Query form).

Reply to "How can I allow a user to search by pageid?"

Create inputbox and an empty input

1 (talkcontribs)

Pressing the 'create' button when the input box is empty and a 'prefix' is set will lead to the editor editing the prefix.

This behaviour is undesirable. A notification should inform that user that a page with an empty name can not be created.

Reply to "Create inputbox and an empty input"
Loman87 (talkcontribs)


I have a question about the parameter width: is there a trick to render it proportional to the screen dimension? E.g., in my wiki I have an InputBox on the homepage and it has the width parameter set to 100, which is good for the most of desktop screen. But, if I visit the homepage from a mobile device, the width turns to be too wide.

I tried to include the inputbox in a div, setting style etc., but the final result doesn't change.

Any ideas?



Kaganer (talkcontribs)

Please try this code:

<div style="width:auto;">

In my browser this is worked.

Loman87 (talkcontribs)


I tried but it didn't work for me. Have you tried to connect to your wiki via a mobile device?

Reply to "Width parameter"
Return to "InputBox" page.