Spoil

From Wiki4Intranet
Jump to: navigation, search

English

Spoil is a MediaWiki extension, designed for: Allows to easily insert wikitext examples — i.e. the parsing result and source code of the same wikitext (in a hidden div).

Full description

Русский

Spoil — расширение MediaWiki, его назначение: Лёгкая вставка примеров вики-кода — то есть, результата разбора вместе с исходным текстом рядом в скрытом div’е.

Полная информация


Usage

Use the <spoil> parser tag (title attribute can be omitted):

<spoil title="Spoiler title">
Replacement example: {{#replace: ABC | A | B}}
</spoil>

Replacement example: BBC

 Spoiler title

Installation

As usual — add the following line into your LocalSettings.php:

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