Extension talk:InputBox
For the page history, see also here. / previous talk on this page
- [History↑]
Contents
![]() First page |
![]() Previous page |
![]() Next page |
![]() Last page |
Check out rationalwikiwikiwiki:WikiIndex. This page transcludes rationalwikiwikiwiki:Template:Wiki, which has an inputbox tag in it with urlparameter=search URL as a parameter. That tells it to look for |search URL= in the transcluded template. So, by putting |search URL=http://wikiindex.org/, that creates a search bar to search WikiIndex. This is implemented by a hacked InputBox.classes.php using some code borrowed from ChangeWikiaEngine.php (although I probably should have borrowed from Manual:Chris_G's_botclasses/ParseMirroredWikiIndexBot.php instead, since it has more robust template parsing) along with a slightly hacked InputBox.hooks.php.
I've installed InputBox to preload a page with some text using a simple button.
I've installed also BoilerRoom for those users able to choose which text to be inserted into a page, but with BoilerRoom InputText is not longer able to preload the text.
When using this to make a new section, is there a magic word or some other way to access the new section name that the user just typed into the box for display in the editintro? Please ping me at w:User talk:Cupco if so. Thanks! Cupco (talk) 17:57, 21 September 2012 (UTC)
Could you add an option to open the results in a new tab?
There are many search boxes for searching Village Pump and other archives on Wikipedia, the Commons, etc.. Unfortunately, those search boxes are usually not on separate pages that can be bookmarked. So one can not find a way to keep the Village Pump page open in one tab, and the search in another tab.
It is the job of the Web browser, not of the Web site.
For example, with nice browsers, I can validate a form and open its result as a new background tab by Apple-clicking its submit button, or by pressing Apple Return or Apple Enter.
Nnemo
According to this article Apple Safari is the worst browser out of the six browsers that were compared.
Browsers are inconsistent or lacking in how they open links in new tabs. I usually right-click in Firefox and use the context menu to open a link in a new tab or window.
But search forms created by InputBox do not allow this. Is there a way to make the search forms here open to new tabs by right-clicking?:
In Firefox pressing Ctrl while clicking search or the search icon does not open the search result list in a new tab. I tried pressing various other keys, and none work.
- Safari: Apple + Submit
- Chrome: Ctrl + Submit
- Firefox: https://addons.mozilla.org/en-US/firefox/addon/tabsubmit/
Forget all my posts, I thought the OP talks about openeing the search page in a new tab.
Thanks for the Firefox addon link. The Firefox addon works, but that will not help most people. It would be nice if the submit button for MediaWiki inputbox forms was also in the form of a link. In other words when one runs a mouse cursor over it a link would show up. That way it could be right-clicked and opened in a new tab.
That would not be HTML conform. The browser decides how a submitton looks and works like.
True, but MediaWiki can decide to combine the 2 functions of links and submit buttons. This may be relevant too: https://bugzilla.mozilla.org/show_bug.cgi?id=17754
There are some scripts that work. See:
Hello to all. I just installed the extenion "InputBox-MW1.19-110961.tar.tar" and added the reference in the LocalSettings.php.
I get this error when I try to view my user-created pages : Fatal error: Call to undefined method MediaWiki::getAction() in /home/thebigma/public_html/wiki/extensions/InputBox/InputBox.hooks.php on line 55"
Line 55 is : if( $wiki->getAction( $request ) !== 'edit' ){
I can however click the back arrow and view my home page or the special pages.
I commented the if statement out... /**if( $wiki->getAction( $request ) !== 'edit' ){ # not our problem return true; }*/ ...and the wiki is again functional. (Of course, I expected to see something special. Still trying to understand how to get this extension working.)
Is there any way to use this extension to add to a table? For example... If I had a table that was logging the use of a car...
| Name | Date | Mileage | Purpose |
|---|---|---|---|
| John | 6/13/12 | 13 miles | Getting groceries |
Is it possible to create an input box with 4 boxes for "Name", "Date", "Mileage" and "Purpose" and set it up so that clicking Go will add this to the end of the table?
Hello,
The texts in the buttons never end with a period. Which is like in all user interfaces I have seen.
Except the button “Essayez la correspondance exacte.” Which is weird.
Please remove that period.
Thanks, and keep up the good work !
Nnemo
Done with this edit. Please allow some time to get through to existing wikis. Cheers
Could we get support for the placeholder attribute? –124.180.123.236 19:21, 22 May 2012 (UTC)
It should already support placeholder attribute since this commit: https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/extensions/InputBox.git;a=commitdiff;h=6b49e7d6d899dfe276c6993d53874475e7bedb5e
If you're using an up to date version, you just need to use placeholder=. :)
Is there a way to hack this so that the search field can be larger vertically? 24.130.249.87
I only want to affect the inputbox form. Not the mediawiki search form. Sorry for the confusion. I should have typed "How do I make the inpubox field vertically taller" I don't know how to use CSS to target the extension 67.59.193.62
Is it possible to change what wikipage is displayed once the inputbox is submitted? Example: https://www.mediawiki.org/wiki/Git/New_repositories/Requests
Width doesn't work and is there any way to set it up so that I can get two buttons with create instead of just one?
Width doesn't work. I've tried changing it from width=32 to width =320 and when I do a 123456789012346789012345 check, my width is 25 no matter what. Not sure why this is.. (It could be the .css on my end, but I'm not sure where I would check for that.)
Is there any way to set it up so that I can get two buttons with create instead of just one? I want to be able to have someone type in a page name and either create the page, or create a talk page with button names like [Create Page] - [Talk about it]. How can I do this?
Thank you,
1) Check your CSS cos it works. width=3:
2) Two buttons with different landing pages for one input box? That requires a HTML form which is not possible without extensions. Check Extension:CreateArticle and Extension:SecureHTML.
Is it possible?
For example, I got a page with two sections, I want to use the InputBox to create a new section between those two sections or a new section inside the first one.
I got this:
== 1 == == 2 ==
And I want this:
== 1 == == New Section == == 2 ==
Or this:
== 1 == === New Section === == 2 ==
I don't want the new section to go to the end of the page.
Are there any plans to support other forms of form input in the future? Like check-boxes, radio buttons, or drop-down lists? Is there already an Extension available with all of these abilities that my searches haven't found? Thanx -- Technical 13 (talk) 18:36, 17 March 2012 (UTC)
Is it possible to include formatting on the buttonlabels? The standard search box seems to use bold "Go" and standard "search". Thanks.
Along those lines, anyone have any thoughts on how to add style settings to the submit button as well? Example, I would like to enlarge the text for the "Join" button on the top section of this page: Project:WikiProject Extensions/Participants
If it's not currently possible, perhaps adding a setting to the code? I took a quick look and seems pretty straight-forward (for the above as well). I'd be willing to help with that.
![]() First page |
![]() Previous page |
![]() Next page |
![]() Last page |



