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

(main | wbladdform)
  • Ez a modul belső használatú vagy nem stabil. A működése értesítés nélkül változhat.
  • 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: WikibaseLexeme
  • Licenc: GPL-2.0-or-later

Alak hozzáadása lexémához

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

A lexéma azonosítója, pl. L10

Ez a paraméter kötelező.
data

JSON encoded data for Form i.e. representations and grammatical features

Ez a paraméter kötelező.
baserevid

Base Revision ID of the Lexeme, if edit conflict check is wanted.

Típus: egész szám
tags

Change tags to apply to the revision.

Értékek (elválasztó: | vagy más): openrefine-3.7, openrefine-3.8, openrefine-3.9, openrefine-3.9.5, openrefine-3.10
bot

Mark this edit as bot. This URL flag will only be respected if the user belongs to the group "botok".

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)
token

Egy „csrf” token, az action=query&meta=tokens kéréssel lekérve

Ez a paraméter kötelező.
Példa:
Add Form to the Lexeme with ID L12 having representations color, colour with languages en-us, en-gb respectively and grammatical features Q1, Q2
api.php?action=wbladdform&lexemeId=L12&data={"representations":{"en-us":{"value":"color","language":"en-us"},"en-gb":{"value":"colour","language":"en-gb"}},"grammaticalFeatures":["Q1","Q2"]} [megnyitás a homokozóban]