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=wbcreateclaim
- 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 afirmaciones de Wikibase.
- entity
ID of the entity the claim is being added to
- Este parámetro es obligatorio.
- snaktype
El tipo de snak
- Este parámetro es obligatorio.
- Uno de los siguientes valores: novalue, somevalue, value
- property
ID of the snaks property
- Este parámetro es obligatorio.
- value
Value of the snak when creating a claim with a snak that has a value
- summary
Summary for the edit. Will be prepended by an automatically generated comment. The length limit of the autocomment together with the summary is 260 characters. Be aware that everything above that limit will be cut off.
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
The numeric identifier for the revision to base the modification on. This is used for detecting conflicts during save.
- Tipo: entero
- bot
Marca esta edición como realizada por un bot. Esta marca de URL solo se respetará 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)
- Creates a claim for item Q999999998 of property P9001 with a "sin valor" snak.
- api.php?action=wbcreateclaim&entity=Q999999998&property=P9001&snaktype=novalue [abrir en la zona de pruebas]
- Creates a claim for item Q999999998 of property P9002 with string value "itsastring"
- api.php?action=wbcreateclaim&entity=Q999999998&property=P9002&snaktype=value&value="itsastring" [abrir en la zona de pruebas]
- Creates a claim for item Q999999998 of property P9003 with a value of item Q1
- api.php?action=wbcreateclaim&entity=Q999999998&property=P9003&snaktype=value&value={"entity-type":"item","numeric-id":1} [abrir en la zona de pruebas]
- Creates a claim for item Q999999998 of property P9004 with a coordinate snak value
- api.php?action=wbcreateclaim&entity=Q999999998&property=P9004&snaktype=value&value={"latitude":40.748433,"longitude":-73.985656,"globe":"http://www.wikidata.org/entity/Q2","precision":0.000001} [abrir en la zona de pruebas]