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=wbsetqualifier

(main | wbsetqualifier)
  • 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 a qualifier or sets the value of an existing one.

Jellemző paraméterek:
Other general parameters are available.
claim

A GUID identifying the claim for which a qualifier is being set

Ez a paraméter kötelező.
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

A következő értékek egyike: novalue, somevalue, value
snakhash

The hash of the snak to modify. Should only be provided for existing qualifiers

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.

tags

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)