Page MenuHomePhabricator

Inputbox extension cannot be used in mediawiki parametrized templates
Closed, DuplicatePublic

Description

Author: lilian.robert

Description:
Hi,

As I need to allow my wiki users to create pages directly from a namespace with the name of the new page prefixed with namespace name, I would like to create a template "NewPageInNamespace" that contains that I can add to my namespaces with this code :

{{NewPageInNamespace|CP}}

where "CP" is the name of the current namespace.

The result should be a simple form where the user can type the name of his new page and, when submitting, the namespace name is automatically added as a prefix of the new page name.

I tried the inputbox extension that seemed interesting to me. Here is the source of my template :
Create in {{{1}}} :

<inputbox>
type=create
default={{{1}}}
break=no
buttonlabel=Create
</inputbox>

But the parameter is not interpreted in inputbox. The field contains "{{{1}}}" instead of "CP".

Regards


Version: unspecified
Severity: normal

Details

Reference
bz14389

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:13 PM
bzimport set Reference to bz14389.
bzimport added a subscriber: Unknown Object (MLST).
  • This bug has been marked as a duplicate of bug 2257 ***