Manual:$wgTextModelsToParse

From MediaWiki.org
Jump to navigation Jump to search

Other languages:
English • ‎日本語
Parser: $wgTextModelsToParse
Determines which types of text are parsed as wikitext.
Introduced in version:1.21.0
Removed in version:still in use
Allowed values:Content models, which are defined with the ContentHandler .
Default value:
[
	CONTENT_MODEL_WIKITEXT, // Just for completeness, wikitext will always be parsed.
	CONTENT_MODEL_JAVASCRIPT, // Make categories etc work, people put them into comments.
	CONTENT_MODEL_CSS, // Make categories etc work, people put them into comments.
];
Other settings: Alphabetical | By function

Details[edit]

This does not imply that these kinds of texts are also rendered as wikitext, it only means that links, magic words, etc will have the effect on the database they would have on a wikitext page.