MediaWiki API súgó
Ez egy automatikusan generált MediaWiki-API-dokumentációs lap.
Dokumentáció és példák: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=wbcreateclaim
- Ez a modul olvasási jogot igényel.
- Ez a modul írási jogot igényel.
- Ez a modul csak POST kéréseket fogad el.
- Forrás: WikibaseClient
- Licenc: GPL-2.0-or-later
Creates Wikibase claims.
- entity
ID of the entity the claim is being added to
- Ez a paraméter kötelező.
- snaktype
The type of the snak
- Ez a paraméter kötelező.
- A következő értékek egyike: novalue, somevalue, value
- property
ID of the snaks property
- Ez a paraméter kötelező.
- value
Value of the snak when creating a claim with a snak that has a value
- summary
A szerkesztési összefoglaló. Elé kerül egy automatikusan generált megjegyzés. Az automatikus megjegyzés és az összefoglaló együttes hossza legfeljebb 260 bájt (az ékezetes karakterek két bájtot foglalnak el). A limitet túllépő összefoglaló vége le lesz vágva.
Change tags to apply to the revision.
- Értékek (elválasztó: | vagy más):
- token
Egy „csrf” token, az action=query&meta=tokens kéréssel lekérve
- Ez a paraméter kötelező.
- baserevid
A módosítás alapjául szolgáló lapváltozat azonosítója (oldid-je). A szerkesztési ütközések felismerésére szolgál.
- Típus: egész szám
- bot
A szerkesztés botszerkesztésnek jelölése. Csak akkor van hatása, ha a felhasználó tagja a „botok” csoportnak.
- Típus: logikai (részletek)
- 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.
- Típus: lapcím
- Nemlétező oldalakat is elfogad
- 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.
- Alapértelmezett: (üres)
- 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.
- Alapértelmezett: (üres)
- Creates a claim for item Q999999998 of property P9001 with a "nincs érték" snak.
- api.php?action=wbcreateclaim&entity=Q999999998&property=P9001&snaktype=novalue [megnyitás a homokozóban]
- 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" [megnyitás a homokozóban]
- 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} [megnyitás a homokozóban]
- 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} [megnyitás a homokozóban]