Extension:TemplateAdventures

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

Release status: experimental

Implementation Parser function
Description Recreation of popular templates into PHP
Author(s) Svip (Svippongtalk)
Latest version 0.3 (2011-05-04)
MediaWiki 1.15+
Database changes no
License DWTFYWWI
Download Template:WikimediaDownload/svn
Example http://dev.sviip.dk/Citation_core_test
Hooks used
ParserFirstCallInit

Translate the TemplateAdventures extension if possible

Check usage and version matrix; code metrics

The TemplateAdventures extentions intends to recreate popular templates, such as Template:Citation/core on the English Wikipedia, in PHP rather than letting them use wikicode. The templates have become so powerful and big, that they are becoming extremely slow during purges. Up to 30 seconds in response time. That is simply not good enough.

Documentation[edit | edit source]

Citation template[edit | edit source]

The {{citation/code}} replacement is known as {{#citation:}}.

The template works in much the same way as usual citation templates, with one noticeable exception: The first parameter is always used to define the type of citation. If none is given or the citation doesn't know the one given, 'default' is assumed. The citation type is used to define output formation, it does restrict the amount of input parameters.

See also[edit | edit source]