Extension:Brainfuck

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

Release status:Extension status stable

Brainfuck-mw-logo.png
ImplementationTemplate:Extension#type Tag, Parser function
DescriptionTemplate:Extension#description Embedded Brainfuck Interpreter
Author(s)Template:Extension#username Vladimir Kostyukov (vkostyukovtalk)
Latest versionTemplate:Extension#version 0.3 (May 2012)
MediaWikiTemplate:Extension#mediawiki 1.14 (tested)
Database changesTemplate:Extension#needs-updatephp No
LicenseTemplate:Extension#license Apache License 2.0
Download
Hooks usedTemplate:Extension#hook
ParserFirstCallInitManual:Hooks/ParserFirstCallInit
LanguageGetMagicManual:Hooks/LanguageGetMagic

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

Check usage and version matrix.

The Brainfuck extension allows you to interpret Brainfuck code on pages.

Usage[edit]

There are two ways to use this extension: with tags or with parser function. Following examples are renders as "BF" string (from "BrainFuck").

Tag[edit]

<brainfuck>>++++++++++[>+++++++>+++++++><<<-]>---->><<<>.>.</brainfuck>
<bf>>++++++++++[>+++++++>+++++++><<<-]>---->><<<>.>.</bf>

Parser Function[edit]

{{#brainfuck:>++++++++++[>+++++++>+++++++><<<-]>---->><<<>.>.}}
{{#bf:>++++++++++[>+++++++>+++++++><<<-]>---->><<<>.>.}}

Installation[edit]

  • Download and place the file(s) in a directory called Brainfuck in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
require_once "$IP/extensions/Brainfuck/Brainfuck.php";
  • YesY Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

References[edit]