Extension:TagToTemplate

Purpose
Substitute sections with MediaWiki templates.

Example 1
would be translated to.

Example 2
would be translated to.

Features

 * Secure: only users that have access to the 'MediaWiki' namespace can change the tag mapping
 * Tag mapping are configured through the parser function
 * Tag mapping table is located on the page MediaWiki:Registry/TagToTemplate

Usage
To do so, use the parser function to list all the required mappings.
 * Configure the page MediaWiki:Registry/TagToTemplate with the mapping table.

Example
Here is a sample MediaWiki:Registry/TagToTemplate page: Handle 'etag' tags; 'etag' sections will be substituted with

Handle 'php' tags; 'php' sections will be substituted with

Dependancies

 * StubManager extension