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=wbsetclaimvalue
- 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
Ustawia wartość stwierdzenia Wikibase.
- claim
GUID identyfikujący stwierdzenie
- This parameter is required.
- value
The value to set the DataValue of the main snak of the claim to
- snaktype
Rodzaj łącznika
- This parameter is required.
- Jedna z następujących wartości: novalue, somevalue, value
- 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.
- tags
Change tags to apply to the revision.
- Wartości (oddziel za pomocą | lub alternatywy):
- token
Token „csrf” pobrany z action=query&meta=tokens
- This parameter is required.
- baserevid
The numeric identifier for the revision to base the modification on. This is used for detecting conflicts during save.
- Type: integer
- 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”.
- Type: boolean (details)
- Sets the claim with the GUID of Q42$D8404CDA-25E4-4334-AF13-A3290BCD9C0F to a value of Q1
- api.php?action=wbsetclaimvalue&claim=Q42$D8404CDA-25E4-4334-AF13-A3290BCD9C0F&snaktype=value&value={"entity-type":"item","numeric-id":1}&token=foobar&baserevid=7201010 [otwórz w brudnopisie]