Extension:Dynamic Article List

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual
Crystal Clear action run.png
Dynamic Article List

Release status: beta

Sample Dynamic Article List 1.png
Implementation Tag
Description Provide add-on sort ability among all posted articles on four types of Dynamic Article List
Author(s) Zengji, Onestone
Latest version 2.0 (2013-05-01)
MediaWiki 1.20+
PHP 5+
Database changes No
License No license specified
Download external DOWNLOAD
Tags
<DynamicArticleList>

Translate the Dynamic Article List extension if possible

Check usage and version matrix; code metrics

DynamicArticleList is an extension designed to provide add-on sort ability among all posted articles. Now four types of Dynamic Article List have been implemented:

  1. Newly Posted Articles
  2. Recently Updated Articles
  3. Recent Discussions
  4. Most Popular Articles

User could easily find the latest or most popular topics cross site with the help of Dynamic Article List.

This extension is written with the help from Dynamic Page List.

Installation[edit | edit source]

  • Download and extract the files in a directory called Dynamic Article List in your extensions/ folder. If you're a developer and this extension is in a Git repository, then instead you should clone the repository.
  • Add the following code at the bottom of your LocalSettings.php:
require_once( "$IP/extensions/Dynamic Article List/Dynamic Article List.php" );
  • Done! Navigate to "Special:Version" on your wiki to verify that the extension is successfully installed.

Usage[edit | edit source]

Tag and its parameters[edit | edit source]

Tag Name DynamicArticleList
Parameters title (optional) Title of the output article list
type (optional) Type of dynamic article list (new/update/discussion/hot)
count (optional) Output count of articles
categoryRoot (optional) Name of category where (including its children) all articles reside
  • If "categoryRoot" is set, Dynamic Article List will only retrieve articles in this category and its children. If not, all articles will be candidates.
  • The value of parameter "type" could be one of the following (default is new ):
    • new => Newly Posted Articles
    • update => Recently Updated Articles
    • discussion => Recent Discussions
    • hot => Most Popular Articles
  • The default value of "count" is 5 .

Samples[edit | edit source]

A sample snapshot of Dynamic Article List is shown below.

Sample Dynamic Article List 1.png

When "type" is set to new ,
The output record format would be Page Title (author) - [create time]
When "type" is set to update or discussion ,
The output record format would be Page Title (last editor) - [update time]

The underlying wiki codes are:


<DynamicArticleList>
  title=Newly Posted Articles
  type=new
  count=512412412412
</DynamicArticleList>

Another sample snapshot of Dynamic Article List is shown below.

Sample Dynamic Article List 2.png

When "type" is set to hot ,
The output record format would be Page Title - (accessed times)

The underlying wiki codes are:


<DynamicArticleList>
  title=Most Popular Articles
  type=hot
  count=5
</DynamicArticleList>