Pomoc API MediaWiki
To jest automatycznie wygenerowana strona dokumentacji API MediaWiki.
Dokumentacja i przykłady: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=wbsetqualifier
- Ten moduł wymaga praw odczytu.
- Ten moduł wymaga praw zapisu.
- Ten moduł akceptuje tylko żądania POST.
- Źródło: WikibaseClient
- Licencja: GPL-2.0-or-later
Tworzy kwalifikator lub ustawia wartość istniejącego.
- claim
GUID identyfikujący stwierdzenie, dla którego jest ustawiany kwalifikator
- Ten parametr jest wymagany.
- 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
- Jedna z następujących wartości: novalue, somevalue, value
- snakhash
The hash of the snak to modify. Should only be provided for existing qualifiers
- 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.
- Wartości (oddziel za pomocą | lub alternatywy):
- token
Token „csrf” pobrany z action=query&meta=tokens
- Ten parametr jest wymagany.
- baserevid
The numeric identifier for the revision to base the modification on. This is used for detecting conflicts during save.
- Typ: liczba całkowita
- bot
Oznacz tę zmianę jako wykonaną przez bota. Ten znacznik adresu URL będzie brany pod uwagę tylko, jeśli użytkownik należy do grupy „Boty”.
- Typ: wartość boolowska (szczegóły)
- 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.
- Typ: nazwa strony
- Akceptuje nieistniejące strony.
- 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.
- Domyślnie: (puste)
- 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.
- Domyślnie: (puste)
- Set the qualifier for the given claim with property P1 to string value GdyjxP8I6XB3
- api.php?action=wbsetqualifier&claim=Q999999998$4554c0f4-47b2-1cd9-2db9-aa270064c9f3&property=P1&value="GdyjxP8I6XB3"&snaktype=value&token=foobar [otwórz w brudnopisie]