Category:Parser extensions

Parser extensions change or enhance the way MediaWiki interperts Wiki markup. These extension employ at least one of the following techniques:

 Tag extensions: Tag extensions define custom XML-style tags in the wikitext:  some text  The text between the tags gets passed on to a PHP function which parses the contents of the tag and returns an HTML string that replaces the tag and text. The content inside the tags may be wiki markup, straight text, or text with formatting rules specific to the tag. It is up to the extension implementer. Please check documentation of individual extensions. Parser function extensions: Parser function extensions define template-like wiki markup: In parser function extensions, functionname always begins with a '#' (other parser function names are reserved for use by the MediaWiki core). They act in every way like templates except that they have no template page. Instead functionname and all parameters are passed to a PHP function that returns a string of wiki text that replaces.

Parser functions are used to handle wiki text generation that involves logic that is too complex or confusing to write using normal template techniques. Variable extensions: Variable extensions define symbols of the form for use in wiki text. Unlike templates and parser functions they are parameterless. Link markup extensions: Link markup extensions change the way MediaWiki interperts internal links, i.e. wiki markup of the form ... . Hash markup extensions: Hash markup extensions have the form #XXX ... . The most well know built-in example of such markup is the redirect tag #REDIRECT, but a few extensions have added more examples of this type of markup. Note: this extension style is not recommended for new extensions. Parser hook extensions: Parser hook extensions define hooks that add or change the behavior of the parser at key processing points. These extensions silently change the way wiki markup is converted to HTML and require no changes in wiki markup. 

See also:
 * Extending wiki markup