Extension:TopTenPages
<translate> This extension is currently not actively maintained!</translate> <translate> Although it may still work, any bug reports or feature requests will more than likely be ignored.</translate> <translate> If you are interested in taking on the task of developing and maintaining this extension, [[<tvar name=request>Special:MyLanguage/Gerrit/Privilege policy#Requesting Gerrit privileges</tvar>|you can request repository ownership]].</translate> <translate> As a courtesy, you may want to contact the author.</translate> <translate> You should also remove this template and list yourself as maintaining the extension in the page's <tvar name=extension>{{Extension }}</tvar> infobox.</translate> |
Top Ten Pages Release status: unmaintained |
|
---|---|
File:TopTenPages.png | |
Implementation | Tag , Special page |
Description | Allows to display the most popular pages of a wiki on a page |
Author(s) | |
Latest version | 0.4.0 (2015-06-27) |
MediaWiki | 1.25+ |
PHP | 5.3+ |
Database changes | No |
License | MIT License |
Download | |
$wgTopTenPagesStartAtOne |
|
|
|
Quarterly downloads | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Public wikis using | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Translate the TopTenPages extension if it is available at translatewiki.net |
The TopTenPages extension allows to display the most popular pages of the wiki on a page. It makes use of "Special:Popularpages" provided by the HitCounters extension.
Usage
<TopTenPages [offset=OFFSET]>[NUMBEROFPAGES]</TopTenPages>
or
{{Special:TopTenPages/OFFSET/NUMBEROFPAGES}}
- OFFSET
- Format: Number
- Default:
0
or-
- How many of the most popular Pages to ignore. (e.g.
1
to ignore the main page) - NUMBEROFPAGES
- Format: Number
- Default:
10
- Maximum number of pages to be listed.
Examples
- To show 10 most popular pages
<TopTenPages/>
- To show 5 most popular pages
<TopTenPages>5</TopTenPages>
- To omit the most popular page(s)
<TopTenPages offset=1/>
Installation
- Make sure you installed the HitCounters extension which is required by this extension to work.
- <translate> [[<tvar name=2>Special:ExtensionDistributor/TopTenPages</tvar>|Download]] and move the extracted <tvar name=name>
TopTenPages
</tvar> folder to your <tvar name=ext>extensions/
</tvar> directory.</translate>
<translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/TopTenPages - <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
wfLoadExtension( 'TopTenPages' );
- Configure as required
- File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
Configuration
$wgTopTenPagesStartAtOne
(disabled by default)- Enable this to always start the list numbering at "1", even if an "offset" attribute was set.
- Pages with script errors
- Pages with broken file links
- Unmaintained extensions
- Tag extensions
- Special page extensions
- Extensions without a compatibility policy
- Extensions with manual MediaWiki version
- MIT licensed extensions
- Extensions in Wikimedia version control
- ParserFirstCallInit extensions
- All extensions
- List extensions
- Page content extensions