Help:Parser function: Difference between revisions

Content deleted Content added
+interwiki
link fix (moved to meta)
Line 10:
The function name is not case-sensitive. Further parameters (if any, depending on the function) are separated by "'''|'''".
 
Core parser functions are built into MediaWiki. For backwards compatibility, they typically have no leading hash character. Extension parser functions, such as those provided by the [[m:Help:ParserFunctions|ParserFunctions]] extension, typically have a leading hash character "#" to prevent collision with namespaces and interwiki prefixes.
 
MediaWiki's core parser functions are listed below.
Line 112:
===Terminology and history===
 
Core parser functions were originally collectively unnamed in the MediaWiki codebase, although they were informally referred to simply as "functions" by developers. At some time around February 2006, editors of this documentation labelled them "colon functions", an unusual term which was unknown to the developers and the majority of users. In April 2006, the [[m:Help:ParserFunctions|ParserFunctions]] extension was introduced, along with a new extension interface allowing efficient addition of arbitrary numbers of these entities, now labelled "parser functions". The syntax for the new parser functions was modelled on that of the old core parser functions, the main difference being the addition of the leading hash "#".
 
In July 2006, the parser function interface was extended to allow old-style hashless functions, and the old core parser functions were converted from using special-case code to the new parser function interface. They were moved to a CoreParserFunctions module. Thus today, there is no difference at all in syntax or functionality between core parser functions and extension parser functions, besides the leading hash convention.
Line 121:
===See also===
*[[Help:Magic words]]
*[[m:Help:ParserFunctions]]
*{{tim|wikivar}}