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=wbsetaliases
- 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
Establece los alias de una entidad de Wikibase.
- id
The identifier for the entity, including the prefix. Use either id or site and title together.
- new
Si se establece, se creará una entidad nueva. Establece esto al tipo de entidad que quieres crear.
- Uno de los siguientes valores: item, property
- site
Un identificador para el sitio en el que reside la página. Úsalo junto con title para crear un enlace de sitio completo.
- Uno de los siguientes valores:
- title
Title of the page to associate. Use together with site to make a complete sitelink.
- 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
- 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.
- 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)
- add
Lista de alias que añadir (se puede combinar con remove)
- Separar los valores con | o con una alternativa.
- Maximum number of values is 50 (500 for clients that are allowed higher limits).
- remove
Lista de alias que eliminar (se puede combinar con add)
- Separar los valores con | o con una alternativa.
- Maximum number of values is 50 (500 for clients that are allowed higher limits).
- set
Una lista de alias que reemplazará la lista actual (no combinable ni con add ni con remove)
- Separar los valores con | o con una alternativa.
- Maximum number of values is 50 (500 for clients that are allowed higher limits).
- language
El idioma para el cual establecer los alias
- Este parámetro es obligatorio.
- Uno de los siguientes valores: aa, aae, ab, abs, ace, acm, ady, ady-cyrl, aeb, aeb-arab, aeb-latn, af, agq, aln, als, alt, am, ami, an, ang, ann, anp, ar, arc, arn, arq, ary, arz, as, ase, ast, atj, av, avk, awa, ay, az, azb, ba, bag, ban, ban-bali, bar, bas, bat-smg, bax, bbc, bbc-latn, bbj, bcc, bci, bcl, bdr, be, be-tarask, be-x-old, bew, bfd, bg, bgn, bh, bho, bi, bjn, bkc, bkh, bkm, blk, bm, bn, bo, bpy, bqi, bqz, br, brh, bs, btm, bto, bug, bxr, byv, ca, cak, cal, cbk-zam, cdo, ce, ceb, ch, chn, cho, chr, chy, ckb, cnh, co, cps, cpx, cpx-hans, cpx-hant, cpx-latn, cr, crh, crh-cyrl, crh-latn, crh-ro, cs, csb, cu, cv, cy, da, dag, de, de-at, de-ch, de-formal, dga, din, diq, dsb, dtp, dty, dua, dv, dz, ee, efi, egl, el, eml, en, en-ca, en-gb, en-us, eo, es, es-419, es-formal, et, eto, etu, eu, ewo, ext, fa, fat, ff, fi, fit, fiu-vro, fj, fkv, fmp, fo, fon, fr, frc, frp, frr, fur, fy, ga, gaa, gag, gan, gan-hans, gan-hant, gcf, gcr, gd, gl, gld, glk, gn, gom, gom-deva, gom-latn, gor, got, gpe, grc, gsw, gu, guc, gur, guw, gv, gya, ha, hak, haw, he, hi, hif, hif-latn, hil, hno, ho, hr, hrx, hsb, hsn, ht, hu, hu-formal, hy, hyw, hz, ia, ibb, id, ie, ig, igl, ii, ik, ike-cans, ike-latn, ilo, inh, io, is, isu, it, iu, ja, jam, jbo, jut, jv, ka, kaa, kab, kai, kbd, kbd-cyrl, kbp, kcg, kea, ker, kg, kge, khw, ki, kiu, kj, kjh, kjp, kk, kk-arab, kk-cn, kk-cyrl, kk-kz, kk-latn, kk-tr, kl, km, kn, ko, ko-kp, koi, kr, krc, kri, krj, krl, ks, ks-arab, ks-deva, ksf, ksh, ksw, ku, ku-arab, ku-latn, kum, kus, kv, kw, ky, la, lad, lb, lbe, lem, lez, lfn, lg, li, lij, liv, lki, lld, lmo, ln, lns, lo, loz, lrc, lt, ltg, lus, luz, lv, lzh, lzz, mad, mag, mai, map-bms, mcn, mcp, mdf, mg, mh, mhr, mi, min, mk, ml, mn, mnc, mnc-latn, mnc-mong, mni, mnw, mo, mos, mr, mrh, mrj, ms, ms-arab, mt, mua, mus, mwl, my, myv, mzn, na, nah, nan, nan-hani, nap, nb, nds, nds-nl, ne, new, ng, nge, nia, nit, niu, nl, nl-informal, nla, nmg, nmz, nn, nnh, nnz, no, nod, nog, nov, nqo, nrm, nso, nv, ny, nyn, nyo, nys, oc, ojb, olo, om, or, os, osa-latn, ota, pa, pag, pam, pap, pap-aw, pcd, pcm, pdc, pdt, pfl, pi, pih, pl, pms, pnb, pnt, prg, ps, pt, pt-br, pwn, qu, quc, qug, rgn, rif, rki, rm, rmc, rmf, rmy, rn, ro, roa-rup, roa-tara, rsk, ru, rue, rup, ruq, ruq-cyrl, ruq-latn, rut, rw, rwr, ryu, sa, sah, sat, sc, scn, sco, sd, sdc, sdh, se, se-fi, se-no, se-se, sei, ses, sg, sgs, sh, sh-cyrl, sh-latn, shi, shi-latn, shi-tfng, shn, shy, shy-latn, si, simple, sjd, sje, sju, sk, skr, skr-arab, sl, sli, sm, sma, smj, smn, sms, sn, so, sq, sr, sr-ec, sr-el, srn, sro, srq, ss, st, stq, sty, su, sv, sw, syl, szl, szy, ta, tay, tcy, tdd, te, tet, tg, tg-cyrl, tg-latn, th, ti, tk, tl, tly, tly-cyrl, tn, to, tok, tpi, tpv, tr, tru, trv, ts, tt, tt-cyrl, tt-latn, ttj, tum, tvu, tw, ty, tyv, tzm, udm, ug, ug-arab, ug-latn, uk, ur, uz, uz-cyrl, uz-latn, ve, vec, vep, vi, vls, vmf, vmw, vo, vot, vro, vut, wa, wal, war, wes, wls, wo, wuu, wuu-hans, wuu-hant, wya, xal, xh, xmf, xsy, yas, yat, yav, ybb, yi, yo, yrl, yue, yue-hans, yue-hant, za, zea, zgh, zh, zh-classical, zh-cn, zh-hans, zh-hant, zh-hk, zh-min-nan, zh-mo, zh-my, zh-sg, zh-tw, zh-yue, zu
- Establezca los alias en inglés para la entidad con identificador Q999999998 Foo en y Bar
- api.php?action=wbsetaliases&language=en&id=Q999999998&set=Foo|Bar [abrir en la zona de pruebas]
- Añadir Foo y Bar a la lista de alias en inglés para la entidad con el identificador Q999999998
- api.php?action=wbsetaliases&language=en&id=Q999999998&add=Foo|Bar [abrir en la zona de pruebas]
- Quitar Foo y Bar de la lista de alias en inglés para la entidad con el identificador Q999999998
- api.php?action=wbsetaliases&language=en&id=Q999999998&remove=Foo|Bar [abrir en la zona de pruebas]
- Saca Foo de la lista de alias ingleses para la entidad con ID Q999999998 mientras añadiendo Barra a él
- api.php?action=wbsetaliases&language=en&id=Q999999998&remove=Foo&add=Bar [abrir en la zona de pruebas]