Template:NUMBEROFGROUP

Template documentation

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 Module:NUMBEROFGROUP, which depends on its subpage (Module:NUMBEROFGROUP/data), which serves as a summation wrapper around Module:NUMBEROF/data, itself taking tabular data (from c:Data:Wikipedia statistics/data.tab in JSON format on Wikimedia Commons) which are updated every 6 hours by GreenC bot.

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... or "total" for all languages groups.
  • Third parameter (format):
    • using 'N', it prints the number in native format, with groups separators between localized digits and a localized decimal separator
    • without it it is shown in raw format (no group separator, ASCII digits, '.' as the separator for decimals), it permits to make mathematical operations with parserFunctions.

Examples:

  • to show the sum of the number of articles of Wikipedia in Semitic languages in raw format:
    {{NUMBEROFGROUP|ARTICLES|sem}} → 3272978
  • to show the sum of the number of articles of Wikipedia in Semitic languages in native format:
    {{NUMBEROFGROUP|ARTICLES|sem|N}} → 3,272,978
  • to show the sum of the number of articles of Wikipedia in all languages in native format:
    {{NUMBEROFGROUP|ARTICLES|total|N}} → 64,009,669

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.).