Template:Spoiler/start

来自Noita Wiki
跳到导航 跳到搜索

This template is to be used with Template:Spoiler/end for modular spoiler containers.

Template-info.png 模板文档

Usage

为了隐藏中文字体,所以采用了模糊化方案
Default warning text:

This content includes possible spoilers or secrets. Tread carefully.
{{spoiler|inline text here}}

{{spoiler/start}} <!-- optionally provide "| warning = warning text here" similar to the below -->
Spoiler content here.
{{spoiler/end}}

{{spoiler
| warning = // Optional
| content =
}}

Examples

Inline spoiler
This is an {{spoiler|inline spoiler}} in a sentence.
This is an
inline spoiler
in a sentence.
Default warning
{{spoiler/start}}
foo
{{spoiler/end}}

foo

Custom warning
{{spoiler/start  | warning = This is custom warning text. }}
This is spoilered content.
* Block-level content like lists and other formatted content is supported.
[[敌人]]
{{spoiler/end}}

<!-- OR -->

{{spoiler
| warning = This is custom warning text.
| content = 
This is spoilered content.
* Block-level content like lists and other formatted content is supported.
[[敌人]]
}}

This is spoilered content.

  • Block-level content like lists and other formatted content is supported.

敌人

Examples

注:这里是老的使用方法,不推荐(且下文为以前写的,不过将就着看吧)

Default:

{{Spoiler| content= foo}}

foo

Custom:

{{spoiler
| warning = This is custom warning text.
| content = 
This is spoilered content.
* Block-level content like lists and other formatted content is supported.
}}

This is spoilered content.

  • Block-level content like lists and other formatted content is supported.

中文也会被模糊化显示,包括链接,如:

来吃我一发 终结黑洞

Template data

A spoiler block that can contain other block-level elements and display a customisable spoiler warning. Content is obscured using Noita's own glyph font until readers elect to reveal it.

模板参数

此模板首选参数换行格式。

参数描述类型状态
warningwarning

The text to show as a spoiler warning.

默认值
This content includes possible spoilers or secrets. Tread carefully.
示例
This content includes possible spoilers or secrets. Tread carefully.
自动值
This content includes possible spoilers or secrets. Tread carefully.
字符串推荐
contentcontent

The normal section content.

自动值
内容必填