Manual:$wgGrammarForms

From MediaWiki.org
Jump to: navigation, search

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎日本語 • ‎português • ‎русский
Parser: $wgGrammarForms
Used for {{GRAMMAR:}} parser function.
Introduced in version: 1.7.0 (r14381)
Removed in version: still in use
Allowed values: (array of array of strings)
Default value: array()

Other settings: Alphabetical | By Function

Details[edit | edit source]

Some languages need different word forms, usually for different cases. Used by method Language::convertGrammar to implement the {{GRAMMAR:}} parser function.

Example:

$wgGrammarForms['en']['genitive']['car'] = 'car\'s';