Template:Wikipedia rank by size
| This template uses Lua: |
This template gives a rank of Wikipedia by the number of articles.
Usage
Forward
{{Wikipedia rank by size|1}} → Lua error in package.lua at line 80: module 'Module:NUMBEROF/rank' not found.
{{Wikipedia rank by size|2}} → Lua error in package.lua at line 80: module 'Module:NUMBEROF/rank' not found.
{{Wikipedia rank by size|3}} → Lua error in package.lua at line 80: module 'Module:NUMBEROF/rank' not found.
{{Wikipedia rank by size|4}} → Lua error in package.lua at line 80: module 'Module:NUMBEROF/rank' not found.
{{Wikipedia rank by size|5}} → Lua error in package.lua at line 80: module 'Module:NUMBEROF/rank' not found.
{{Wikipedia rank by size|6}} → Lua error in package.lua at line 80: module 'Module:NUMBEROF/rank' not found.
{{Wikipedia rank by size|7}} → Lua error in package.lua at line 80: module 'Module:NUMBEROF/rank' not found.
Reverse
{{Wikipedia rank by size|fr}} → Lua error in package.lua at line 80: module 'Module:NUMBEROF/rank' not found.
{{Wikipedia rank by size|zh}} → Lua error in package.lua at line 80: module 'Module:NUMBEROF/rank' not found.
Other projects
By default it is for Wikipedia. For the sister projects add a second argument:
{{Wikipedia rank by size|1|wikiquote}} → Lua error in package.lua at line 80: module 'Module:NUMBEROF/other' not found.
{{Wikipedia rank by size|2|wikiquote}} → Lua error in package.lua at line 80: module 'Module:NUMBEROF/other' not found.
Plain language
To display in plain language:
{{Wikipedia rank by size/WP|2}} → [[error: language code: <strongclass="error"><spanclass="scribunto-error"id="mw-scribunto-error-11">luaerrorinpackage.luaatline80:module'module:numberof/rank'notfound. not recognized Wikipedia|error: language code: <strongclass="error"><spanclass="scribunto-error"id="mw-scribunto-error-12">luaerrorinpackage.luaatline80:module'module:numberof/rank'notfound. not recognized]]
This is useful when building dynamic ordered lists. For example:
- {{Wikipedia rank by size/WP|1}} {{NUMBEROF|articles|{{Wikipedia rank by size|1}}|N}}
- {{Wikipedia rank by size/WP|2}} {{NUMBEROF|articles|{{Wikipedia rank by size|2}}|N}}
Produces:
- [[error: language code: <strongclass="error"><spanclass="scribunto-error"id="mw-scribunto-error-13">luaerrorinpackage.luaatline80:module'module:numberof/rank'notfound. not recognized Wikipedia|error: language code: <strongclass="error"><spanclass="scribunto-error"id="mw-scribunto-error-14">luaerrorinpackage.luaatline80:module'module:numberof/rank'notfound. not recognized]] Lua error in package.lua at line 80: module 'Module:NUMBEROF/data' not found.
- [[error: language code: <strongclass="error"><spanclass="scribunto-error"id="mw-scribunto-error-17">luaerrorinpackage.luaatline80:module'module:numberof/rank'notfound. not recognized Wikipedia|error: language code: <strongclass="error"><spanclass="scribunto-error"id="mw-scribunto-error-18">luaerrorinpackage.luaatline80:module'module:numberof/rank'notfound. not recognized]] Lua error in package.lua at line 80: module 'Module:NUMBEROF/data' not found.
For sites other than Wikipedia (eg. Wikiquote) use this method:
- [[Wikiquote|{{Mw lang|{{Wikipedia rank by size|2|wikiquote}}}}]]
Produces:
Data
Rankings are recalculated every 4 hours and retrieved from c:Special:PrefixIndex/Data:Wikipedia_statistics/rank/ updated by Numberof bot.
How to install
- Install Template:NUMBEROF from Enwiki which includes instructions for installing Module:NUMBEROF and its sub-modules.
- Copy this template and docs.
See also
{{NUMBEROF}}
| The above documentation is transcluded from Template:Wikipedia rank by size/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |