Template:NUMBEROFGROUP

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 for language groups of Wikipedias.

For this template's purposes, a language group is a group of related languages within a language family. For instance, Norwegian is part of the Germanic group of languages within the Indo-European family.

Group codes[edit]

The language groups' names are based on the ISO 639-5 standard unless a code is not defined, in which case the English name of the group is used instead.

Examples include: Finno-Permic, Sunda-Sulawesi, Ugric, Korean, Bornean, Yoruboid, Polynesian, Aymaran, Igboid, Timor-Babar, Micronesian, Kwa, Ubangian, East Fijian, Muskogean, and Papuan Tip. Some codes are modifications based on ISO 639-5: art-ine (combination of official codes art and ine; Constructed and Indo-European), ccn-e (North Caucasian languages from the East), and ccn-w (North Caucasian languages from the West).

In order to avoid confusion between a legitimate ISO 639-5 code and the English name of the group (Kwa is a good example), non-codes begin with a capital letter.

How it works[edit]

This template depends on its subpage (Template:NUMBEROFGROUP/data), which serves as a wrapper around data from Template:NUMBEROF/data, which in turn is automatically updated by Acebot daily, shortly after midnight (GMT).

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 (language group): gem, itc, sla, jpx, zhx, trk, Finno-Permic, aav ...
  • 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 sum of the number of articles of Wikipedias in Semitic languages in raw format: {{NUMBEROFGROUP|ARTICLES|sem}} → 1208363

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

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

See also[edit]

  • {{NUMBEROF}} same as above, but with individual Wikipedias rather than language groups.
  • {{NUMBEROFFAMILY}} same as above, but with primary language families (Indo-European, Altaic, Austronesian, Uralic, etc.).

Interwiki[edit]

en:Template:NUMBEROFGROUP vep:Šablon:NUMBEROFGROUP