Template:NUMBEROFFAMILY

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 families of Wikipedias.

Family codes[edit]

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

How it works[edit]

This template depends on its subpage (Template:NUMBEROFFAMILY/data), which serves as a wrapper around data from Template:NUMBEROFGROUP/data and 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 family): ine, map, tut, sit, nic, ccn...
  • 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 Indo-European languages in raw format: {{NUMBEROFFAMILY|ARTICLES|ine}} → 32755483

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 families.
  • {{NUMBEROFGROUP}} same as above, but with groups of related languages within a language family (Germanic, Slavic, Bornean, Semetic, Turkic, etc.)

Inter Wiki[edit]