MediaWiki Extensions

From Fishcakes Wiki

Jump to: navigation, search
Edit Menu

Image:Icon_Mediawiki_40px.png MediaWiki Extensions

This page contains info about MediaWiki Extensions which extend the functionality of MediaWiki.


Contents

About MediaWiki Extensions

MediaWiki Extensions Installed

MediaWiki Extensions to Review

Check out extensions at

Blocking Spam in MediaWiki

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

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:

  • actionscript
  • ada
  • apache
  • applescript
  • asm
  • asp
  • autoit
  • bash
  • blitzbasic
  • bnf
  • c
  • caddcl
  • cadlisp
  • cfdg
  • cfm
  • cpp-qt
  • cpp
  • csharp
  • css-gen.cfg
  • css
  • c_mac
  • d
  • delphi
  • diff
  • div
  • dos
  • eiffel
  • fortran
  • freebasic
  • gml
  • groovy
  • html4strict
  • idl
  • ini
  • inno
  • io
  • java
  • java5
  • javascript
  • latex
  • lisp
  • lua
  • matlab
  • mirc
  • mpasm
  • mysql
  • nsis
  • objc
  • ocaml-brief
  • ocaml
  • oobas
  • oracle8
  • pascal
  • perl
  • php-brief
  • php
  • plsql
  • python
  • qbasic
  • reg
  • robots
  • ruby
  • sas
  • scheme
  • sdlbasic
  • smalltalk
  • smarty
  • sql
  • tcl
  • text
  • thinbasic
  • tsql
  • vb
  • vbnet
  • vhdl
  • visualfoxpro
  • winbatch
  • xml
  • z80

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.


Image:Icon Resources 20px.png MediaWiki Resources

Official MediaWiki Resources

Unofficial MediaWiki Resources

Media Wiki Tools


Personal tools