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=wbeditentity
- 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: WikibaseClient
- Licenc: GPL-2.0-or-later
Creates a single new Wikibase entity and modifies it with serialised information.
- id
The identifier for the entity, including the prefix. Use either id or site and title together.
- new
If set, a new entity will be created. Set this to the type of the entity to be created. It is not allowed to have this set when id is also set.
- A következő értékek egyike: item, property
- site
An identifier for the site on which the page resides. Use together with title to make a complete sitelink.
- A következő értékek egyike:
- title
Title of the page to associate. Use together with site to make a complete sitelink.
- baserevid
A módosítás alapjául szolgáló lapváltozat azonosítója (oldid-je). A szerkesztési ütközések felismerésére szolgál.
- Típus: egész szám
- summary
A szerkesztési összefoglaló. Elé kerül egy automatikusan generált megjegyzés. Az automatikus megjegyzés és az összefoglaló együttes hossza legfeljebb 260 bájt (az ékezetes karakterek két bájtot foglalnak el). A limitet túllépő összefoglaló vége le lesz vágva.
Change tags to apply to the revision.
- Értékek (elválasztó: | vagy más):
- token
Egy „csrf” token, az action=query&meta=tokens kéréssel lekérve
- Ez a paraméter kötelező.
- bot
A szerkesztés botszerkesztésnek jelölése. Csak akkor van hatása, ha a felhasználó tagja a „botok” csoportnak.
- 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)
- data
The serialized object that is used as the data source. A newly created entity will be assigned an 'id'.
- Ez a paraméter kötelező.
- clear
If set, the complete entity is emptied before proceeding. The entity will not be saved before it is filled with the "
data
", possibly with parts excluded.- Típus: logikai (részletek)
- Create a new empty item, return full entity structure
- api.php?action=wbeditentity&new=item&data={} [megnyitás a homokozóban]
- Új elem létrehozása, német (de) és angol (en) címkék beállítása
- api.php?action=wbeditentity&new=item&data={"labels":{"de":{"language":"de","value":"de-value"},"en":{"language":"en","value":"en-value"}}} [megnyitás a homokozóban]
- Create a new property containing the json data, return full entity structure
- api.php?action=wbeditentity&new=property&data={"labels":{"en-gb":{"language":"en-gb","value":"Propertylabel"}},"descriptions":{"en-gb":{"language":"en-gb","value":"Propertydescription"}},"datatype":"string"} [megnyitás a homokozóban]
- Clear all data from entity with ID Q999999998
- api.php?action=wbeditentity&clear=true&id=Q999999998&data={} [megnyitás a homokozóban]
- Clear all data from entity with ID Q999999998 and set a label for en
- api.php?action=wbeditentity&clear=true&id=Q999999998&data={"labels":{"en":{"language":"en","value":"en-value"}}} [megnyitás a homokozóban]
- Címke hozzáadása létező felülírása nélkül
- api.php?action=wbeditentity&id=Q999999998&data={"labels":[{"language":"no","value":"Bar","add":""}]} [megnyitás a homokozóban]
- Címke eltávolítása
- api.php?action=wbeditentity&id=Q999999998&data={"labels":[{"language":"en","value":"Foo","remove":""}]} [megnyitás a homokozóban]
- Sets sitelink for nowiki, overwriting it if it already exists
- api.php?action=wbeditentity&id=Q999999998&data={"sitelinks":{"nowiki":{"site":"nowiki","title":"København"}}} [megnyitás a homokozóban]
- Leírás beállítása norvégul (nb), felülírás, ha már létezik
- api.php?action=wbeditentity&id=Q999999998&data={"descriptions":{"nb":{"language":"nb","value":"nb-Description-Here"}}} [megnyitás a homokozóban]
- Új állítás létrehozása az elemen a P56 tulajdonsághoz „ExampleString” értékkel
- api.php?action=wbeditentity&id=Q999999998&data={"claims":[{"mainsnak":{"snaktype":"value","property":"P56","datavalue":{"value":"ExampleString","type":"string"}},"type":"statement","rank":"normal"}]} [megnyitás a homokozóban]
- Removes the claims from the item with the provided GUIDs
- api.php?action=wbeditentity&id=Q999999998&data={"claims":[{"id":"Q999999998$D8404CDA-25E4-4334-AF13-A3290BCD9C0F","remove":""},{"id":"Q999999998$GH678DSA-01PQ-28XC-HJ90-DDFD9990126X","remove":""}]} [megnyitás a homokozóban]
- Sets the claim with the GUID to the value of the claim
- api.php?action=wbeditentity&id=Q999999998&data={"claims":[{"id":"Q999999998$GH678DSA-01PQ-28XC-HJ90-DDFD9990126X","mainsnak":{"snaktype":"value","property":"P56","datavalue":{"value":"ChangedString","type":"string"}},"type":"statement","rank":"normal"}]} [megnyitás a homokozóban]