MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=tags
(main | tags)
- This module requires read rights.
- This module requires write rights.
- Source: UserDash
- License: GPL-2.0-or-later
Obtain and set tags on a page.
Specific parameters:
Other general parameters are available.
- pageid
- ⧼apihelp-tags-param-pageid⧽
- Type: integer
- pagetitle
- ⧼apihelp-tags-param-pagetitle⧽
- tagname
- ⧼apihelp-tags-param-tagname⧽
- set
- ⧼apihelp-tags-param-set⧽
- getAll
- ⧼apihelp-tags-param-getAll⧽
Examples:
- Gets tags for a page.
- api.php?action=tags&pagetitle=About [open in sandbox]
- Sets a certain tag on a page
- api.php?action=tags&pagetitle=About&tagname=bookmarked&set=true [open in sandbox]
- Removes a certain tag on a page
- api.php?action=tags&pagetitle=About&tagname=bookmarked&set=false [open in sandbox]
- Obtains the set of pairs of the name of all pages and all users with a particular tag set
- api.php?action=tags&tagname=bookmarked [open in sandbox]
- ⧼apihelp-tags-example-5⧽
- api.php?action=tags&tagname=bookmarked&getAll=true [open in sandbox]