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

Release status: stable

Implementation Special page
Description Create a hyperlink to a template (or to a normal wiki article) with parameter passing. Can be used at the browser's command line or within wiki text.
Author(s) Gero Scholz (Algorithmixtalk)
Latest version 1.2 (2009-05-27)
MediaWiki 1.7 and later
Database changes no
License No license specified
Download Template:WikimediaDownload/svn
Example on dpldemo website

the article name and an arbitrary set of parameters

Translate the Call extension if possible

Check usage and version matrix; code metrics

Purpose[edit | edit source]

With the Call-extension you can create dynamic wiki pages by passing parameters. Write something like

 [[Special:Call/MyTemplate,size=big,color=green,good morning!]]

in a wiki article or type

 http://mywiki/index.php?title=Special:Call/MyTemplate&size=big&color=green,nice day
 http://mywiki/index.php?title=Special:Call/:MyArticle,size=big,color=green,see you later.
 http://mywiki/index.php?title=Special:Call/:MyArticle&size=big&color=blue&good night!

Within template 'MyTemplate' or within article 'MyArticle' you reference parameters (by name or number) in the normal way:

 ... arbitrary text ...
                 Size is {{{size}}}, using {{{color}}} color.
 ... arbitrary text ...

Why should one do this?

  • Think of a 'menu page' where the user selects an option and you want to forward him to a wiki page depending on that option.
  • Did you develop a wiki template? Call it directly from the browser command line and pass parameters to test it.
  • Think of an article which contains a form (combo boxes, user input fields). Once the user has filled in the form you perform the desired action and then call the same article again so that the user can modify his input and try a second time (a good example for this technique can be found on the dpldemo website.

Download information[edit | edit source]

The latest Version 1.2 is only usable for Mediawiki version < 1.18.0. If you use Mediawiki version >= 1.8 download http://www.mediawiki.org/wiki/Special:ExtensionDistributor/Call If you use an incompatible version you might get an error like 'PHP Fatal error: Call to a member function addMessages() on a non-object in /var/www/clients/client8/web20/web/wiki/extensions/Call/Call_body.php on line 262'

Related extensions[edit | edit source]