Extension:TemplateAdventures
TemplateAdventures Release status: experimental |
|
---|---|
Implementation | Parser functions |
Description | Recreation of popular templates into PHP |
Author(s) | Svip (Svippongtalk) |
Last version | 0.2 (19 April 2011) |
MediaWiki | 1.15+ |
License | DWTFYWWI |
Download | |
Example | http://dev.sviip.dk/Citation_core_test |
Check usage (experimental) |
TemplateAdventures is an extension intended 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.
[edit] Documentation
[edit] Citation template
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.