Difference between revisions of "Template:Transient extended infobox"

Do the rest
(Second try)
(Do the rest)
Line 441: Line 441:
{{#ifexpr:{{#var:transient id|}}<2|{{#vardefine:transient id|}}}}
{{#ifexpr:{{#var:transient id|}}<2|{{#vardefine:transient id|}}}}
{{#vardefine:charge skill weapon|{{Weapons|{{#replace:{{{charge skill pattern|{{#ifeq:{{#var:weapon type}}|?||{{#var:weapon type}}}}}}}|Weapon Spread |}}}}}}
{{#vardefine:charge skill weapon|{{Weapons|{{#replace:{{{charge skill pattern|{{#ifeq:{{#var:weapon type}}|?||{{#var:weapon type}}}}}}}|Weapon Spread |}}}}}}
{{#vardefine:height|{{#var:transient height|{{{height|}}}}}}}
{{#vardefine:weight|{{#var:transient weight|{{{weight|}}}}}}}
{{#vardefine:weight|{{#var:transient weight|{{{weight|}}}}}}}
{{#vardefine:summon date|{{#var:transient summon date|{{{summon date|}}}}}}}
}}<!--create vars end-->{{#if: {{NAMESPACE}} | <!-- don't create subobj within namespace --> | <!--
}}<!--create vars end-->{{#if: {{NAMESPACE}} | <!-- don't create subobj within namespace --> | <!--


Line 477: Line 479:
| Has sex = {{{sex|}}}
| Has sex = {{{sex|}}}
| Has gate = {{{gate|}}}
| Has gate = {{{gate|}}}
| Has summon date = {{{summon date|}}}
| Has summon date = {{#var:summon date}}
| Has weight = {{#var:weight}}
| Has weight = {{#var:weight}}
| Has height = {{{height|}}}
| Has height = {{#var:height}}
| Has base skill ={{#if:{{{base skill 1|}}}|{{#var:base skill 1 subobj|-}};0;{{{base skill 1}}};{{#var:base skill 1 en name|{{{base skill 1}}}}};{{#var:base skill 1 desc|[?] ? / ?%}};{{#var:base skill 1 raw desc|[?] ? / ?%}};{{{base skill 1 id}}}}}
| Has base skill ={{#if:{{{base skill 1|}}}|{{#var:base skill 1 subobj|-}};0;{{{base skill 1}}};{{#var:base skill 1 en name|{{{base skill 1}}}}};{{#var:base skill 1 desc|[?] ? / ?%}};{{#var:base skill 1 raw desc|[?] ? / ?%}};{{{base skill 1 id}}}}}
| Has base skill ={{#if:{{{base skill 2|}}}|{{#var:base skill 2 subobj|-}};1;{{{base skill 2}}};{{#var:base skill 2 en name|{{{base skill 2}}}}};{{#var:base skill 2 desc|[?] ? / ?%}};{{#var:base skill 2 raw desc|[?] ? / ?%}};{{{base skill 2 id}}}}}
| Has base skill ={{#if:{{{base skill 2|}}}|{{#var:base skill 2 subobj|-}};1;{{{base skill 2}}};{{#var:base skill 2 en name|{{{base skill 2}}}}};{{#var:base skill 2 desc|[?] ? / ?%}};{{#var:base skill 2 raw desc|[?] ? / ?%}};{{{base skill 2 id}}}}}
Line 1,068: Line 1,070:
</tr>
</tr>
     }}
     }}
     {{#if:{{{height|}}}|
     {{#if:{{#var:height}}|
<tr>
<tr>
     <th>Height (cm)</th>
     <th>Height (cm)</th>
     <td>{{{height|}}}</td>
     <td>{{#var:height}}</td>
</tr>
</tr>
     }}
     }}
     {{#if:{{{summon date|}}}|
     {{#if:{{#var:summon date}}|
<tr>
<tr>
     <th>Summon Date</th>
     <th>Summon Date</th>
     <td>{{{summon date|}}}</td>
     <td>{{#var:summon date}}</td>
</tr>
</tr>
     }}
     }}
123

edits