Extension:NewsTicker

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
OOjs UI icon advanced.svg
NewsTicker
Release status: stable
SpecialNewsTicker.png
Implementation specialpage (invalid type), Variable
Description Adds a magic word that shows a news ticker that can be configured from a special page.
Author(s) Martin Keyler
Sophivorus
Latest version 1.3 (2019-03-14)
MediaWiki 1.32+
PHP 7.0+
Database changes No
License GNU General Public License 3.0 or later
Download
newsticker
Translate the NewsTicker extension if it is available at translatewiki.net
Check usage and version matrix.

The NewsTicker extension adds a magic word {{NEWSTICKER}} to insert news tickers into wiki pages. The style and content of the news tickers, as well as the allowed pages where it can be displayed, are configured from a special page at Special:NewsTicker.

To use the special page, the "newsticker" right is needed, which is granted to all admins by default.

The data set through the special page is saved as JSON at MediaWiki:News.json, so no database changes are required.

Installation[edit]

  • Download and place the file(s) in a directory called NewsTicker in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'NewsTicker' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Usage[edit]

Once installed, go to Special:NewsTicker and set the news you want to show on each page. Then go to each page and add the {{NEWSTICKER}} magic word in the precise location where you want to display the news ticker.

The default style of the news ticker is ultra minimalist, but can be easily changed from Special:NewsTicker and/or MediaWiki:Common.css