Jump to content
MediaWiki

Extension:TopTenPages

From mediawiki.org

This extension is currently not actively maintained! Although it may still work, any bug reports or feature requests will more than likely be ignored.

If you are interested in taking on the task of developing and maintaining this extension, you can request repository ownership. As a courtesy, you may want to contact the author. You should also remove this template and list yourself as maintaining the extension in the page's {{Extension }} infobox.

MediaWiki extensions manual
Top Ten Pages
Release status: unmaintained
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
$wgTopTenPagesStartAtOne
  • ‎<TopTenPages />
  • <TopTenPages offset="1">5</TopTenPages>
Licence MIT License
Download
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

[edit ]
<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

[edit ]
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

[edit ]
  • Make sure you installed the HitCounters extension which is required by this extension to work.
  • Download and move the extracted TopTenPages folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:
    cdextensions/
    gitclonehttps://gerrit.wikimedia.org/r/mediawiki/extensions/TopTenPages
    
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'TopTenPages' );
    
  • Configure as required
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration

[edit ]
$wgTopTenPagesStartAtOne (disabled by default)
Enable this to always start the list numbering at "1", even if an "offset" attribute was set.

AltStyle によって変換されたページ (->オリジナル) /