Extension:TemplateInfo

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
TemplateInfo

Release status: experimental

Implementation Tag, API
Description Defines a tag, <templateinfo>, that templates can use to provide an XML description of themselves
Author(s) Yaron Koren <yaron57@gmail.com>, Roan Kattouw
Last version 0.3.1 (July 2010)
MediaWiki 1.16.* or greater
License GPL
Download Download snapshot
Subversion [Help]

Browse source code
View code changes

Example Demo page for extension
Hooks used
ParserFirstCallInit

Check usage (experimental)

Contents

[edit] Description

TemplateInfo is an extension to MediaWiki that defines a tag, <templateinfo>, that templates can use to provide an XML description of themselves. This extension was developed in 2010 as part of the Wikipedia Usability Initiative, with the intention of using TemplateInfo in order to provide forms to edit template calls within pages. You can read more about the overall project here.

TemplateInfo was created to support a user interface in which each template call within an edit pages is replaced by a small image which, when clicked on, brings up a popup form in which users can edit the template call's rows. Unfortunately, usability testing showed that this interface was confusing to users who wanted to edit that template-based data. Therefore, for the time being the overall project, and the TemplateInfo extension, have been abandoned. However, there's no reason why TemplateInfo can't be used for future template-editing projects.

[edit] Code and download

You can download the code via SVN from the MediaWiki source code repository, at http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/TemplateInfo/. From a command line, you can call the following:

svn checkout http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/TemplateInfo/

To view the code online, including version history for each file, you can go here.

[edit] Installation

After you've obtained a 'TemplateInfo' directory, place this directory within the main MediaWiki 'extensions' directory. Then, in the file 'LocalSettings.php' in the main MediaWiki directory, add the following line:

include_once("$IP/extensions/TemplateInfo/TemplateInfo.php");

[edit] Author

TemplateInfo was written by Yaron Koren and Roan Kattouw, and based on planning work also done by Trevor Parscal and Nimish Gautam. For any questions or comments, please contact Yaron, at yaron57@gmail.com.

[edit] Version

TemplateInfo is currently at version 0.3.1.

[edit] Contributing to the project

[edit] Bugs and feature requests

Send any bug reports and requests to Yaron Koren, at yaron57 -at- gmail.com.

[edit] Contributing patches to the project

If you found some bug and fixed it, or if you wrote code for a new feature, please create a patch by going to the "TemplateInfo" directory, and typing:

svn diff > descriptivename.patch

Then send this patch, with a description, to Yaron Koren.

Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox