Difference between revisions of "ParserFunctions - Mediawiki"

From Help Wiki
m (subst applied to Template:TwoColumn)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
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:
+
 
 +
<div class="container-fluid">
 +
<div class="row">
 +
<div class="col-md-8">
 +
<div class="lead">
 +
Information on using Parser Functions in Mediawiki.
 +
</div>
 +
 
 +
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...}}
  
See http://meta.wikimedia.org/wiki/WM:PF for a complete description of functionality and syntax.
+
See https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions for a complete description of functionality and syntax.
  
  
 
'''Example:'''
 
'''Example:'''
  <nowiki>{{ '''#time''': <tt>"The month is" F</tt> }}</nowiki> → {{ #time: "The month is" F }}
+
  <nowiki>{{ #time: "The month is" F }}</nowiki> → {{ #time: "The month is" F }}
 +
 
 +
 
 +
<!-- end col-md-8 -->
 +
</div>
 +
<div class="col-md-1"></div>
 +
<div class="col-md-3 sidebar">
 +
{{Mediawiki Help}}
 +
{{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 17: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 March