Category:Parser extensions

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

 Template markup extensions: Template markup extensions extend the capabilities of template-like wiki markup, i.e. wiki markup of the form :  Parser function extensions: Parser function extensions extend parameterized template processing and typically look something like this:. Although any "template name" can be used, custom extension always begin the function name with a # as in the example above. Other parser function names are reserved for use by the MediaWiki core. When  is implemented as a parser function, it passes its template parameters to a PHP function instead of the usual template article. This function returns a string of wiki text that replaces the parameterized template. Parser functions are used to handle wiki text generation that involves logic that is too complex or confusing to write using normal template writing techniques.  Variable extensions: Variable extensions extend parameterless template processing. Instead of the usual article transclusion,  is associated with a PHP function that returns a string of wiki text that replaces it. They are usually used to insert system information into wiki markup (e.g. the current time, the current page).   XML markup extensions: XML markup extensions (also known as 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. 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 either require no changes in wiki markup or rely on idiosyncratic syntax</li>  Category:ParserBeforeStrip extensions rely on the ParserBeforeStrip hook.</li> Category:OutputPageBeforeHTML extensions rely on the OutputPageBeforeHTML hook.</li> Category:ParserAfterTidy extensions rely on the ParserAfterTidy hook.</li> </ul> </ul>

See also:
 * Extending wiki markup