Справка MediaWiki API
Это автоматически сгенерированная страница документации MediaWiki API.
Документация и примеры: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=wbcheckconstraintparameters
(main | wbcheckconstraintparameters)
- Этот модуль требует прав на чтение.
- Источник: WikibaseQualityConstraints
- Лицензия: GPL-2.0-or-later
Checks the constraint parameters of constraint statements.
Either or both of the property and constraintid parameters may be specified; all constraints selected by either parameter will be checked.
Определённые параметры:
Other general parameters are available.
- propertyid
List of property IDs to check. All constraint statements of these properties will be checked.
If this parameter is specified, it must be nonempty.
- Разделяйте значения с помощью | или альтернативного разделителя.
- Максимальное количество значений — 50 (500 для клиентов, которым разрешены более высокие лимиты).
- constraintid
List of constraint IDs (constraint statement GUIDs) to check.
If this parameter is specified, it must be nonempty.
- Разделяйте значения с помощью | или альтернативного разделителя.
- Максимальное количество значений — 50 (500 для клиентов, которым разрешены более высокие лимиты).
Примеры:
- Check constraint parameters of all constraints on a property.
- api.php?action=wbcheckconstraintparameters&propertyid=P247 [открыть в песочнице]
- Check constraint parameters of two particular constraints.
- api.php?action=wbcheckconstraintparameters&constraintid=P247$0fe1711e-4c0f-82ce-3af0-830b721d0fba|P225$cdc71e4a-47a0-12c5-dfb3-3f6fc0b6613f [открыть в песочнице]