Extension talk:InputBox
Add topicAppearance
Latest comment: 10 hours ago by Minilexikon in topic Some feature requests
Archives
| ||
---|---|---|
| ||
Some feature requests
[edit]Parameter | Description | Scope | Notes | Example | Result |
---|---|---|---|---|---|
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>
|
|
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>
|
|
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>
|
|
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>
|
||
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>
|
||
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>
|
| |
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>
|
||
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>
|
|
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>
|
||
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>
|
||
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>
|
| |
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"
| |
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"
|