Template:Wikipedia stats/doc
![]() | This is a documentation subpage for Template:Wikipedia stats. It may contain usage information, categories and other content that is not part of the original template page. |
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:
en
,es
,de
,fr
, etc. - Second parameter (language name in English); required: 'English', 'Spanish', 'German', 'French', etc.
- Third parameter (proper article title in English); 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: English language, Idioma español, Deutsche Sprache, Français, etc. This parameter fixes links that link to disambiguation pages or non-existent pages on the local language wiki.
- Fifth parameter (comment); optional: This parameter shows an extra comment, like which language's dialect or linguistic variant is used on that wiki.
- Sixth parameter (closed); optional: This parameter lets users know whether a certain Wikipedia language edition has been closed.
- Seventh parameter (depth); optional: This parameter hides the depth, as this data has little validity for wikis with less than 500 articles. It is currently deprecated for active Wikipedia editions.
Examples
[edit]{{Wikipedia stats|en|English|link=English language}}
used with the autosort table creates the following:
Language | Language (local) | Wiki | Articles | Total pages | Edits | Admins | Users | Active users | Files | Depth | Percentage |
---|---|---|---|---|---|---|---|---|---|---|---|
English | English | en | 6,989,009 | 63,045,912 | 1,283,645,228 | 842 | 49,078,158 | 117,932 | 937,008 | 1309.83 | 10.78% |
{{Wikipedia stats|fr|French}}
used with the autosort table creates the following:
Language | Language (local) | Wiki | Articles | Total pages | Edits | Admins | Users | Active users | Files | Depth | Percentage |
---|---|---|---|---|---|---|---|---|---|---|---|
French | français | fr | 2,681,180 | 13,462,517 | 224,828,463 | 143 | 5,168,888 | 17,449 | 74,711 | 270.03 | 4.13% |
{{Wikipedia stats|simple|Simple English|Basic English}}
used with the autosort table creates the following:
Language | Language (local) | Wiki | Articles | Total pages | Edits | Admins | Users | Active users | Files | Depth | Percentage |
---|---|---|---|---|---|---|---|---|---|---|---|
Simple English | Simple English | simple | 268,084 | 878,839 | 10,206,241 | 21 | 1,588,946 | 1,580 | 36 | 60.28 | 0.41% |
{{Wikipedia stats|de|German|link=Deutsche Sprache}}
used with the autosort table creates the following:
Language | Language (local) | Wiki | Articles | Total pages | Edits | Admins | Users | Active users | Files | Depth | Percentage |
---|---|---|---|---|---|---|---|---|---|---|---|
German | Deutsch | de | 3,011,368 | 8,276,631 | 253,886,518 | 172 | 4,568,532 | 16,806 | 130,563 | 93.78 | 4.64% |
{{Wikipedia stats|be-tarask|Belarusian|comment=([[Taraškievica]])|link=Беларуская мова}}
used with the autosort table creates the following:
Language | Language (local) | Wiki | Articles | Total pages | Edits | Admins | Users | Active users | Files | Depth | Percentage |
---|---|---|---|---|---|---|---|---|---|---|---|
Belarusian (Taraškievica) | беларуская (тарашкевіца) | be-tarask | 88,841 | 259,904 | 2,606,074 | 5 | 90,180 | 98 | 2,128 | 37.18 | 0.14% |
{{Wikipedia stats|ii|Nuosu|closed=yes|depth=no}}
used with the autosort table creates the following:
Language | Language (local) | Wiki | Articles | Total pages | Edits | Admins | Users | Active users | Files | Depth | Percentage |
---|---|---|---|---|---|---|---|---|---|---|---|
Nuosu (closed) | ꆇꉙ | ii | 3 | 187 | 11,654 | 1 | 2,051 | 3 | 0 | —— | 0% |
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|link=Língua portuguesa}}
| {{Wikipedia stats|simple|Simple English|Basic English|link=Basic English}}
| {{Wikipedia stats|de|German|link=Deutsche Sprache}}
| {{Wikipedia stats|be-tarask|Belarusian|comment=([[Taraškievica]])|link=Беларуская мова}}
| background-color: #d0d0d0; {{Wikipedia stats|ii|Nuosu|closed=yes|depth=no}}<!-- there's no article on this Wikipedia about its language -->
}}