Difference between revisions of "ParserFunctions - Mediawiki"

From Help Wiki
m
m (subst applied to Template:TwoColumn)
 
Line 1: Line 1:
{{TwoColumn|lead=
+
 
 +
<div class="container-fluid">
 +
<div class="row">
 +
<div class="col-md-8">
 +
<div class="lead">
 
Information on using Parser Functions in Mediawiki.
 
Information on using Parser Functions in Mediawiki.
|content=
+
</div>
 +
 
 
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...}}
Line 10: Line 15:
 
'''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=
+
 
 +
 
 +
<!-- end col-md-8 -->
 +
</div>
 +
<div class="col-md-1"></div>
 +
<div class="col-md-3 sidebar">
 
{{Mediawiki Help}}
 
{{Mediawiki Help}}
 
{{GetHelp}}
 
{{GetHelp}}
}}
+
 
 +
<!-- end col-md-3-->
 +
</div>
 +
<!-- end row-->
 +
</div>
 +
<!-- end container-->
 +
</div>
 +
<!-- Generator=Template:TwoColumn -->
 +
__NOTOC__
 +
__NOEDITSECTION__
 
[[Category:Mediawiki]]
 
[[Category:Mediawiki]]

Latest revision as of 16:01, 14 August 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 February