Author: tomwkbug
Description:
EditPage.php patch to support preload parameter substitution
Preloaded text (text included into new pages using edit links of the form
http://www.mediawiki.org/wiki/example?action=edit&preload=Template:ExamplePreload ) currently cannot use parameter substitution. I think it would be useful to be able to pass parameters for {{{ }}} substitution as part of the &preload parameter.
The attached patch to EditPage.php allows parameters to be provided, ie. support for
&preload=egtemplate|param=something|one|
which would substitute {{{param}}} and {{{1}}} in egtemplate before creating the new page.
My approach is a bit kludgy and naive, probably the preload page should be properly passed through the parser, but I think could be still be useful.
Version: unspecified
Severity: enhancement
Attached: