模板:選項/doc

這是Template:選項的模板文檔
當直接瀏覽時,使用變量可能會失效,請不要寫死頁面名或地址。


選項模板用於在{{事件}}欄中顯示事件選項。

Parameter

Parameter Description Default Status
option_text The text of the option. empty required
effect Effects of the option.
required
trigger Conditions - if applicable - of the option.

If set to 『always』 then it displays 「Event trigger.pngAlways enabled:」 else 「Event trigger.pngEnabled if:」 followed by the specified trigger.

empty optional
1 If set to 'end' the horizontal rule at the end of a conditional option is disabled. empty optional
default If set to yes, adds the default checkmark to the event option. empty optional

Usage

{{Option
|option_text = 
|effect = 
}}

For events with conditional options:

{{Option
|option_text =
|trigger = <!-- required -->
|effect =
|end <!-- if has a trigger and is placed last -->
}}