MediaWiki Extensions
From Fishcakes Wiki
This page contains info about MediaWiki Extensions which extend the functionality of MediaWiki.
About MediaWiki Extensions
- mediawiki.org Manual: Extensions — installation guide.
- mediawiki.org Extensions Matrix — overview of main template extensions.
- mediawiki.org Category: Extensions — category extensions organised by category.
- mediawiki.org All Extensions — big list of all extensions. Page after page, after page...
MediaWiki Extensions Installed
- FlashMP3 Extension — play Flash audio files.
- Inputbox Extension — add search box to page.
- GeSHi Extension — format source code.
MediaWiki Extensions to Review
Check out extensions at
Blocking Spam in MediaWiki
- Evernex Help Blocking Spam — read and implement!
Dynamic Page List Extension
Figure out Categories and install the following — allows you to auto-generate section TOCs.
Include Extension
PageBy Extension
- PageBy Extension — provides a custom tag, <pageby>, that renders as a summary of the pages edit history.
WYSIWYG Editors FCKEditor and TinyMCE Editor
CategoryTree Extension
The CategoryTree extension provides a dynamic view of the wiki's category structure as a tree.
LinkSearch Extension
This extension adds a special page Special:Linksearch which allows to search for pages that contain external link.
CharInsert Extension
Enables the creation of JavaScript links which, when clicked, insert predefined text into the text box.
DynamicPageList Extension
Outputs a bulleted list of the most recent items residing in a category, or a union of several categories.
EasyTimeline Extension
The EasyTimeline feature produces an embedded image from wikitext. The image can be a one-dimensional diagram (horizontally or vertically), or a two-dimensional one.
ImageMap Extension
An extension for client-side clickable image maps. http://www.mediawiki.org/wiki/Extension:ImageMap
FlashMP3 Extension
FlashMP3 embeds a simple Flash-player for playback of mp3-files. See mediawiki.org Extension: FlashMP3 and 1pixelout.net Audio Player Wordpress Plugin.
Chipmunk Effect
Macromedia Flash player has a problem playing files encoded at a rate that is NOT a multiple of 11.025 kHz. This effect is sometimes called the “chipmunk” effect: the file is played at double speed. To avoid this, encode MP3s at 11.025 kHz, 22.050 kHz or 44.100 kHz.
Syntax (default player)
Base Syntax
<flashmp3>filename.mp3|parameter=value|...</flashmp3>
filename.mp3 can be the name of a file uploaded to the Wiki or an external URL. Additional parameters are optional.
Parameter Reference
| Option | Effect |
|---|---|
| autostart=yes | The player will automatically open and start to play the track (default value is no) |
| loop=yes | The track will be looped indefinitely (default value is no) |
| bg=0xHHHHHH | Background colour option (where HHHHHH is a valid hexadecimal colour value such as FFFFFF or 009933) |
| leftbg=0xHHHHHH | Left background colour |
| rightbg=0xHHHHHH | Right background colour |
| rightbghover=0xHHHHHH | Right background colour (hover) |
| lefticon=0xHHHHHH | Left icon colour |
| righticon=0xHHHHHH | Right icon colour |
| righticonhover=0xHHHHHH | Right icon colour (hover) |
| text=0xHHHHHH | Text colour |
| slider=0xHHHHHH | Slider colour |
| loader=0xHHHHHH | Loader bar colour |
| track=0xHHHHHH | Progress track colour |
| border=0xHHHHHH | Progress track border colour |
Multiple files
Multiple files can be played in one FlashMP3 player one after the other by separating them with comma.
Multiple players
Multiple FlashMP3 players on one site can be achieved by giving them an id.
<flashmp3 id="2">secondmp3.mp3</flashmp3>
Code Examples
Play an uploaded mp3-file called mymp3.mp3.
<flashmp3>mymp3.mp3</flashmp3>
Play the remote mp3-file from the URL http://www.somedomain.com/mp3/mymp3.mp3.
<flashmp3>http://www.somedomain.com/mp3/mymp3.mp3</flashmp3>
Play the two uploaded files mymp3.mp3 and yourmp3.mp3 one after the other, autostarts playing when the site is loaded and loops the files.
<flashmp3>mymp3.mp3,yourmp3.mp3|autostart=yes|loop=yes</flashmp3>
GeSHi Extension
Formats source code for better display.See mediawiki.org Extension: SyntaxHighlight GeSHi.
Usage
On the wiki page, you can now use "source" elements:
<source lang="php">
<?php
v = "string"; // sample initialization
?>
html text
<?
echo v; // end of php code
?>
</source>
Parameters
- lang: Defines the language
- line: Corresponds to enable_line_numbers method on GeSHi
- start: Corresponds to start_line_numbers_at method on GeSHi
- enclose: Corresponds to set_header_type method on GeSHi
- strict: Corresponds to enable_strict_mode method on GeSHi
The effect and usage of these parameters can be consulted in GeSHi's documentation.
Since r22246, you can override the colors using [[MediaWiki:GeSHi.css]].
Supported languages
These are the languages known by GeSHi that can be used in the lang parameter:
|
|
|
|
Inputbox Extension
Allows you to add a search box or other input box to a page. See meta.wikimedia.org Help:Inputbox.
Installation
Download and save the file inputbox.php to the MediaWiki extensions folder.
Open and edit the LocalSettings.php file by adding the following line near the bottom:
require_once("$IP/extensions/inputbox.php");
Parameters
| Parameter Scope | Example | |
|---|---|---|
| bgcolor= All types Sets the table background color (HTML color values). Do not use quotes. | <inputbox> type=search bgcolor=#eeeeff </inputbox>
| |
| width= All types Sets the width of the inputbox in characters. | <inputbox> type=create width=24 </inputbox> | |
| default= All types Default text to put in the inputbox. | <inputbox> type=comment default=User talk:Eloquence </inputbox> | |
| preload= comment, create The page under this title will be preloaded (see below) into the blank editbox when a new page is created. | <inputbox> type=create preload=MediaWiki:Editthispage </inputbox> | |
| Enter the title of a non-existent page in the example inputbox above or below, and click "Create article" or "Post a comment" respectively to test this effect. | ||
| editintro= comment, create The text of the page under this title will be added, as instructions, before the editing window. | <inputbox> type=comment editintro=MediaWiki:Missingcommenttext </inputbox> | |
| buttonlabel= All types This label will be used for the main button of the form. | <inputbox> type=comment buttonlabel=Add new rumor </inputbox> | |
| searchbuttonlabel= search This label will be used for the "Search full text" button of the search form. | <inputbox> type=search searchbuttonlabel=Dig deeper </inputbox>
| |
| break= All types Whether or not to insert a line break between the input box and the button(s). Defaults to using the line break unless set to no. | <inputbox> type=create width=24 break=no </inputbox> | |
| namespaces= search Support for namespace checkboxes in fulltext search. | <inputbox> type=search namespaces=Main,Meta,Meta_talk,Help </inputbox>
| |
Applying create to an existing page simply gives the edit page. In that case preload is ignored. Applying comment for a new page works.
Please note that variables, templates. parser functions and template parameters are not supported in inputbox parameters.
MediaWiki Resources
Official MediaWiki Resources
- mediawiki.org — official MediaWiki website.
- mediawiki.org Manual — contents page.
- mediawiki.org Help — contents page.
- mediawiki.org Help: FAQ — good place for quick answers.
- meta.wikimedia.org Help — User Guide
- wikimedia.org Mailing List — sign up for email updates.
Unofficial MediaWiki Resources
- askdrwiki.com Ask Dr Wiki — helpful advice about all things wiki.
- lifehacker.com How to Guide — excellent first start guide with Video Tutorial by Gina Trapani.
- mikeswikidev Mediawiki Dev Blog — by Mike Baynton.
- mwusers.com Media Wiki Users — forum and mailing lists for users and administrators.
- wikibooks.org Administrators Handbook — excellent admin guide.
- wikibooks.org How to Start a Wiki — excellent guide including a list of free and paid Wiki hosts.
- wikieducator.org Wiki Educator — community site with guides for education projects linked with the development of free content.
Media Wiki Tools
- HTML to Wiki Converter for HTML Tables — excellent tool which converts HTML table tags into their wiki equivalents.

