Last modified: 2012-11-03 09:26:27 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T19001, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 17001 - Allow Inputbox to accept templates as well as pages for its parameters
Allow Inputbox to accept templates as well as pages for its parameters
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
InputBox (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-01-12 22:06 UTC by FT2
Modified: 2012-11-03 09:26 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description FT2 2009-01-12 22:06:01 UTC
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.
Comment 1 FT2 2009-01-12 22:07:48 UTC
(The point being that if slight variations on the inputbox instructions or template might exist, then it would be very efficient to be able to have one template with a parameter (easy to maintain) rather than separate pages (which could go out of sync).
Comment 2 X! 2009-01-13 01:52:41 UTC
I'm working on this, along with bug 17002. 
Comment 3 P.Copp 2009-01-13 02:03:01 UTC
See also related bugs bug 12853 and bug 5210. 
Comment 4 Mark A. Hershberger 2011-06-14 00:22:33 UTC
unassigned Trevor from Inputbox extension.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links