API:Tags
Jump to navigation
Jump to search
| This page is part of the MediaWiki action API documentation. |
MediaWiki action API
- Introduction and quick start
- FAQ
- Formats
- Error reporting
- Restricting usage
- Cross-site requests
- Authentication
- Queries
- Searching (by title, content, coordinates...)
- Parsing wikitext and expanding templates
- Purging pages' caches
- Parameter information
- Changing wiki content
- Create and edit pages
- Move pages
- Merge pages
- Rollback
- Delete pages
- Restore deleted revisions
- (Un)protect pages
- (Un)block users
- (Un)watch pages
- Mark revisions of watched pages as visited
- Send email
- Patrol changes
- Import pages
- Change user group membership
- Upload files
- User options
- Tokens
- Page language
- More...
- Watchlist feed
- Wikidata
- Extensions
- Using the API in MediaWiki and extensions
- Miscellaneous
- Implementation
- Client code
- Asserting
| Tags | ||
|---|---|---|
This module cannot be used as a Generator. |
||
| Prefix | tg | |
| Required rights | none | |
| Post only? | No | |
| Generated help | Current | |
| Version added |
|
|
List valid change tags.
Parameters[edit]
tgcontinue: When more results are available, use this to continue.tglimit: The maximum number of tags to list. No more than 500 (5000 for bots) allowed. Type: limit (Default: 10)tgprop: Which properties to get. (Default:name)name: Adds name of tag. (Note: this is a dummy property—the name will always be added, even if not specified.)displayname: Adds system message for the tag.description: Adds description of the tag.hitcount: Adds the amount of revisions that have this tag.
Example[edit]
List the hitcount for the first 5 change tags.
| Result |
|---|
<?xml version="1.0"?>
<api>
<query>
<tags>
<tag name=" Added xx/xx/xxxx:- probably a date in unclear format" hitcount="85" />
<tag name=""The Network" potential vandalism" hitcount="9" />
<tag name="AFC" hitcount="1076" />
<tag name="Added xx/xx/xxxx:- probably a date in unclear format" hitcount="2643" />
<tag name="Addition of interwiki link" hitcount="10849" />
</tags>
</query>
</api>
|