Difference between revisions of "ParserFunctions - Mediawiki"

From Help Wiki
m
Line 1: Line 1:
 +
{{TwoColumn|lead=
 +
Information on the extension ParserFunctions.
 +
|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:
 
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:
 
  {{ #functionname: argument 1 | argument 2 | argument 3...}}
 
  {{ #functionname: argument 1 | argument 2 | argument 3...}}
Line 7: Line 10:
 
'''Example:'''
 
'''Example:'''
 
  <nowiki>{{ #time: "The month is" F }}</nowiki> → {{ #time: "The month is" F }}
 
  <nowiki>{{ #time: "The month is" F }}</nowiki> → {{ #time: "The month is" F }}
 
+
|sidebar=
 
{{Mediawiki Help}}
 
{{Mediawiki Help}}
 +
{{GetHelp}}
 +
}}
 
[[Category:Mediawiki]]
 
[[Category:Mediawiki]]

Revision as of 15:52, 15 November 2016

Information on the extension ParserFunctions.

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:

{{ #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 April