Difference between revisions of "ParserFunctions - Mediawiki"

From Help Wiki
m
Line 1: Line 1:
 
{{TwoColumn|lead=
 
{{TwoColumn|lead=
Information on the extension ParserFunctions.
+
Information on using Parser Functions in Mediawiki.
 
|content=
 
|content=
The MediaWiki extension ParserFunctions is a collection of parser functions (note the difference between the name of the collection, and the general term). These parser functions have a hash character in front of the function name, so they typically have the syntax:
+
Parser functions have a hash character in front of the function name, so they typically have the syntax:
 
  {{ #functionname: argument 1 | argument 2 | argument 3...}}
 
  {{ #functionname: argument 1 | argument 2 | argument 3...}}
  

Revision as of 15:30, 28 March 2017

Information on using Parser Functions in Mediawiki.

Parser functions have a hash character in front of the function name, so they typically have the syntax:

{{ #functionname: argument 1 | argument 2 | argument 3...}}

See https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions for a complete description of functionality and syntax.


Example:

{{ #time: "The month is" F }} → The month is November