Parser 2011/Core parser functions

#special
?

defaultsort
Sets the default category sort key for this page to the given value; this will then be recorded instead of the page name as the sort key for any Category link on the page that does not specify a sort key.

Expected rendering: none

todo: specify the existence of the default sort key value in parse metadata where it can be saved and used

displaytitle
Sets a string to override how the page title is displayed; there are some (specify me!) limits to what is acceptable for title usage.

Expected rendering: none.

todo: specify the existence of the default display title value in parse metadata where it can be saved and used

Extension:ParserFunctions
Extension:ParserFunctions provides many useful functions for logical control and such, which are widely used in Wikipedia templates.

#if
Usage:

If the cond parameter is non-empty, expand this node to include the then-part parsed as wikitext. Otherwise, expand this node to include the else-part parameter parsed as wikitext.

Expect to do some shortcutting -- code in the trimmed branches won't need to be evaluated in later parsing stages.

#ifeq
Usage:

If the left-cond and right-cond parameters expand to equal source text, expand this node to include the then-part parsed as wikitext. Otherwise, expand this node to include the else-part parameter parsed as wikitext.

Expect to do some shortcutting -- code in the trimmed branches won't need to be evaluated in later parsing stages.

#switch
Usage:

If the var param expands to match one of the test* parameters, expand this node to include the matching case* parameter. Otherwise, expand this node to include the final default-case part if present.

Expect to do some shortcutting -- code in the trimmed branches won't need to be evaluated in later parsing stages.

Extension:ParserFunctions string extensions
If $wgPFEnableStringFunctions set...