Difference between revisions of "Spoil"

From Wiki4Intranet
Jump to: navigation, search
(Created page with "{{Extension4info |name=Spoil |mediawiki=1.18+ |description en=Allows to easily insert wikitext examples - i.e. the parsing result and source code of the same wikitext (in a hi...")
 
 
(6 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
|name=Spoil
 
|name=Spoil
 
|mediawiki=1.18+
 
|mediawiki=1.18+
|description en=Allows to easily insert wikitext examples - i.e. the parsing result and source code of the same wikitext (in a hidden div).
+
|license=GPLv3+
|description ru=Лёгкая вставка примеров вики-кода - то есть, результата разбора и исходного текста рядом в скрытом div'е.
+
|description en=Allows to easily insert wikitext examples i.e. the parsing result and source code of the same wikitext (in a hidden div).
 +
|description ru=Лёгкая вставка примеров вики-кода — то есть, результата разбора вместе с исходным текстом рядом в скрытом div’е.
 
|created=2013-03-27
 
|created=2013-03-27
 
|included=2013-03-27
 
|included=2013-03-27
Line 13: Line 14:
 
== Usage ==
 
== Usage ==
  
Use the <spoil> parser tag:
+
Use the <spoil> parser tag (title attribute can be omitted):
  
<spoil>
+
<pre>
&lt;spoil title="Spoiler title"&gt;
+
<spoil title="Spoiler title">
{{#replace: ABC | A | B}}
+
Replacement example: {{#replace: ABC | A | B}}
&lt;/spoil&gt;
+
</spoil>
 +
</pre>
 +
 
 +
<spoil title="Spoiler title">
 +
Replacement example: {{#replace: ABC | A | B}}
 
</spoil>
 
</spoil>
  

Latest revision as of 18:05, 27 March 2013

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");