Difference between revisions of "Spoil"

From Wiki4Intranet
Jump to: navigation, search
(Usage)
(Usage)
Line 15: Line 15:
 
Use the <spoil> parser tag:
 
Use the <spoil> parser tag:
  
<spoil>
+
<pre>
 
<spoil title="Spoiler title">
 
<spoil title="Spoiler title">
 
{{#replace: ABC | A | B}}
 
{{#replace: ABC | A | B}}
 
</spoil>
 
</spoil>
 +
</pre>
 +
 +
<spoil title="Spoiler title">
 +
{{#replace: ABC | A | B}}
 
</spoil>
 
</spoil>
  

Revision as of 15:38, 27 March 2013

Spoil is a MediaWiki extension.

  • Main purpose: Allows to easily insert wikitext examples — i.e. the parsing result and source code of the same wikitext (in a hidden div).
  • Repository: https://github.com/mediawiki4intranet/Spoil
  • Homepage: http://wiki.4intra.net/Spoil 
  • Compatible MediaWiki versions: guaranteed 1.18+, maybe others
  • License: GPLv3+ 
  • Created: 2013-03-27 
  • Our rating: Likely useful (4)

Status for Mediawiki4Intranet distribution:

  • Inclusion date: 2013-03-27
  • Included version: newest available
  • Improvement status: Created by MediaWiki4Intranet project

Usage

Use the <spoil> parser tag:

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

BBC

 Spoiler title

Installation

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

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