Extension:TemplateEdit

The TemplateEdit extension allowa users to edit used templates in a form and defining those forms based on the templates used inside the wiki. Creating new articles using templates is also supported.

Since writing a "real" grammar parser for MediaWiki markup is not an easy task, for now the parser provided below is only working for standard cases. As you can see in the comments of code, some Magic Words etc. are still missing.

The idea for this extension was given by users confused with large templates with documentation on a separate page. The editor allows presenting those in forms, resorting the parameters and removing used old or undefined parameters. The possibility of defining pick-lists also stops another source of typos.

Usage
Let us say, we used two nested templates in a page If we now defined editors for those under Template:Example/Editor and Template:Logo/Editor, like this one: |Example Template=TITLE |Name=TEXT!MUST!Please enter the name here |Status=PICK!MUST!Status of the page!alpha;beta;released |Logo=TEXT!!Pleas use the Logo-Template here |Author=TEXT!!If you know him, enter the Author If you now hit the new Link "Edit Templates" in your Toolbox, you receive something like this:



After selecting template Example, you woul get an editor as defined above:



Download instructions
Please cut and paste the code found below and place it in  etc. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

TemplateEdit.alias.php
Place the following in :

TemplateParser.php
Place the following in :

SpecialTemplateEdit.php
Place the following in :