Extension talk:InputBox

Jump to navigation Jump to search

About this board

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

%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: wikiversity.org/wiki/WikiJournal_Preprints

Any ideas for fixing this?

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

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?"

Could you implement an url=?

So9q (talkcontribs)
Reply to "Could you implement an url=?"

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"