This page is semi-protected against editing.

Template:Adminstats

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:Adminstats/doc.

No description yet available.

Usage

{{Adminstats |1= }}

This template is for admins and account creators only; the bot will not process updates for non-admins.

Within 24 hours after placing the template on your user page or user subpage, the bot will create your stats page and update it every 24 hours.

Maintained by User:Cyberbot I.

Template parameters

<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData

TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.


Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either ‎useTemplateData=1 or ‎useTemplateData=only on the ‎/doc subpage and transcluding it with {{Documentation}} into the template. ‎<nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw ‎<templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.

Discussion
There is an ongoing discussion about that matter. Feel invited to comment if you are experienced in either way, your time permits and if you like to share your opinion or to make a suggestion.


Wikipedia's help about TemplateDataCommons-specific information

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
user name1

User name of the admin or account creator to get stats for

Userrequired
stylestyle

Layout template to use; a subpage of Template:Adminstats (e.g. “bar” to use Template:Adminstats/bar), or a full page name (e.g. “User:Foo/adminstat-style”). If the subpage exists, it’s used, if only the full-named template exists, that’s used, and if neither exists (or the parameter is not specified), Template:Adminstats/default is used.

Default
default
Lineoptional

Additional information

The template is intended to be used in the following namespaces: the User namespace

The template is intended to be used by the following user groups: Administrators

Relies on:
{{Adminstats/Core}}

Localization

This template is not intended to be localized.

Style

By default, the template uses the style given in Template:Adminstats/default. To specify an alternative, use the parameter style=template, e.g.

{{adminstats|USERNAME|style=User:USERNAME/Mystyle}}

If the style is a subtemplate of Template:Adminstats, then the style can be specified using the name of the subpage.

Raw styles

To use the values of a given field only, some raw style formats have been set up. For example, to give the number of edits, use the parameter style=raw XXX where XXX specifies the raw number you want.

Full list of raw styles:

  • raw blocked - gives number of users blocked
  • raw created - gives number of users created
  • raw deleted - gives number of pages deleted
  • raw revdel - gives number of deleted revisions
  • raw eventdel - gived number of deleted events such as logs
  • raw ed+del - gives total number of edits and deleted edits
  • raw edit - gives number of edits (excluding deleted edits)
  • raw modified - gives number of page protection modifications
  • raw protected - gives number of pages protected
  • raw imported - gives number of transwikied and XMLs user has imported.
  • raw reblocked - gives number of users reblocked
  • raw unblocked - gives number of users unblocked
  • raw restored - gives number of pages undeleted
  • raw rights - gives number of user right modifications
  • raw unprotected - gives number of pages unprotected
  • raw filter - gives number of abuse filter modifications
  • raw merge - gives number of merged pages
  • raw massmessage - gives number of sent mass messeges
  • raw ta - gives number of performed translation admin actions
  • raw renamed - gives the number of users renamed

For example |style=raw blocked gives the number of users blocked.