Extension:News2

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.png
News

Release status:Extension status beta

ImplementationTemplate:Extension#type Tag
DescriptionTemplate:Extension#description The News extension allows to show the latest articles of a specific category, default is News.
Author(s)Template:Extension#username Erich
MediaWikiTemplate:Extension#mediawiki 1.15
LicenseTemplate:Extension#license GPL
Download http://www.erichsteiger.com/images/4/40/News_0.0.2.tar.gz
ExampleTemplate:Extension#example http://www.erichsteiger.com
ParametersTemplate:Extension#parameters

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

Translate the News2 extension if it is available at translatewiki.net

Check usage and version matrix.

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

Installing[edit]

  • 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" );

Usage[edit]

<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"