Extension:RawFile

From MediaWiki.org

Jump to: navigation, search

             

Manual on MediaWiki Extensions
List of MediaWiki Extensions
Crystal Clear action run.png
RawFile

Release status: beta

Implementation  Parser function, Page action
Description Downloads a RAW copy of <tag>data</tag> parts in a file
Author(s)  Philippe Teuwen
Last Version  0.2 (2008-10-05)
MediaWiki  1.11-1.13 (probably ok from 1.8)
License No license specified
Download http://wiki.yobi.be/wiki/Mediawiki_RawFile
Example  see download page

check usage (experimental)

Contents

[edit] What can this extension do?

Downloads a RAW copy of <tag>data</tag> in a file
Useful e.g. to download a script or a patch
It also allows what is called Literate Programming
I think all the extensions section of MediaWiki could benefit from this extension as it's full of code snippets to copy/paste manually...

[edit] Usage

Inject the newly defined parser functions in your page and users will be able to download your scripts or patches right away!
See the page of the extension for some examples, the code of the extension itself is written in Literate Programming style.

[edit] Download instructions

As the extension is available through the extension itself, no more copy/paste!
Please download this file and place it in $IP/extensions/RawFile/RawFile.php.
Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

[edit] Installation

To install this extension, add the following to LocalSettings.php:

require_once("$IP/extensions/RawFile/RawFile.php");