From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.svg

Release status:Extension status beta

ImplementationTemplate:Extension#type Parser function, Page action
DescriptionTemplate:Extension#description Downloads a RAW copy of <tag>data</tag> parts in a file
Author(s)Template:Extension#username Philippe Teuwen, Michaël Peeters
Latest versionTemplate:Extension#version 0.5.1 (2014-02-14)
MediaWikiTemplate:Extension#mediawiki 1.11-1.22.1 (>1.22.1 not tested)
LicenseTemplate:Extension#license No license specified
Download http://wiki.yobi.be/wiki/Mediawiki_RawFile
ExampleTemplate:Extension#example see download page
Hooks usedTemplate:Extension#hook

Translate the RawFile extension if it is available at translatewiki.net

Check usage and version matrix.

What can this extension do?[edit]

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...


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.

Download instructions[edit]

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.


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


Security advisories[edit]

Versions 0.4 and 0.4.1 are vulnerable to remote PHP code injection!!!
Upgrade to version ≥ 0.5 ASAP!

mash-up RawFile/Geshi/CodeFile[edit]

I'm working on Extension:RawCodeFile it's a mix of 2 extensions, including this one, updated. It works under 1.25+ if geshi is installed.