Extension:Spoilers
![]() リリースの状態: 安定 |
|
---|---|
実装 | パーサー関数 |
説明 | Allows to hide text using the {{#spoiler}} variable |
作者 | Tim "Telshin" Aldridge, Kris "Developaws" Blair |
最新バージョン | 2.0 (2017-10-13) |
MediaWiki | 1.26+ |
データベースの変更 | いいえ |
ライセンス | MIT ライセンス |
ダウンロード | |
The Spoilers extension adds a spoiler tag that will hide a block of text. If you are searching for a more simple way to hide content on pages, you can be interested by Manual:Collapsible elements . The spoiler button's show/hide message can be customized for each set.
Spoilers will be hidden on page load.
インストール
- ダウンロードして、ファイルを
extensions/
フォルダー内のSpoilers
という名前のディレクトリ内に配置します。 - 以下のコードを
LocalSettings.php
の末尾に追加します:wfLoadExtension( 'Spoilers' );
完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。
使用例
{{#spoiler:hide=hide_message|spoiler_text}} {{#spoiler:show=show_message|spoiler_text}} {{#spoiler:show=show_message|hide=hide_message|spoiler_text}} {{#spoiler:spoiler_text}}
![]() | この拡張機能は以下のパッケージ/ウィキファームに含まれています: This is not an authoritative list. Some wiki farms/hosts may contain this extension even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm. |