Pomoc MediaWiki API
To jest automatycznie wygenerowana strona dokumentacji MediaWiki API. Dokumentacja i przykłady: https://www.mediawiki.org/wiki/API
list=messagecollection (mc)
- Ten moduł wymaga praw odczytu.
- Ten moduł może być użyty jako generator.
- Źródło: Przetłumacz
- Licencja: GPL-2.0-or-later
Query MessageCollection about translations.
Parametry:
- mcgroup
Grupa komunikatów.
- Ten parametr jest wymagany.
- mclanguage
Kod języka.
- Domyślnie: en
- mclimit
Liczba komunikatów do pokazania (po filtrowaniu).
- Nie więcej niż 5000 (5000 dla botów) dozwolone.
- Type: integer or max
- Domyślnie: 500
- mcoffset
Gdy będzie dostępnych więcej wyników, użyj tego do kontynuowania.
- Domyślnie: (puste)
- 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.
- Oddziel wartości za pomocą | lub alternatywy. Maksymalna liczba wartości to 50 (500 dla botów).
- Domyślnie: !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.
- Wartości (oddziel za pomocą | lub alternatywy): definition, translation, tags, revision, properties
- Domyślnie: definition|translation
Przykłady:
- Lista obsługiwanych języków
- api.php?action=query&meta=siteinfo&siprop=languages [otwórz w brudnopisie]
- List of non-optional message definitions for the group "page-Example"
- api.php?action=query&list=messagecollection&mcgroup=page-Example [otwórz w brudnopisie]
- 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 [otwórz w brudnopisie]
- More information about latest translation revisions for the group "page-Example"
- api.php?action=query&generator=messagecollection&gmcgroup=page-Example&gmclanguage=nl&prop=revisions [otwórz w brudnopisie]