Nápověda k MediaWiki API

Toto je automaticky generovaná dokumentační stránka k MediaWiki API.

Dokumentace a příklady: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=wbmergeitems

(main | wbmergeitems)
  • Tento modul vyžaduje oprávnění ke čtení.
  • Tento modul vyžaduje oprávnění k zápisu.
  • Tento modul přijímá pouze požadavky POST.
  • Zdroj: WikibaseClient
  • Licence: GPL-2.0-or-later

Merges multiple items.

Parametry:
fromid

The ID to merge from

This parameter is required.
toid

The ID to merge to

This parameter is required.
ignoreconflicts

Array of elements of the item to ignore conflicts for. Can only contain values of "description", "sitelink" and "statement"

Hodnoty (oddělené | nebo alternativou.): description, sitelink, statement
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 revisions.

Hodnoty (oddělené | nebo alternativou.):
bot

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

Type: boolean (details)
token

Token typu „csrf“ získaný pomocí action=query&meta=tokens.

This parameter is required.
Příklady:
Merges data from Q999999998 into Q999999999
api.php?action=wbmergeitems&fromid=Q999999998&toid=Q999999999 [otevřít v pískovišti]
Merges data from Q999999998 into Q999999999 ignoring any conflicting sitelinks
api.php?action=wbmergeitems&fromid=Q999999998&toid=Q999999999&ignoreconflicts=sitelink [otevřít v pískovišti]
Merges data from Q999999998 into Q999999999 ignoring any conflicting sitelinks and descriptions
api.php?action=wbmergeitems&fromid=Q999999998&toid=Q999999999&ignoreconflicts=sitelink|description [otevřít v pískovišti]