Template:Option:修订间差异

(merge from offical wiki)
 
无编辑摘要
 
(未显示同一用户的2个中间版本)
第1行: 第1行:
{{#if: {{{trigger|}}}
{{#if: {{{trigger|}}}
|[[File:event_trigger.png|22px|link=]] {{#ifeq:{{{trigger}}}|always|'''Always enabled:'''|'''Enabled if:'''
|[[File:event_trigger.png|22px|link=]] {{#ifeq:{{{trigger}}}|always|''' 总是可用:'''|''' 在以下情况下启用:'''
{{{trigger}}}}}
{{{trigger}}}}}
<div style="margin-left: 20px;">
<div style="margin-left: 20px;">
<div style="color: #FFCD51; width: 460px"><div class="option_button" style="z-index: 1;">[[File:event_button_on.png|460px|link=]]</div><div class="option_title" style=" z-index: 2; position: relative; text-align: center; margin: -26px 0px 10px;">'''{{{option_text}}}'''</div></div>
<div style="color: #FFCD51; width: 460px"><div class="option_button" style="z-index: 1;">[[File:event_button_on.png|460px|link=]]</div><div class="option_title" style=" z-index: 2; position: relative; text-align: center; margin: -26px 0px 10px;">'''{{{option_text}}}'''</div></div>
{{{effect|*None}}}
{{{effect|* }}}
{{#ifeq:{{{1}}}|end||----}}</div>
{{#ifeq:{{{1}}}|end||----}}</div>
|<div style="color: #FFCD51; width: 480px"><div class="option_button" style="z-index: 1;">[[File:event_button_on.png|480px|link=]]</div><div class="option_title" style=" z-index: 2; position: relative; text-align: center; margin: -26px 0px 5px;">'''{{{option_text}}}'''</div></div>
|<div style="color: #FFCD51; width: 480px"><div class="option_button" style="z-index: 1;">[[File:event_button_on.png|480px|link=]]</div><div class="option_title" style=" z-index: 2; position: relative; text-align: center; margin: -26px 0px 5px;">'''{{{option_text}}}'''</div></div>
{{{effect|*None}}}}}<noinclude>
{{{effect|* }}}}}<noinclude>
{{template doc}}[[Category:Templates]]</noinclude>
{{template doc}}[[Category: 模板]]</noinclude>

2022年4月15日 (五) 15:34的最新版本

Event button on.png
{{{option_text}}}
[查看] [编辑]Template-info.png 模板文档

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.
  • None
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

Usage[编辑源代码]

{{Option
|option_text = 
|effect = 
}}

For events with conditional options:

{{Option
|trigger = <!-- required -->
|option_text =
|effect =
}}