Pomoc MediaWiki API
To jest automatycznie wygenerowana strona dokumentacji MediaWiki API.
Dokumentacja i przykłady: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_pag
action=wbsearchentities
(main | wbsearchentities)
- Ten moduł wymaga praw odczytu.
- Źródło: WikibaseClient
- Licencja: GPL-2.0-or-later
Searches for entities using labels and aliases.
Returns a label and description for the entity in the user language if possible. Returns details of the matched term. The matched term text is also present in the aliases key if different from the display label.
Parametry:
- search
Wyszukaj w tym tekście.
- This parameter is required.
- language
Wyszukaj w tym języku.
- This parameter is required.
- Jedna z następujących wartości: aa, ab, abs, ace, ady, ady-cyrl, aeb, aeb-arab, aeb-latn, af, ak, aln, als, alt, am, ami, an, ang, anp, ar, arc, arn, arq, ary, arz, as, ase, ast, atj, av, avk, awa, ay, az, azb, ba, ban, bar, bat-smg, bbc, bbc-latn, bcc, bcl, be, be-tarask, be-x-old, bg, bgn, bh, bho, bi, bjn, bm, bn, bo, bpy, bqi, br, brh, bs, btm, bto, bug, bxr, ca, cbk-zam, cdo, ce, ceb, ch, cho, chr, chy, ckb, co, cps, cr, crh, crh-cyrl, crh-latn, cs, csb, cu, cv, cy, da, de, de-at, de-ch, de-formal, din, diq, dsb, dtp, dty, dv, dz, ee, egl, el, eml, en, en-ca, en-gb, eo, es, es-419, es-formal, et, eu, ext, fa, ff, fi, fit, fiu-vro, fj, fo, fr, frc, frp, frr, fur, fy, ga, gag, gan, gan-hans, gan-hant, gcr, gd, gl, glk, gn, gom, gom-deva, gom-latn, gor, got, grc, gsw, gu, gv, ha, hak, haw, he, hi, hif, hif-latn, hil, ho, hr, hrx, hsb, ht, hu, hu-formal, hy, hyw, hz, ia, id, ie, ig, ii, ik, ike-cans, ike-latn, ilo, inh, io, is, it, iu, ja, jam, jbo, jut, jv, ka, kaa, kab, kbd, kbd-cyrl, kbp, kg, khw, ki, kiu, kj, 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, ksh, ku, ku-arab, ku-latn, kum, kv, kw, ky, la, lad, lb, lbe, lez, lfn, lg, li, lij, liv, lki, lld, lmo, ln, lo, loz, lrc, lt, ltg, lus, luz, lv, lzh, lzz, mai, map-bms, mdf, mg, mh, mhr, mi, min, mk, ml, mn, mni, mnw, mo, mr, mrj, ms, mt, mus, mwl, my, myv, mzn, na, nah, nan, nap, nb, nds, nds-nl, ne, new, ng, niu, nl, nl-informal, nn, no, nov, nqo, nrm, nso, nv, ny, nys, oc, olo, om, or, os, pa, pag, pam, pap, pcd, pdc, pdt, pfl, pi, pih, pl, pms, pnb, pnt, prg, ps, pt, pt-br, qu, qug, rgn, rif, rm, rmy, rn, ro, roa-rup, roa-tara, ru, rue, rup, ruq, ruq-cyrl, ruq-latn, rw, sa, sah, sat, sc, scn, sco, sd, sdc, sdh, se, sei, ses, sg, sgs, sh, shi, shi-latn, shi-tfng, shn, shy-latn, si, simple, sk, skr, skr-arab, sl, sli, sm, sma, smn, sn, so, sq, sr, sr-ec, sr-el, srn, ss, st, stq, sty, su, sv, sw, szl, szy, ta, tay, tcy, te, tet, tg, tg-cyrl, tg-latn, th, ti, tk, tl, tly, tn, to, tpi, tr, tru, trv, ts, tt, tt-cyrl, tt-latn, tum, tw, ty, tyv, tzm, udm, ug, ug-arab, ug-latn, uk, ur, uz, uz-cyrl, uz-latn, ve, vec, vep, vi, vls, vmf, vo, vot, vro, wa, war, wo, wuu, xal, xh, xmf, xsy, yi, yo, yue, 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
- strictlanguage
Czy wyłączyć język pomocniczy
- Type: boolean (details)
- type
Search for this type of entity.
- Jedna z następujących wartości: item, property
- Default: item
- limit
Maksymalna liczba wyników
- Type: integer or max
- The value must be between 0 and 50.
- Default: 7
- continue
Offset where to continue a search
- Type: integer
- Default: 0
- props
Return these properties for each entity.
- Wartości (oddziel za pomocą | lub alternatywy): url
- Default: url
Przykłady:
- Search for "abc" in English language, with defaults for type and limit
- api.php?action=wbsearchentities&search=abc&language=en [otwórz w brudnopisie]
- Search for "abc" in English language with a limit of 50
- api.php?action=wbsearchentities&search=abc&language=en&limit=50 [otwórz w brudnopisie]
- Search for "abc" in English language with a limit of 2 and an offset of 2
- api.php?action=wbsearchentities&search=abc&language=en&limit=2&continue=2 [otwórz w brudnopisie]
- Search for "alphabet" in English language for type property
- api.php?action=wbsearchentities&search=alphabet&language=en&type=property [otwórz w brudnopisie]
- Search for "alphabet" in English language omitting url parameter
- api.php?action=wbsearchentities&search=alphabet&language=en&props= [otwórz w brudnopisie]
- Search for "Q1234" in English language, to match the entity ID.
- api.php?action=wbsearchentities&search=Q1234&language=en [otwórz w brudnopisie]