Ayuda de la API de MediaWiki
Esta es una página de documentación autogenerada de la API de MediaWiki.
Documentación y ejemplos: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=wbsetqualifier
- Este módulo requiere permisos de lectura.
- Este módulo requiere permisos de escritura.
- Este módulo solo acepta solicitudes POST.
- Fuente: WikibaseClient
- Licencia: GPL-2.0-or-later
Crea un calificativo o establece el valor de uno ya existente.
- claim
Un GUID que identifica la afirmación a la que se asigna un calificativo
- Este parámetro es obligatorio.
- property
ID of the snaks property. Should only be provided when creating a new qualifier or changing the property of an existing one
- value
The new value of the qualifier. Should only be provided for PropertyValueSnak qualifiers
- snaktype
The type of the snak. Should only be provided when creating a new qualifier or changing the type of an existing one
- Uno de los siguientes valores: novalue, somevalue, value
- snakhash
The hash of the snak to modify. Should only be provided for existing qualifiers
- summary
Resumen de la edición. Será precedido por un comentario generado automáticamente. La longitud máxima del autocomentario junto con el resumen es de 260 caracteres. Ten en cuenta que todo lo que sobrepase el límite se cortará.
Change tags to apply to the revision.
- Valores (separados por | u otro separador):
- token
A "csrf" token retrieved from action=query&meta=tokens
- Este parámetro es obligatorio.
- baserevid
El identificador numérico de la revisión en la que basar la modificación. Este dato se utiliza para detectar conflictos al guardar.
- Tipo: entero
- bot
Marcar esta edición como hecha por un robot. Este parámetro funcionará solo si el usuario pertenece al grupo «Bots».
- Type: boolean (details)
- returnto
Page title. If saving the edit created a temporary account, the API may respond with an URL that the client should visit to complete logging in. If this parameter is provided, the URL will redirect to the given page, instead of the page that was edited.
- Tipo: título de página
- Acepta páginas inexistentes.
- returntoquery
URL query parameters (with leading ?). If saving the edit created a temporary account, the API may respond with an URL that the client should visit to complete logging in. If this parameter is provided, the URL will redirect to a page with the given query parameters.
- Predeterminado: (vacío)
- returntoanchor
URL fragment (with leading #). If saving the edit created a temporary account, the API may respond with an URL that the client should visit to complete logging in. If this parameter is provided, the URL will redirect to a page with the given fragment.
- Predeterminado: (vacío)
- Set the qualifier for the given claim with property P1 to string value GdyjxP8I6XB3
- api.php?action=wbsetqualifier&claim=Q999999998$4554c0f4-47b2-1cd9-2db9-aa270064c9f3&property=P1&value="GdyjxP8I6XB3"&snaktype=value&token=foobar [abrir en la zona de pruebas]