https://bugzilla.wikimedia.org/show_bug.cgi?id=17001
Summary: Allow Inputbox to accept templates as well as pages for
its parameters
Product: MediaWiki extensions
Version: any
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: Normal
Component: Inputbox
AssignedTo: [email protected]
ReportedBy: [email protected]
At present the instructions and default text for Inputbox must be wiki pages.
It would allow exceptional flexibility if these could also be templates:
<inputbox>
type=comment
buttonlabel=Click me to create this page about a star
editintro={{My instructions|STAR}}
preload={{My template|STAR}}
default=User:Foo/Default page
</inputbox>
<inputbox>
type=comment
buttonlabel=Click me to create this page about a planet
editintro={{My instructions|PLANET}}
preload={{My template|PLANET}}
default=User:Foo/Default page
</inputbox>
[[Template:My instructions]]
This template is for an article about {{#ifeq:{{{1}}}|STAR|a star|a planet}}.
If this is wrong please click BACK on your browser.}}
[[Template:My template]]
Name of {{#ifeq:{{{1}}}|STAR|star|planet}}:
Mass of {{#ifeq:{{{1}}}|STAR|star|planet}}:
{{#ifeq:{{{1}}}|PLANET|Star the planet orbits: | }}
For a current example, see the [[w:WP:SPI]] page, where the input instructions
and preload would vary slightly depending whether Checkuser will be requested
or not, to reference CU and allow a space for it, or not.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l