Git Product home page Git Product logo

mediawiki-extensions-editcountneue's Introduction

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.

Installation

  • Download from the release page, extract the archive into a directory called EditCountNeue in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
wfLoadExtension( 'EditCountNeue' );
  • Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Usage

Special page

EditCountNeue adds a special page called Special:EditCount under users group. Select a user and click to see the the number of edits of the user. It can also be accessed from Special:EditCount/<username>.

Parser function

EditCountNeue also adds a parser function to retrieve the number of edits of a user. The syntax is:

{{#editcount: <username> [ | <namespace1> [ | <namespace2> ... ] ] }}

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 list module list=editcount.

Parameters

  • ecuser - The users to retrieve number of edits for.
  • ecnamespace - Only list number of edits in these namespaces.

Example

List number of edits of user Example:

api.php?action=query&list=editcount&ecuser=Example

Example return:

{
    "query": {
        "editcount": {
            "user": "Example",
            "userid": 1,
            "stat": [
                {
                    "ns": 0,
                    "count": 100
                },
                {
                    "ns": 2,
                    "count": 50
                }
            ],
            "sum": 150
        }
    }
}

License

The source code of EditCountNeue is licensed under GNU General Public License; either version 2 of the License or any later version is applicable.

mediawiki-extensions-editcountneue's People

Contributors

alpha5130 avatar dependabot[bot] avatar lakejason0 avatar litwak913 avatar renovate[bot] avatar translatewiki avatar winstonsung avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

mediawiki-extensions-editcountneue's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

composer
composer.json
  • mediawiki/mediawiki-codesniffer 43.0.0
  • mediawiki/minus-x 1.1.3
  • mediawiki/mediawiki-phan-config 0.14.0
  • php-parallel-lint/php-console-highlighter 1.0.0
  • php-parallel-lint/php-parallel-lint 1.4.0
github-actions
.github/workflows/sync-localization.yml
  • actions/checkout v4
.github/workflows/update-release.yml
  • actions/checkout v4
npm
package.json
  • eslint-config-wikimedia 0.28.2
  • grunt 1.6.1
  • grunt-banana-checker 0.13.0
  • grunt-eslint 25.0.0
  • grunt-stylelint 0.20.1
  • stylelint-config-wikimedia 0.17.2

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.