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

Release status:Extension status unmaintained

ImplementationTemplate:Extension#type Special page
DescriptionTemplate:Extension#description Allows to create a hyperlink to a template (or to a normal wiki page) with parameter passing
Author(s)Template:Extension#username Gero Scholz (Algorithmixtalk)
Latest versionTemplate:Extension#version 1.2 (2009-05-27)
MediaWikiTemplate:Extension#mediawiki 1.18+
Database changesTemplate:Extension#needs-updatephp No
LicenseTemplate:Extension#license GNU General Public License 2.0 or later
Download Template:WikimediaDownload/svn
ExampleTemplate:Extension#example dpldemo website

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

Check usage and version matrix.

The Call extension allows to create dynamic wiki pages by passing parameters. It can be used at the browser's command line or within wiki text.


  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'Call' );
  • YesY Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

To users running MediaWiki 1.24 or earlier:

The instructions above describe the new way of installing this extension using wfLoadExtension() If you need to install this extension on these earlier versions (MediaWiki 1.24 and earlier), instead of wfLoadExtension( 'Call' );, you need to use:

require_once "$IP/extensions/Call/Call.php";


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.

See also[edit]