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

(main | wbsetreference)
  • 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 odnośnik lub ustawia wartość istniejącego.

Parametry:
statement

A GUID identifying the statement for which a reference is being set

Ten parametr jest wymagany.
snaks

The snaks to set the reference to. JSON object with property IDs pointing to arrays containing the snaks for that property

Ten parametr jest wymagany.
snaks-order

The order of the snaks. JSON array of property ID strings

reference

A hash of the reference that should be updated. Optional. When not provided, a new reference is created

index

The index within the statement's list of references where to move the reference to. Optional. When not provided, an existing reference will stay in place while a new reference will be appended.

Typ: liczba całkowita
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

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 „bot”.

Type: boolean (details)