Помощ за МедияУики API
Това е автоматично генерирана страница за документация на МедияУики API.
Документация и примери: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=translationstats
(main | translationstats)
- This module requires read rights.
- Source: Превеждане
- License: GPL-2.0-or-later
Fetch translation statistics
Specific parameters:
Other general parameters are available.
- count
Type of statistics being requested
- This parameter is required.
- Една от следните стойности: edits, registrations, reviewers, reviews, users
- days
Number of days to fetch statistics for
- This parameter is required.
- Type: integer
- The value must be between 1 and 10 000.
- Default: 30
- group
List of groups to fetch statistics for.
- За разделител на стойностите използвайте | или алтернативния разделител.
- Maximum number of values is 50 (500 for clients that are allowed higher limits).
- language
List of languages to fetch statistics for.
- За разделител на стойностите използвайте | или алтернативния разделител.
- Maximum number of values is 50 (500 for clients that are allowed higher limits).
- scale
Scale of the translation statistics
- Една от следните стойности: days, hours, months, weeks, years
- Default: days
- start
Starting date from which to fetch translation statistics. Defaults to current date minus the number of days.
- Type: timestamp (allowed formats)
Примери:
- Fetch edit count for the last 30 days, for all groups and languages
- api.php?action=translationstats&count=edits&days=30 [open in sandbox]
- Fetch edit count for the last 30 days, for languages English and French.
- api.php?action=translationstats&count=edits&days=30&language=en|fr [open in sandbox]