Extension talk:InputBox

Some feature requests

ParameterDescriptionScopeNotesExampleResultPhabricator task
preloadtemplate= Similar to preload= with the difference, that it automatically creates what would otherwise be loaded from, let's say, Template:Example/preload by taking Template:Example's required parameters from the template's TemplateData create needs Extension:TemplateData to work
<inputbox>
preloadtemplate=Template:Example
</inputbox>
T382667
preloadtemplatefilter[]= Overwrites preloadtemplate= so that not the required parameters from template's TemplateData are used but the ones provided by preloadtemplatefilter[]= create needs Extension:TemplateData to work, only works in combination with preloadtemplate=, doesn't work with preloadtemplateparams[]=, defaults to required
<inputbox>
preloadtemplate=Template:Example
preloadtemplatefilter[]=required
</inputbox>

or

<inputbox>
preloadtemplate=Template:Example
preloadtemplatefilter[]=suggested
</inputbox>
T382667
preloadtemplateparams[]= Overwrites preloadtemplate= so that not the required parameters from template's TemplateData are used but the ones provided by preloadtemplateparams[]= create needs Extension:TemplateData to work, only works in combination with preloadtemplate=, doesn't work with preloadtemplatefilter[]=
<inputbox>
preloadtemplate=Template:Example
preloadtemplateparams[]=Faction
preloadtemplateparams[]=Years active
</inputbox>
T382667
preloadparaminputs[]=
or preloadparaminputs=
Similar to preloadparams[]= with the difference, that additional input fields are shown. When Extension:TemplateData is installed, the inputs could differ based on the parameter properties create
<inputbox>
preloadtemplate=Template:Example
preloadparaminputs[]=Faction
preloadparaminputs[]=Rank
</inputbox>

or

<inputbox>
preloadtemplate=Template:Example
preloadparams[]=Faction
preloadparams[]=Rank
preloadparaminputs=true
</inputbox>
T382683
preloadtext=
or preloadinline=
or preloadwikitext=
Similar to preload= with the difference, that, instead of loading wikitext from a separate page, the wikitext can provided right after the parameter create
<inputbox>
preloadtext='''Lorem ipsum''' was a {{{1}}}
</inputbox>

or

<inputbox>
preloadinline='''Lorem ipsum''' was a {{{1}}}
</inputbox>

or

<inputbox>
preloadwikitext='''Lorem ipsum''' was a {{{1}}}
</inputbox>
T382668
preloadcategories[]= Adds categories to create page form, appending it to the content added by preload=, preloadtemplate= or preloadtext= create
<inputbox>
preloadtext=John Doe is the CEO of Acme Corp.
preloadcategories[]=Character
</inputbox>

John Doe is the CEO of Acme Corp.
[[Category:Character]]

T382670
tags[]
or edittags[]=
or changetags[]=
or revisiontags[]=
Adds edit/change/revision tags to the revision after the user creates the article create
<inputbox>
tags[]=mw-inputbox-create
</inputbox>
T382671
slot= When using multi-content revision content models, the page will be edited in single-slot mode and the content from the edit form will be saved into the assigned slot rather than the default slot create only works, when your content model supports multiple slots
<inputbox>
slot=foo
</inputbox>
T382673
createonly Similar to redlink but deactivates the submit button, turns the input's border red and displays a notice below when the page already exists. create
<inputbox>
default=Main page
createonly
</inputbox>
T382675
returnto= Redirects the user to a given page instead of the created article when the user submits the form create
<inputbox>
default=John Doe
returnto=Template:Inbox character/Thanks
</inputbox>
T382676
section= Instead of creating a page, only create a section create
<inputbox>
section=See also
</inputbox>
prependtext=
and appendtext=
Prepends and/or appends text to the page (after saving?) create
<inputbox>
prependtext=The user has written the following into the input form
appendtext=That's what the user has written into the input form
preloadtext=some custom content
</inputbox>

The user has written the following into the input form
That's what the user has written into the input form
some custom content

T382670
titleprepend=
and titleappend=
Prepends and/or appends the user-chosen page title create
<inputbox>
default=Character
namespace=Template
titleprepend=Infobox "
titleappend="
</inputbox>

Template:Infobox "Character" T382677
type=content Uses the input text as content for the edit form rather than the title (might be rendered as a textarea, but that might require something like multiline=yes, displaying an additional input for the title would also be optional here) create
<inputbox>
type=content
</inputbox>

Template:Infobox "Character" T382679

Minilexikon (talk) 15:07, 21 December 2024 (UTC)

Width is not working

Width parameter is not working in mobile. see R1F4T (talk) 19:49, 26 December 2024 (UTC)

way for new talk page

section? like I want to be able to specify a page(example: wiki/User_Talk:Twineee) and it will create a section on that page with the title that you entered into the input or even the body. Twineeea (talk) 22:30, 29 December 2024 (UTC)

How to left-align a form

How to left-align a form generated via <inputbox>? Perohanych (talk) 19:01, 16 February 2025 (UTC)

@Perohanych see https://www.mediawiki.org/wiki/Extension:InputBox#Alignment does this help? Gryllida 11:39, 12 June 2025 (UTC)

how to open in new page

i have an inputbox to make a new page

how do i make that newly being made page open in a NEW BROWSER TAB

like target=_blank for a link


this should open in a new tab, without closing this page. how? thanks Gryllida 11:35, 12 June 2025 (UTC)

Template:Helpme Gryllida 19:06, 12 June 2025 (UTC)