Extension:EditCountNeue/ru
EditCountNeue Статус релиза: бета |
|
---|---|
Реализация | Функция парсера , Служебная страница , API |
Описание | Retrieves number of edits of a user |
Автор(ы) | NekoCharmtalk |
Политика совместимости | Snapshots releases along with MediaWiki. Master is not backward compatible. |
MediaWiki | >=1.35.0 |
Изменения в БД | Нет |
Лицензия | GNU General Public License 2.0 или позднее |
Скачать | |
Ежеквартальные загрузки | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Использование общедоступными вики | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Переведите расширение EditCountNeue |
The EditCountNeue extension allows wikis to display the number of edits of a user, via a special page or a parser function. It is inspired by Editcount , and is rewritten to have more functionality and better support for newer versions of MediaWiki. EditCountNeue is a replacement of Editcount, please disable or remove Editcount before enabling EditCountNeue.
Установка
- <translate> <tvar name=1>Download</tvar> and place the file(s) in a directory called <tvar name=name>
EditCountNeue/ru
</tvar> in your <tvar name=ext>extensions/
</tvar> folder.</translate> - <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
wfLoadExtension( 'EditCountNeue/ru' );
- File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
Использование
Служебная страница
EditCountNeue добавляет служебную страницу Special:EditCount
под группой Users and rights.
Select a user and click to see the number of edits of the user.
It can also be accessed from Special:EditCount/<username>
.
Функция парсера
EditCountNeue also adds a parser function to retrieve the number of edits of a user. The syntax is:
{{#editcount: <имя_учётной_записи> [ | <пространство_имён1> [ | <пространство_имён2> ... ] ] }}
username
is required and is the name of the target user.
namespace1
, namespace2
and so on are all optional and are the namespace names or namespace numbers of your need.
If specified, the function returns the edit number of the specified namespaces.
If omitted, returns the edit number of all namespaces.
An invalid username causes the function to return 0 as the result. An invalid namespace behaves as though that namespace argument does not exist. If all specified namespaces are invalid, the function returns 0.
API
EditCountNeue adds one API module list=editcount
for query number of edits via API.
- Параметры
ecuser
- The users to retrieve number of edits for.ecnamepsace
- Only list number of edits in these namespaces.
- Пример
api.php?action=query&list=editcount&ecuser=Example
См. также
- Pages with script errors
- Pages with broken file links
- Beta status extensions/ru
- Parser function extensions/ru
- Special page extensions/ru
- API extensions/ru
- Extensions with manual MediaWiki version
- GPL licensed extensions/ru
- Extensions in GitHub version control/ru
- ParserFirstCallInit extensions/ru
- All extensions/ru
- Extensions not in ExtensionJson