Last modified: 2008-06-03 10:03:02 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 T16389, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 14389 - Inputbox extension cannot be used in mediawiki parametrized templates
Inputbox extension cannot be used in mediawiki parametrized templates
Status: RESOLVED DUPLICATE of bug 2257
Product: MediaWiki extensions
Classification: Unclassified
InputBox (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-06-03 10:00 UTC by Lilian
Modified: 2008-06-03 10:03 UTC (History)
1 user (show)

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


Attachments

Description Lilian 2008-06-03 10:00:22 UTC
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
Comment 1 Roan Kattouw 2008-06-03 10:03:02 UTC

*** This bug has been marked as a duplicate of bug 2257 ***

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


Navigation
Links