MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
prop=metavars (mv)
- This module requires read rights.
- This module can be used as a generator.
- Source: MetaTemplate 2
- License: GPL-2.0-or-later
Get various values saved on the page by MetaTemplate
Parameters:
- mvcontinue
When more results are available, use this to continue.
- mvlimit
The maximum number of pages to return (generator only).
- No more than 500 (5,000 for bots) allowed.
- Type: integer or max
- Default: 10
- mvset
Only list values from these subsets. To get only the main set, use "mvsubset=|".
- Separate values with | or alternative. Maximum number of values is 100 (500 for bots).
- mvvar
Only list values with these names. Useful for checking whether a certain page uses a certain variable.
- Separate values with | or alternative. Maximum number of values is 100 (500 for bots).
Examples:
- api.php?action=query&prop=metavars&titles=Skyrim:Riften|Skyrim:Armor|Main%20Page [open in sandbox]
- api.php?action=query&prop=metavars&titles=Skyrim:Riften|Skyrim:Armor|Main%20Page&mvset=| [open in sandbox]
- api.php?action=query&prop=metavars&titles=Skyrim:Armor&mvvar=weight|value [open in sandbox]
- api.php?action=query&prop=metavars&titles=Skyrim:Armor&mvset=Fur%20Armor|Iron%20Armor&mvvar=weight|value [open in sandbox]
- api.php?action=query&generator=metavars&gmv&prop=metavarsvar=weight|value&mvvar=weight|value [open in sandbox]