Topic on Extension talk:InputBox

preloadparams[] Doesn't work (version 1.24.1)

6
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

<inputbox>
type=create
preload=Template:Preload_Page
preloadparams[]=abcde
</inputbox>

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?

Thanks

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.

75.175.9.66 (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).

Thanks

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