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=wbcreateclaim
- 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 stwierdzenia Wikibase.
- entity
ID of the entity the claim is being added to
- Ten parametr jest wymagany.
- snaktype
Typ łącznika
- Ten parametr jest wymagany.
- Jedna z następujących wartości: novalue, somevalue, value
- property
ID of the snaks property
- Ten parametr jest wymagany.
- value
Wartość łącznika podczas tworzenia stwierdzenia z łącznikiem, który ma wartość
- 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)
- Tworzy stwierdzenie dla elementu Q42 właściwości P9001 z łącznikiem „bez wartości”.
- api.php?action=wbcreateclaim&entity=Q999999998&property=P9001&snaktype=novalue [otwórz w brudnopisie]
- 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" [otwórz w brudnopisie]
- Tworzy stwierdzenie dla elementu Q999999998 właściwości P9003 z wartością elementu Q1
- api.php?action=wbcreateclaim&entity=Q999999998&property=P9003&snaktype=value&value={"entity-type":"item","numeric-id":1} [otwórz w brudnopisie]
- 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} [otwórz w brudnopisie]