Title: Inline Spoilers
Author: Sergey Kuzmich
Published: <strong>2014 年 5 月 27 日</strong>
Last modified: 2025 年 2 月 17 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://ps.w.org/inline-spoilers/assets/icon-256x256.png?rev=1115839)

# Inline Spoilers

 由 [Sergey Kuzmich](https://profiles.wordpress.org/sergeykuzmich/) 開發

[下載](https://downloads.wordpress.org/plugin/inline-spoilers.2.1.0.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/inline-spoilers/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/inline-spoilers/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/inline-spoilers/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/inline-spoilers/#developers)

 [技術支援](https://wordpress.org/support/plugin/inline-spoilers/)

## 外掛說明

The plugin allows to create content spoilers with Guttenberg block or simple shortcode.

    ```
    [spoiler title="Expand Me"]Spoiler content[/spoiler]
    ```

## 螢幕擷圖

[⌊Guttenberg block⌉⌊Guttenberg block⌉[

Guttenberg block

[⌊Spoiler shortcode [spoiler][/spoiler]⌉⌊Spoiler shortcode [spoiler][/spoiler]⌉[

Spoiler shortcode `[spoiler][/spoiler]`

[⌊Collapsed spoiler⌉⌊Collapsed spoiler⌉[

Collapsed spoiler

[⌊Expanded spoiler⌉⌊Expanded spoiler⌉[

Expanded spoiler

## 適用於區塊編輯器

這個外掛提供 1 個可供區塊編輯器使用的區塊。

 *   Inline Spoiler Hide text that can be revealed by clicking a button.

## 安裝方式

 1. Install via WordPress Dashboard or upload `inline-spoiler.zip`;
 2. Activate the plugin through the ‘Plugins’ menu in WordPress;
 3. Use Guttenberg block or shortcode in your content;

## 常見問題集

### How can I customize design of the spoiler?

Just override classes defined in `build/style-index.css` with your theme styles.

## 使用者評論

![](https://secure.gravatar.com/avatar/dcac642becc327427bfda0128d2346ecf616672c79420219231407c453cb059c?
s=60&d=retro&r=g)

### 󠀁[Отличный плагин!](https://wordpress.org/support/topic/%d0%be%d1%82%d0%bb%d0%b8%d1%87%d0%bd%d1%8b%d0%b9-%d0%bf%d0%bb%d0%b0%d0%b3%d0%b8%d0%bd-969/)󠁿

 [George](https://profiles.wordpress.org/giorgos93/) 2025 年 2 月 17 日

Это лучший Вордпресс-плагин для создания спойлеров! Разработчик прислушивается к
идеям и пожеланиям, и внедряет их. А благодаря добавлению функции: «спойлеры внутри
спойлеров» стало вообще отлично!

![](https://secure.gravatar.com/avatar/de4cb40a362346cc42cbfd92d7b12ed32dbd04b3cf354b75738435e62b8e734e?
s=60&d=retro&r=g)

### 󠀁[Перестали работать ссылки](https://wordpress.org/support/topic/%d0%bf%d0%b5%d1%80%d0%b5%d1%81%d1%82%d0%b0%d0%bb%d0%b8-%d1%80%d0%b0%d0%b1%d0%be%d1%82%d0%b0%d1%82%d1%8c-%d1%81%d1%81%d1%8b%d0%bb%d0%ba%d0%b8/)󠁿

 [alexeyspavlov](https://profiles.wordpress.org/alexeyspavlov/) 2025 年 2 月 16 
日 3 則留言

После обновления перестали работать ссылки внутри спойлера. До этого всё было прекрасно.
Исправьте, пожалуйста, поскольку аналогов у Вашего плагина пока пока нет.

![](https://secure.gravatar.com/avatar/d42c6edce5349a6749975067b8a51705ce3293d9356e00b0fcd448ed36886c58?
s=60&d=retro&r=g)

### 󠀁[super](https://wordpress.org/support/topic/super-2933/)󠁿

 [Kamolov Mansurjon](https://profiles.wordpress.org/mansurjon/) 2024 年 2 月 17 
日

Maqolalarda ishlatish uchun juda qulay

![](https://secure.gravatar.com/avatar/8347d3e00b307e5baf074dfcf37d4398db49b284e08f6b80a1c18937edd0cd29?
s=60&d=retro&r=g)

### 󠀁[Doesn’t do what the name says](https://wordpress.org/support/topic/the-plugin-does-not-do-what-its-name-suggests/)󠁿

 [snowball91](https://profiles.wordpress.org/snowball91/) 2022 年 4 月 18 日

"Inline" means "in the same line" (see e.g. inline CSS, inline functions in C++).
This plugin only allows inserting whole separate blocks with spoilers, not creating
them in the same line. 1/5 for a misleading title that draws all searches to this
dead-end which does not solve the problem.

![](https://secure.gravatar.com/avatar/42564e89ec084fc4fa43cb4e224582cef146de1bd16ffd621ee4402d887bde82?
s=60&d=retro&r=g)

### 󠀁[goood](https://wordpress.org/support/topic/goood-41/)󠁿

 [dfmcvn](https://profiles.wordpress.org/dfmcvn/) 2020 年 1 月 6 日

goood

![](https://secure.gravatar.com/avatar/19e9b0869d5665a224f9689a8be40312fed4a0523886fe8ffb987417da44eec4?
s=60&d=retro&r=g)

### 󠀁[Good but 2 minor problems](https://wordpress.org/support/topic/good-but-2-minor-problems/)󠁿

 [reizla](https://profiles.wordpress.org/reizla/) 2019 年 10 月 19 日

I'm using this plugin to mark NSFW parts in my blog and it works pretty good for
that part. There are 2 minor problems though: 1. The plugin doesn't show up on the
paragraph's (+) menu so I need to use [spoiler title="NFSW"] … [/spoiler] manually
each time (using WP 5.2.4). 2. I like the dark theme over the light theme and when
using dark theme the text isn't converted to white. When these 2 minor things are
fixed I'll give it a 5* rating.

 [ 閱讀全部 14 則使用者評論 ](https://wordpress.org/support/plugin/inline-spoilers/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈Inline Spoilers〉的開發相關工作。

參與者

 *   [ Sergey Kuzmich ](https://profiles.wordpress.org/sergeykuzmich/)
 *   [ Sergey Z. ](https://profiles.wordpress.org/gadswan/)

〈Inline Spoilers〉外掛目前已有 4 個本地化語言版本。 感謝[全部譯者](https://translate.wordpress.org/projects/wp-plugins/inline-spoilers/contributors)
為這個外掛做出的貢獻。

[將〈Inline Spoilers〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/inline-spoilers)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/inline-spoilers/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/inline-spoilers/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/inline-spoilers/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/inline-spoilers/)。

## 變更記錄

#### 2.1.0

 * Fixed interaction with links & other interactive elements inside the spoiler
 * Fixed styling for the spoiler made with the shortcode, when there is no spoiler
   block

**_EXPERIMENTAL_**

 * Provide support for dynamic shortcodes `[spoiler-{variable}]` (e.g. `[spoiler-
   alpha]`, `[spoiler-beta]`, etc.)

> Set `IS_DYNAMIC_SHORTCODE` to `true` in `wp-config.php` to enable the feature:`
> define('IS_DYNAMIC_SHORTCODE', true);`

Usage example:

    ```
    [spoiler-alpha title="Parent"]
        [spoiler-beta title="The First Child"]
            Hello World!
            [spoiler-gamma title="Grand Child"]
                I was born!
            [/spoiler-gamma]
        [/spoiler-beta]
        [spoiler-beta title="The Second Child"]
            Goodbye World!
        [/spoiler-beta]
    [/spoiler-alpha]
    ```

#### 2.0.0

 * Change spoiler HTML semantic (from `div` to `details` & `summary`)
    - All blocks created with the previous version of Guttenberg block will be the
      same as before, until you edit them
 * Allow spoilers inside spoilers (as well as any other Guttengerg blocks allowed
   in post)

**WARNING**
 * Minimal required WordPress version is 6.6 (for JSX support, [JSX in WordPress 6.6](https://make.wordpress.org/core/2024/06/06/jsx-in-wordpress-6-6/))*
The plugin is not fully tested with PHP versions lower than 8.1 due to the lack 
of available [official docker images](https://hub.docker.com/_/wordpress/)

[OLDER VERSIONS](https://github.com/sergeykuzmich/inline-spoilers?tab=readme-ov-file#older-versions)

## 中繼資料

 *  版本 **2.1.0**
 *  最後更新 **2 年前**
 *  啟用安裝數 **1,000+**
 *  WordPress 版本需求 ** 6.6 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.7.11**
 *  PHP 版本需求 ** 7.2 或更新版本 **
 *  語言
 * [Dutch](https://nl.wordpress.org/plugins/inline-spoilers/)、[English (US)](https://wordpress.org/plugins/inline-spoilers/)、
   [Galician](https://gl.wordpress.org/plugins/inline-spoilers/)、[Russian](https://ru.wordpress.org/plugins/inline-spoilers/)、
   及 [Swedish](https://sv.wordpress.org/plugins/inline-spoilers/).
 *  [將這個外掛本地化為你的母語版本](https://translate.wordpress.org/projects/wp-plugins/inline-spoilers)
 * 標籤:
 * [bbcode](https://tw.wordpress.org/plugins/tags/bbcode/)[block](https://tw.wordpress.org/plugins/tags/block/)
   [guttenberg](https://tw.wordpress.org/plugins/tags/guttenberg/)[shortcode](https://tw.wordpress.org/plugins/tags/shortcode/)
   [spoiler](https://tw.wordpress.org/plugins/tags/spoiler/)
 *  [進階檢視](https://tw.wordpress.org/plugins/inline-spoilers/advanced/)

## 評分

 4.6 星，滿分為 5 星

 *  [  11 個 5 星使用者評論     ](https://wordpress.org/support/plugin/inline-spoilers/reviews/?filter=5)
 *  [  2 個 4 星使用者評論     ](https://wordpress.org/support/plugin/inline-spoilers/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/inline-spoilers/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/inline-spoilers/reviews/?filter=2)
 *  [  1 個 1 星使用者評論     ](https://wordpress.org/support/plugin/inline-spoilers/reviews/?filter=1)

[撰寫評分](https://wordpress.org/support/plugin/inline-spoilers/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/inline-spoilers/reviews/)

## 參與者

 *   [ Sergey Kuzmich ](https://profiles.wordpress.org/sergeykuzmich/)
 *   [ Sergey Z. ](https://profiles.wordpress.org/gadswan/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/inline-spoilers/)