Extension:News2

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
News

Release status: beta

Implementation Tag
Description The News extension allows to show the latest articles of a specific category, default is News.
Author(s) Erich
MediaWiki 1.15
License GPL
Download http://www.erichsteiger.com/images/4/40/News_0.0.2.tar.gz
Example http://www.erichsteiger.com
Parameters

rows: number of rows to show, title: the h2 title to be displayed on top, category: articles to be shown from that category

Check usage (experimental)

The News extension allows to show the latest articles of a specific category, default is News.

[edit] Installing

  • Download the News_0.0.2.tar.gz and unpack it in your mediawiki extensions subfolder
  • Then add the following line to your LocalSettings.php file (near the end):
require_once( "$IP/extensions/News/News.php" );

[edit] Usage

<news>
this includes a list of elements from the category "News". The last added entry comes first
<news rows="5">
limits the list to 5 elements. This means the last 5 News entries will be shown
<news title="FooBar">
shows the title "FooBar" on top
<news category="FooBar">
shows elements from Category "FooBar". Default is "News"
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox