User:PK2/Template:WP7
-- [[:en:{{{2}}} language|{{{2}}}]] -- -1 -- [[:{{{1}}}:{{{1}}} |{{{1}}}]] -- [[:{{{1}}}:|{{{1}}}]]
-- [{{fullurl:{{{1}}}:Special:Statistics|action=raw}} -1] -- -1 -- [[:{{{1}}}:Special:Statistics|-1]] -- [[:{{{1}}}:Special:ListAdmins/sysop|-1]] -- [[:{{{1}}}:Special:ListUsers|-1]] -- [[:{{{1}}}:Special:ActiveUsers|-1]] -- [[:{{{1}}}:Special:ListFiles|-1]] -- 0 -- -0%
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:
Language | Language (local) | Wiki | Articles | Total pages | Edits | Admins | Users | Active users | Files | Depth | Percentage |
---|---|---|---|---|---|---|---|---|---|---|---|
English | English | en | 6,830,141 | 60,792,502 | 1,222,057,973 | 855 | 47,485,523 | 119,604 | 918,134 | 1254.77 | 10.83% |
{{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,615,396 | 13,077,069 | 215,109,035 | 147 | 4,936,920 | 16,727 | 71,743 | 263.19 | 4.15% |
{{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 | 252,403 | 824,309 | 9,551,740 | 19 | 1,457,339 | 1,580 | 36 | 59.49 | 0.4% |
{{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 | 2,914,921 | 8,032,391 | 243,938,704 | 174 | 4,378,074 | 17,011 | 129,345 | 93.6 | 4.62% |
{{Wikipedia stats|cr|Cree|depth=no}}
used on the autosort table creates the following:
Language | Language (local) | Wiki | Articles | Total pages | Edits | Admins | Users | Active users | Files | Depth | Percentage |
---|---|---|---|---|---|---|---|---|---|---|---|
Cree | Nēhiyawēwin / ᓀᐦᐃᔭᐍᐏᐣ | cr | 12 | 2,304 | 39,770 | 2 | 19,948 | 23 | 0 | —— | 0% |
{{Wikipedia stats|be-tarask|Belarusian|comment=([[Taraškievica]])}}
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 | 86,802 | 250,604 | 2,509,082 | 4 | 85,866 | 112 | 2,129 | 35.65 | 0.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]])}}
}}