Template:Wikipedia stats/doc

From Wikipedia, the free encyclopedia

This template is used to automatically generate a table row of statistics for one of the various language editions of Wikipedia. It is generally intended to provide data for Module:AutosortTable.

Usage[edit]

This template is used with 7 parameters, of which only the first two are required, as noted below:

  • First parameter (language code); required: es, en, de, fr, etc.
  • Second parameter (language name in English); required: Spanish, English, German, French, etc.
  • Third parameter (wikilink); optional: Basic English, Standard Tibetan, etc. This parameter fixes links that link to disambiguation pages as a result of there being more than one language sharing the name.
  • Fourth parameter (proper article title in local language); optional: Idioma español, English language, Deutsche Sprache, Français, etc. This parameter fixes links that link to disambiguation pages or non-existent pages on the local language wiki.
  • Additionally, a fifth parameter, called depth, can be inserted to not display the depth, as this data has little validity for wikis with less than 500 articles.
  • Additionally, an unnumbered sixth parameter, called comment, can be added to show an extra comment, like which language's dialect or linguistic variant is used on that wiki.
  • Additionally, an unnumbered seventh parameter, called closed, can be added to let users know whether a certain Wikipedia language edition has been closed.

Examples[edit]

{{Wikipedia stats|en|English|link=English language}} used with the autosort table creates the following:

Details of Wikipedia editions
LanguageLanguage (local)WikiArticlesTotal pagesEditsAdminsUsersActive usersFilesDepthPercentage
EnglishEnglishen6,831,01960,805,2471,222,420,60085547,495,613118,862917,8371255.1110.83%

{{Wikipedia stats|fr|French}} used with the autosort table creates the following:

Details of Wikipedia editions
LanguageLanguage (local)WikiArticlesTotal pagesEditsAdminsUsersActive usersFilesDepthPercentage
Frenchfrançaisfr2,615,81913,079,660215,188,5081474,938,41716,72771,760263.264.15%

{{Wikipedia stats|simple|Simple English|Basic English}} used with the autosort table creates the following:

Details of Wikipedia editions
LanguageLanguage (local)WikiArticlesTotal pagesEditsAdminsUsersActive usersFilesDepthPercentage
Simple EnglishSimple Englishsimple252,478824,5989,556,007191,458,3631,5803659.510.4%

{{Wikipedia stats|de|German|link=Deutsche Sprache}} used with the autosort table creates the following:

Details of Wikipedia editions
LanguageLanguage (local)WikiArticlesTotal pagesEditsAdminsUsersActive usersFilesDepthPercentage
GermanDeutschde2,915,4908,033,908244,002,4921744,379,32917,011129,39293.614.62%

{{Wikipedia stats|cr|Cree|depth=no}} used on the autosort table creates the following:

Details of Wikipedia editions
LanguageLanguage (local)WikiArticlesTotal pagesEditsAdminsUsersActive usersFilesDepthPercentage
CreeNēhiyawēwin / ᓀᐦᐃᔭᐍᐏᐣcr122,30439,771219,955230——0%

{{Wikipedia stats|be-tarask|Belarusian|comment=([[Taraškievica]])}} used with the autosort table creates the following:

Details of Wikipedia editions
LanguageLanguage (local)WikiArticlesTotal pagesEditsAdminsUsersActive usersFilesDepthPercentage
Belarusian (Taraškievica)беларуская (тарашкевіца)be-tarask86,811250,6692,509,770485,8971122,13135.670.14%

AutosortTable[edit]

Usage with AutosortTable should be formatted like this:

{{#invoke: AutosortTable| create | class = wikitable plainrowheaders sortable static-row-numbers static-row-header-hash | style = text-align:right; | separator = -- | order = 13, 1 | numeric = 13 | descending = 13, 5, 6, 7, 8, 9, 10, 11, 12 | hidden = 13 {{!}} caption = Details of Wikipedia editions {{!}} rowheader = 1
|header = -- Language -- Language (local) -- Wiki -- Articles -- Total pages -- Edits -- Admins -- Users -- Active users -- Files -- Depth -- Percentage
|colstyle = -- text-align:left; -- text-align:left; -- text-align:left; --  --  --  --  --  --  --  --  --  -- <!-- col 13 is hidden so align doesn't matter here -->
| {{Wikipedia stats|en|English|link=English language}}
| {{Wikipedia stats|fr|French}}
| {{Wikipedia stats|ja|Japanese}}
| {{Wikipedia stats|pt|Portuguese}}
| {{Wikipedia stats|simple|Simple English|Basic English}}
| {{Wikipedia stats|de|German|link=Deutsche Sprache}}
| {{Wikipedia stats|cr|Cree|depth=no}}
| {{Wikipedia stats|be-tarask|Belarusian|comment=([[Taraškievica]])}}
}}