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=wbladdsense
- 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
Adds a Sense to a Lexeme
- lexemeId
ID of the Lexeme, e.g. L10
- Ez a paraméter kötelező.
- data
JSON-encoded data for the Sense, i.e. its glosses
- 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
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ő.
- Add a Form to the Lexeme with ID L12 having glosses Some text value, Another text value with languages en-us, en-gb respectively
- api.php?action=wbladdsense&lexemeId=L12&data={"glosses":{"en-us":{"value":"Some text value","language":"en-us"},"en-gb":{"value":"Another text value","language":"en-gb"}}} [megnyitás a homokozóban]