Extension:BOFH

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
Crystal Clear action run.svg
BOFH
Release status: stable
Implementation Tag, Parser function
Description Adds a tag and a function to display a random BOFH excuse
Author(s) Helmut K. C. Tessarek (tessustalk)
Latest version 1.7 (2019-01-18)
Compatibility policy master
MediaWiki 1.25+
Database changes No
License GNU General Public License 2.0 or later
Download
README
Tags
<bofh>
Hooks used
ParserFirstCallInit
Translate the BOFH extension if it is available at translatewiki.net
Check usage and version matrix.

The BOFH extension allows users to display a random BOFH (Bastard Operator From Hell) excuse on a wiki page.

Installation[edit]

  • Grab the code via git:
cd extensions
git clone https://github.com/tessus/mwExtensionBOFH.git BOFH
  • Add the following code at the bottom of your LocalSettings.php:
wfLoadExtension('BOFH');
  • Yes Done – Navigate to "Special:Version" on your wiki to verify that the extension is successfully installed.

Usage[edit]

tag[edit]

Add a <bofh/> tag to display a random BOFH excuse.

function[edit]

A function can be used to display a random excuse in a nostalgic look.

{{bofh:}} will look like this:

Extension BOFH Example 1.png


Without a value the width of the box will be the length of the excuse, but you can also specify a fixed length {{bofh:600}} or a percentage {{bofh:40%}}.

{{bofh:600}} will look like this:

Extension BOFH Example 2.png