BIKI Spoiler – Extension

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Fix date)
(Add back-to-top link feature + example)
 
(One intermediate revision by the same user not shown)
Line 24: Line 24:


* Turns <syntaxhighlight lang="html" inline><spoiler></syntaxhighlight> in spoiler buttons
* Turns <syntaxhighlight lang="html" inline><spoiler></syntaxhighlight> in spoiler buttons
* Dynamic Show/Hide / Display/Conceal actions
* "Back to spoiler's top" link when the spoiler is of a certain height




Line 51: Line 53:
| <syntaxhighlight lang="html"><spoiler text="Show the hidden message">abc</spoiler></syntaxhighlight>
| <syntaxhighlight lang="html"><spoiler text="Show the hidden message">abc</spoiler></syntaxhighlight>
| <spoiler text="Show the hidden message">abc</spoiler>
| <spoiler text="Show the hidden message">abc</spoiler>
|-
| <syntaxhighlight lang="html+handlebars">
* abc
* def <spoiler>ghi</spoiler>
* jkl
</syntaxhighlight>
|
* abc
* def <spoiler>ghi</spoiler>
* jkl
|-
| <syntaxhighlight lang="html+handlebars">
# abc
# def <spoiler>
# ghi
# jkl
</spoiler>
# mno
</syntaxhighlight>
|
# abc
# def <spoiler>
# ghi
# jkl
</spoiler>
# mno
|-
| <syntaxhighlight lang="html+handlebars">
<spoiler>*long text*</spoiler>
</syntaxhighlight>
|
<spoiler>
* many lines
* many lines
* many lines
* many lines
* many lines
* many lines
* many lines
* many lines
* many lines
* many lines
* many lines
* many lines
* many lines
* many lines
* many lines
* many lines
* many lines
* many lines
* many lines
* many lines
* many lines
* many lines
* many lines
* many lines
* many lines
* many lines
* many lines
* many lines
* many lines
* many lines
* many lines
* many lines
</spoiler>
|}
|}




[[Category: MediaWiki Extension]]
[[Category: MediaWiki Extension]]

Latest revision as of 02:11, 4 July 2023

BIKI Spoiler
Description Provides a spoiler button (based on previously used JSpoiler syntax)
Author Lou Montana
Project Start 2023-06-19: Project start
Release Date
  • 2023-06-19: "v1" (0.50)
Version 0.50

This extension manages <spoiler> tags in spoiler buttons.


Features

  • Turns <spoiler> in spoiler buttons
  • Dynamic Show/Hide / Display/Conceal actions
  • "Back to spoiler's top" link when the spoiler is of a certain height


Installation

  • Unzip the directory to wiki/extensions/BIKISpoiler
  • Add wfLoadExtension( 'BIKISpoiler' ); to LocalSettings.php


Usage

Examples
Code Result
<spoiler/>
<spoiler></spoiler>
<spoiler>abc</spoiler>

abc

<spoiler text="Show the hidden message">abc</spoiler>

abc

* abc
* def <spoiler>ghi</spoiler>
* jkl
  • abc
  • def

    ghi

  • jkl
# abc
# def <spoiler>
# ghi
# jkl
</spoiler>
# mno
  1. abc
  2. def
    1. ghi
    2. jkl
  3. mno
<spoiler>*long text*</spoiler>

  • many lines
  • many lines
  • many lines
  • many lines
  • many lines
  • many lines
  • many lines
  • many lines
  • many lines
  • many lines
  • many lines
  • many lines
  • many lines
  • many lines
  • many lines
  • many lines
  • many lines
  • many lines
  • many lines
  • many lines
  • many lines
  • many lines
  • many lines
  • many lines
  • many lines
  • many lines
  • many lines
  • many lines
  • many lines
  • many lines
  • many lines
  • many lines
↑ Back to spoiler's top