Manual:$wgTextModelsToParse

From Linux Web Expert

Revision as of 17:04, 3 February 2021 by imported>Shirayuki (update)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<translate> Content handlers and storage</translate>: $wgTextModelsToParse
Determines which types of text are parsed as wikitext.
<translate> Introduced in version:</translate>1.21.0 (Gerrit change 28507; git #8b568be5)
<translate> Removed in version:</translate><translate> still in use</translate>
<translate> Allowed values:</translate>Content models, which are defined with the ContentHandler .
<translate> Default value:</translate>
[
	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.
];

Details

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.