Extension:TextScroller

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
Crystal Clear action run.svg
TextScroller
Release status: stable
TextScroller MediaWiki extension.png
Implementation Parser extension
Description Adds a parser function, {{#txtscrl}} to embed the text scrolling widget
Author(s) Jordan Small
Latest version 1.0 (2015-07-29)
MediaWiki 1.32+
License GNU General Public License 2.0 or later
Download
Hooks used
LanguageGetMagic
ParserFirstCallInit
Translate the TextScroller extension if it is available at translatewiki.net
Check usage and version matrix.

The TextScroller extension adds a parser function, {{#txtscrl}} to embed the text scrolling widget.

It was written by Jordan Small for wikiHow.

Installation[edit]

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

To users running MediaWiki 1.24 or earlier:

The instructions above describe the new way of installing this extension using wfLoadExtension() If you need to install this extension on these earlier versions (MediaWiki 1.24 and earlier), instead of wfLoadExtension( 'TextScroller' );, you need to use:

require_once "$IP/extensions/TextScroller/TextScroller.php";

Usage[edit]

{{#txtscrl:Arrow text|Gray text|Scroll text}}