Difference between revisions of "Template:Transient extended infobox"

Jump to navigation Jump to search
Second try
(First try)
(Second try)
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:weight|{{#var:transient weight|{{{weight|}}}}}}}
}}<!--create vars end-->{{#if: {{NAMESPACE}} | <!-- don't create subobj within namespace --> | <!--
}}<!--create vars end-->{{#if: {{NAMESPACE}} | <!-- don't create subobj within namespace --> | <!--


Line 478: Line 478:
| Has gate = {{{gate|}}}
| Has gate = {{{gate|}}}
| Has summon date = {{{summon date|}}}
| Has summon date = {{{summon date|}}}
| Has weight = {{#varexists:weight|{{#var:weight}}|{{{weight|}}}}}
| Has weight = {{#var:weight}}
| Has height = {{{height|}}}
| Has height = {{{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}}}}}
Line 1,062: Line 1,062:
</tr>
</tr>
     }}
     }}
     {{#if:{{{weight|}}}|
     {{#if:{{#var:weight}}|
<tr>
<tr>
     <th>Weight (kg)</th>
     <th>Weight (kg)</th>
     <td>{{{weight|}}}</td>
     <td>{{#var:weight}}</td>
</tr>
</tr>
     }}
     }}
123

edits

Navigation menu