[Mediawiki-l] Page creation (by template) extension.

Elliott F. Cable ecable at avxw.com
Tue May 30 08:03:45 UTC 2006


I wanted to create an extension that presents users with a form to  
create a page, or add to a page, based on a template. For instance,  
let's say i had a template that looked like this:

---- Wikipage: 'Template:Exampletemp' ----
{{{precontent}}}
=={{{title}}}==
{{{content}}}
---- End ----

I want to write an extension where users go to [[Special:Form/ 
Exampletemp]] and get a form like this:

Page name: _________
Precontent: <textarea>
Title: ______
Content: <textarea>

That, when filled out, should create a page following the template -  
same as using {{subst:Exampletemp}} would have, but easier for the  
end user - and smart, creating the form from the template's content.  
Does anybody think they could create something like this? How hard  
would it be? What concessions would have to be made, ETC? Would make  
lots of things easier for the end-users - both newbies looking to  
create a page following a template, and for existing users trying to  
make sure a crop of pages follow an agreed-upon format.



More information about the MediaWiki-l mailing list