Difference between revisions of "Template:Transient extended infobox"

From Tokyo Afterschool Summoners
Jump to: navigation, search
(Second try)
(Put the equippable ar template in)
 
(22 intermediate revisions by 2 users not shown)
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 991: Line 993:
 
       <td style="width:50px; padding: 0px;">[[File:Weapon Spread {{#var:charge skill weapon|}}.png|50px|link={{#var:charge skill weapon|}}]]{{#if:{{{charge skill multiplier|}}}|<br><div style='text-align:center'>{{{charge skill multiplier}}}x</div>}}</td>
 
       <td style="width:50px; padding: 0px;">[[File:Weapon Spread {{#var:charge skill weapon|}}.png|50px|link={{#var:charge skill weapon|}}]]{{#if:{{{charge skill multiplier|}}}|<br><div style='text-align:center'>{{{charge skill multiplier}}}x</div>}}</td>
 
     </tr>
 
     </tr>
 +
    {{#ifeq:{{#var:availability|}}|Current|<tr>
 +
      <td colspan="3">{{Equippable AR Equipment|{{{en name|{{{jp name|?}}}}}};{{Weapon type|{{#var:weapon type|?}}}};{{Energy|{{#var:energy|?}}}}}}</td>
 +
    </tr>}}
 
     </table>
 
     </table>
 
     <!--}}-->
 
     <!--}}-->
Line 1,059: Line 1,064:
 
<tr>
 
<tr>
 
       <th>Gate</th>
 
       <th>Gate</th>
       <td>[[{{Gate|{{{gate}}}|format=name}}]]</td>
+
       <td>{{#ifeq:{{{gate|}}}|Unknown|Unknown|[[{{Gate|{{{gate}}}|format=name}}]]}}</td>
 
</tr>
 
</tr>
 
     }}
 
     }}
Line 1,068: Line 1,073:
 
</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>
 
     }}
 
     }}
Line 1,131: Line 1,136:
 
| man = Male
 
| man = Male
 
| woman = Female
 
| woman = Female
| 無 = Unknown gender
+
| 無 | none = Unknown gender
 
|#default = {{{sex|Unknown gender}}}
 
|#default = {{{sex|Unknown gender}}}
 
}} transients]]
 
}} transients]]
Line 1,166: Line 1,171:
 
{{#vardefine:transient gate|Gate Name}}
 
{{#vardefine:transient gate|Gate Name}}
 
{{#vardefine:transient jp en research file|Translation for Japanese Research File}}
 
{{#vardefine:transient jp en research file|Translation for Japanese Research File}}
 +
 +
{{#vardefine:transient height|166}}
 +
{{#vardefine:transient weight|96}}
 +
{{#vardefine:transient summon date|8/7}}
 
</pre>
 
</pre>
  

Latest revision as of 01:31, 5 July 2020

Description

This templates creates an infobox and subobject for a Transient. Please do not directly invoke this template.

An example to feed override parameters (such as translation names) are:

{{#vardefine:transient en name|Name}}
{{#vardefine:transient en title|Title}}
{{#vardefine:transient availability|Available}}
{{#vardefine:transient acquisition|Gacha}}
{{#vardefine:transient en jingi|Charge Skill Name}}
{{#vardefine:transient species|Species}}
{{#vardefine:transient gate|Gate Name}}
{{#vardefine:transient jp en research file|Translation for Japanese Research File}}

{{#vardefine:transient height|166}}
{{#vardefine:transient weight|96}}
{{#vardefine:transient summon date|8/7}}

To invoke this template properly, use (after the vardefines):

{{#masterdata:Card|CARDID}}

Consult other transient pages for additional undocumented options.