(merge from offical wiki) |
小 (文本替换 - 替换“Category:Templates”为“Category:模板”) |
||
| 第8行: | 第8行: | ||
|<div style="color: #e5e5e5; 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;">'''{{{option_text}}}'''</div></div> | |<div style="color: #e5e5e5; 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;">'''{{{option_text}}}'''</div></div> | ||
{{{effect|*None}}}}}<noinclude> | {{{effect|*None}}}}}<noinclude> | ||
{{template doc}}[[Category: | {{template doc}}[[Category: 模板]]</noinclude> | ||
2020年12月31日 (四) 18:14的最新版本
{{{option_text}}}
- None
Option can be used to diplay the options of events in {{event}} infoboxes.
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 |
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 -->
}}