无编辑摘要 |
无编辑摘要 |
||
(未显示2个用户的4个中间版本) | |||
第1行: | 第1行: | ||
{{#if: {{{ | {{#if: {{{trigger|}}} | ||
|[[File:event_trigger.png|16px|link=]] {{#ifeq:{{{ | |[[File:event_trigger.png|16px|link=]] {{#ifeq:{{{trigger}}}|always|''' 总是可用:'''|''' 可用条件:''' | ||
{{{ | {{{trigger}}}}} | ||
<div style="margin-left: 20px;"> | <div style="margin-left: 20px;"> | ||
<div style="color: #c2bdb8; width: 468px;"><div class="option_button | <div style="color: #c2bdb8; width: 468px;"><div class="option_button">[[File:event_button.png|468px|link=]]</div><div class="option_title" style="position: relative; text-align: center; margin: -29px 0px 8px;">'''{{{option_text}}}'''</div>{{#ifeq: {{{default}}}|yes|<div class="option_default" style="position: relative; margin: -31px 0px 8px 456px; width: 18px;">[[File:event_default_option.png|18px|This is the default option|link=]]</div>}}</div> | ||
{{{ | {{{effect|*无}}} | ||
{{#ifeq:{{{1}}}|end||----}} | </div> | ||
|<div style="color: #c2bdb8; width: 488px;"><div class="option_button | {{#ifeq:{{{1}}}|end||----}}|<div style="color: #c2bdb8; width: 488px;"><div class="option_button">[[File:event_button.png|488px|link=]]</div><div class="option_title" style="position: relative; text-align: center; margin: -29px 0px 8px;">'''{{{option_text}}}'''</div>{{#ifeq: {{{default}}}|yes|<div class="option_default" style="position: relative; margin: -31px 0px 8px 476px; width: 19px;">[[File:event_default_option.png|19px|This is the default option|link=]]</div>}}</div> | ||
{{{ | {{{effect|*无}}}}}<noinclude> | ||
{{template doc}}[[Category: | |||
{{template doc}}[[Category: 模板]]</noinclude> |
2024年7月20日 (六) 00:23的最新版本
{{{option_text}}}
- 无
选项模板用于在{{事件}}
栏中显示事件选项。
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 “ |
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 --> }}