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/API
list=messagecollection (mc)
- Tento modul vyžaduje oprávnění ke čtení.
- Tento modul lze využívat jako generátor.
- Zdroj: Translate
- Licence: GPL-2.0+
Query MessageCollection about translations.
Parametry:
- mcgroup
Skupina zpráv.
- Tento parametr je povinný.
- mclanguage
Kód jazyka.
- Implicitní hodnota: en
- mclimit
How many messages to show (after filtering).
- Není dovoleno více než 5 000 (5 000 pro boty).
- Type: integer or max
- Implicitní hodnota: 500
- mcoffset
When more results are available, use this to continue.
- Implicitní hodnota: (prázdné)
- mcfilter
Message collection filters. Use ! to negate condition. For example !fuzzy means list only all non-fuzzy messages. Filters are applied in the order given.
- fuzzy
- Messages with fuzzy tag.
- optional
- Messages which should be translated only if changes are necessary.
- ignored
- Messages which are never translated.
- hastranslation
- Messages which have a translation regardless if it is fuzzy or not.
- translated
- Messages which have a translation which is not fuzzy.
- changed
- Messages which have been translated or changed since last export.
- reviewer:N
- Messages where the user number N is among reviewers.
- last-translator:N
- Messages where the user number N is the last translator.
- Hodnoty oddělujte pomocí |. Maximální počet hodnot je 50 (pro boty 500).
- Implicitní hodnota: !optional|!ignored
- mcprop
Which properties to get:
- definition
- Message definition.
- translation
- Current translation (without !!FUZZY!! string if any, use the tags to check for outdated or broken translations).
- tags
- Message tags, like optional, ignored and fuzzy.
- properties
- Message properties, like status, revision, last-translator. Can vary between messages.
- revision
- Deprecated! Use mcprop=properties.
- Hodnoty (oddělené |): definition, translation, tags, revision, properties
- Implicitní hodnota: definition|translation
Příklady:
- List of supported languages
- api.php?action=query&meta=siteinfo&siprop=languages
- List of non-optional message definitions for the group "page-Example"
- api.php?action=query&list=messagecollection&mcgroup=page-Example
- List of optional messages in Finnish with tags for the group "page-Example"
- api.php?action=query&list=messagecollection&mcgroup=page-Example&mclanguage=fi&mcprop=definition|translation|tags&mcfilter=optional
- More information about latest translation revisions for the group "page-Example"
- api.php?action=query&generator=messagecollection&gmcgroup=page-Example&gmclanguage=nl&prop=revisions