Extension:TemplateAdventures

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

Release status:Extension status experimental

ImplementationTemplate:Extension#type Parser function
DescriptionTemplate:Extension#description Recreation of popular templates into PHP
Author(s)Template:Extension#username Svip (Svippongtalk)
Latest versionTemplate:Extension#version 0.3 (2011-05-04)
MediaWikiTemplate:Extension#mediawiki 1.15+
Database changesTemplate:Extension#needs-updatephp No
LicenseTemplate:Extension#license DWTFYWWI
Download Template:WikimediaDownload/svn
ExampleTemplate:Extension#example http://dev.sviip.dk/Citation_core_test
Hooks usedTemplate:Extension#hook
ParserFirstCallInitManual:Hooks/ParserFirstCallInit

Translate the TemplateAdventures extension if it is available at translatewiki.net

Check usage and version matrix.

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]

Citation template[edit]

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]