Template:Event/Choices/Choice: Difference between revisions

m (Fixing border width and padding)
(Reworking to use html tags, for proper list grouping and nesting)
Line 1: Line 1:
<div style="width: fit-content; border-style: groove; padding: 0 1em">
<dl style="width: fit-content; border-style: groove; padding: 0 1em">
{{#if: {{{option_1|a}}}
  {{#if: {{{option_1|}}}
| ; {{{option_1|Test 1}}}
  | <dt>{{{option_1}}}</dt>
  {{#if: {{{effect_1|}}}
    {{#if: {{{effect_1|}}}
  | {{{prefix|}}}:{{{effect_1}}}
    | <dd>{{{effect_1}}}</dd>
    |
    }}
   |
   |
   }}
   }}
|
  {{#if: {{{option_2|}}}
}}
  | <dt>{{{option_2}}}</dt>
{{#if: {{{option_2|a}}}
    {{#if: {{{effect_2|}}}
| {{{prefix|}}}; {{{option_2|Test 2}}}
    | <dd>{{{effect_2}}}</dd>
  {{#if: {{{effect_2|}}}
    |
  | {{{prefix|}}}:{{{effect_2}}}
    }}
   |
   |
   }}
   }}
|
  {{#if: {{{option_3|}}}
}}
  | <dt>{{{option_3}}}</dt>
{{#if: {{{option_3|}}}
    {{#if: {{{effect_3|}}}
| {{{prefix|}}}; {{{option_3}}}
    | <dd>{{{effect_3}}}</dd>
  {{#if: {{{effect_3|}}}
    |
  | {{{prefix|}}}:{{{effect_3}}}
    }}
   |
   |
   }}
   }}
|
  {{#if: {{{option_4|}}}
}}
  | <dt>{{{option_4}}}</dt>
{{#if: {{{option_4|}}}
    {{#if: {{{effect_4|}}}
| {{{prefix|}}}; {{{option_4}}}
    | <dd>{{{effect_4}}}</dd>
  {{#if: {{{effect_4|}}}
    |
  | {{{prefix|}}}:{{{effect_4}}}
    }}
   |
   |
   }}
   }}
|
  {{#if: {{{option_5|}}}
}}
  | <dt>{{{option_5}}}</dt>
{{#if: {{{option_5|}}}
    {{#if: {{{effect_5|}}}
| {{{prefix|}}}; {{{option_5}}}
    | <dd>{{{effect_5}}}</dd>
  {{#if: {{{effect_5|}}}
    |
  | {{{prefix|}}}:{{{effect_5}}}
    }}
   |
   |
   }}
   }}
|
</dl>
}}</div>

Revision as of 21:59, 15 November 2020