Template:NUMBEROF

From Meta, a Wikimedia project coordination wiki
Jump to navigation Jump to search

0

Template documentation[view] [edit] [history] [purge]

Template used to show the variables NUMBEROFARTICLES, NUMBEROFPAGES, NUMBEROFEDITS, NUMBEROFUSERS, NUMBEROFACTIVEUSERS, NUMBEROFADMINS and NUMBEROFFILES in Wikipedias.

Usage[edit]

It is used by 3 parameters, the third one is optional .

  • First parameter (variable): ARTICLES, PAGES, EDITS, USERS, ACTIVEUSERS, ADMINS or FILES.
  • Second parameter (lang): es, en, de, fr, ...
  • Third parameter (format): using N, it prints the number grouped in three numbers, without it it is shown in raw format, it permits to make mathematical operations with parserFunctions.

Example, to show the number of articles of the French Wikipedia in format raw: {{NUMBEROF|ARTICLES|fr}} → 2124572

Also, the template includes the parameter "total", it shows the total of the given value: {{NUMBEROF|ADMINS|total|N}} → 3,899

The template is updated by a pywikipedia bot using this script.

See also[edit]

  • {{NUMBEROFGROUP}} same as above, but with language groups of Wikipedias rather than individual editions (Germanic, Italic, Slavic, Japonic, Sinitic, etc.).
  • {{NUMBEROFFAMILY}} same as above, but with primary language families (Indo-European, Altaic, Austronesian, Uralic, etc.).

Interwiki[edit]

This template is also available in the following Wikipedias:

No description.

Template parameters

ParameterDescriptionTypeStatus
11

ARTICLES, PAGES, EDITS, USERS, ACTIVEUSERS, ADMINS or FILES.

Example
ARTICLES
Auto value
ARTICLES
Lineoptional
Languege2

es, en, de, fr, …

Example
en
Auto value
Lineoptional
33

using N, it prints the number grouped in three numbers, without it it is shown in ''raw format'', it permits to make mathematical operations with parserFunctions.

Example
N
Auto value
Unknownoptional