Topic on Project:Support desk

Evolution and evolvability (talkcontribs)

(also posted at Extension talk:InputBox)

Is there any way to implement an option in the InputBox extension 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.:

<inputbox>
type = create
prefixes = Option1/**, Option2/, Option3/
</inputbox>

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

<inputbox>
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
</inputbox

Would that be something possible to implement?

Ciencia Al Poder (talkcontribs)

InputBox does not support that, and it would require modifications to the input box extension. Since you ask for a WMF wiki, you should open up a bugreport to request that, but don't expect it to be implemented soon (if ever implemented). You may have more luck implementing it in JavaScript.

Evolution and evolvability (talkcontribs)

Thanks for the recommendation. Sadly javascript is well beyond my abilities. Useful to know that it's not an easy tweak though.