Extension:CustomEdit

With this extension you can present users with a custom editing form for certain pages on your wiki.

Example
This example assumes you have a set of articles named Person/John_Smith, Person/John_Brown ... etc

Whenever you are editing an article named Person/*, a form is shown with fields Sex, Age, Description.

When you first create the article, the fields are put together with a template named Person, eg:

My description

When you next edit the article, this form extracts the fields from the text and allows the user to edit them.

You also need to create a template called Template:Person to display the fields as you would like. For example the template could be simply be:

Age: Sex:

You also have to register the name of the template to the page MediaWiki:CustomEditTemplates in order to activate it for CustomEdit:
 * Template:Person - used to describe persons

Of course you can add more templates to this page e.g. "Person", "Car", "Room" etc.

Installation
To enable this extension place the following in LocalSettings.php:

require_once("extensions/CustomEdit.php");

History
This extension is based on this version of User:Barrylb/Custom article editing form with fields/CustomEdit.php. I'm not sure if it works with MediaWiki 1.12 without any changes, but if you implement these changes it should definately.