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
submodule=addarticle
(main | collection | addarticle)
- Tento modul vyžaduje oprávnění ke čtení.
- Zdroj: Collection
- Licence: GPL-2.0-or-later
API module for adding a page to the collection
Parametry:
- namespace
- ⧼apihelp-collection+addarticle-param-namespace⧽
- This parameter is required.
- Type: integer
- title
- ⧼apihelp-collection+addarticle-param-title⧽
- This parameter is required.
- oldid
- ⧼apihelp-collection+addarticle-param-oldid⧽
- Type: integer
- Default: 0
Příklad:
- Add a page to the collection.
- api.php?action=collection&submodule=addarticle&namespace=0&title=Main_Page&oldid=0 [otevřít v pískovišti]