Template:选项:修订间差异

无编辑摘要
无编辑摘要
第1行: 第1行:
{{#if: {{{触发|}}}
{{#if: {{{触发|}}}
|[[File:event_trigger.png|16px|link=]] {{#ifeq:{{{触发}}}|always|'''Always enabled:'''|'''Enabled if:'''
|[[File:event_trigger.png|16px|link=]] {{#ifeq:{{{触发}}}|always|'''Always enabled:'''|'''Enabled if:'''
{{{trigger}}}}}
{{{ 触发}}}}}
<div style="margin-left: 20px;">
<div style="margin-left: 20px;">
<div style="color: #c2bdb8; width: 468px;"><div class="option_button" style="z-index: 1;">[[File:event_button.png|468px|link=]]</div><div class="option_title" style=" z-index: 2; position: relative; text-align: center; margin: -29px 0px 8px;">'''{{{选项文本}}}'''</div>{{#ifeq: {{{默认}}}|yes|<div class="option_default" style="z-index: 2; position: relative; margin: -31px 0px 8px 456px; width: 18px;">[[File:event_default_option.png|18px|This is the default option|link=]]</div>}}</div>
<div style="color: #c2bdb8; width: 468px;"><div class="option_button" style="z-index: 1;">[[File:event_button.png|468px|link=]]</div><div class="option_title" style=" z-index: 2; position: relative; text-align: center; margin: -29px 0px 8px;">'''{{{选项文本}}}'''</div>{{#ifeq: {{{默认}}}|yes|<div class="option_default" style="z-index: 2; position: relative; margin: -31px 0px 8px 456px; width: 18px;">[[File:event_default_option.png|18px|This is the default option|link=]]</div>}}</div>
{{{effect|*None}}}
{{{ 效果|* }}}
{{#ifeq:{{{1}}}|end||----}}</div>
{{#ifeq:{{{1}}}|end||----}}</div>
|<div style="color: #c2bdb8; width: 488px;"><div class="option_button" style="z-index: 1;">[[File:event_button.png|488px|link=]]</div><div class="option_title" style=" z-index: 2; position: relative; text-align: center; margin: -29px 0px 8px;">'''{{{选项文本}}}'''</div>{{#ifeq: {{{默认}}}|yes|<div class="option_default" style="z-index: 2; position: relative; margin: -31px 0px 8px 476px; width: 19px;">[[File:event_default_option.png|19px|This is the default option|link=]]</div>}}</div>
|<div style="color: #c2bdb8; width: 488px;"><div class="option_button" style="z-index: 1;">[[File:event_button.png|488px|link=]]</div><div class="option_title" style=" z-index: 2; position: relative; text-align: center; margin: -29px 0px 8px;">'''{{{选项文本}}}'''</div>{{#ifeq: {{{默认}}}|yes|<div class="option_default" style="z-index: 2; position: relative; margin: -31px 0px 8px 476px; width: 19px;">[[File:event_default_option.png|19px|This is the default option|link=]]</div>}}</div>
{{{效果|*无}}}}}<noinclude>
{{{效果|*无}}}}}<noinclude>
{{template doc}}[[Category:Templates]]</noinclude>
{{template doc}}[[Category:Templates]]</noinclude>

2023年10月13日 (五) 03:47的版本

Event button.png
{{{选项文本}}}
[阅读] [编辑]Template-info.png 模板文档


选项模板用于在{{事件}}栏中显示事件选项。

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 -->
}}