Difference between revisions of "Template:Transient extended infobox"

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
Line 198: Line 198:
  {{#if: {{#var:base skill 1 subobj|}}
  {{#if: {{#var:base skill 1 subobj|}}
  |{{#show: {{#var:base skill 1 subobj}} |?Has English name }}
  |{{#show: {{#var:base skill 1 subobj}} |?Has English name }}
}}
}}
{{#vardefine:base skill 1 range|
{{#if: {{#var:base skill 1 subobj|}}
|{{#show: {{#var:base skill 1 subobj}} |?Has range }}
  }}
  }}
}}
}}
Line 242: Line 248:
  }}
  }}
}}
}}
{{#vardefine:base skill 2 range|
{{#if: {{#var:base skill 2 subobj|}}
|{{#show: {{#var:base skill 2 subobj}} |?Has range }}
}}
}}


{{#vardefine:base skill 2 desc|
{{#vardefine:base skill 2 desc|
Line 282: Line 295:
  }}
  }}
}}
}}
{{#vardefine:base skill 3 range|
{{#if: {{#var:base skill 3 subobj|}}
|{{#show: {{#var:base skill 3 subobj}} |?Has range }}
}}
}}


{{#vardefine:base skill 3 desc|
{{#vardefine:base skill 3 desc|
Line 316: Line 336:
  {{#if: {{#var:base skill 4 subobj|}}
  {{#if: {{#var:base skill 4 subobj|}}
  |{{#show: {{#var:base skill 4 subobj}} |?Has English name }}
  |{{#show: {{#var:base skill 4 subobj}} |?Has English name }}
}}
}}
{{#vardefine:base skill 4 range|
{{#if: {{#var:base skill 4 subobj|}}
|{{#show: {{#var:base skill 4 subobj}} |?Has range }}
  }}
  }}
}}
}}
Line 877: Line 903:
     {{#if: {{#var:base skill 1 subobj|}}|{{#if:{{#show: {{#var:base skill 1 subobj}} |?Has additional skills }}|<tr><th colspan="3"><b>The skill below has its additional effects viewable [[{{#show: {{#var:base skill 1 subobj}} |?Has additional skills }}|here]].</b></th></tr>}}}}
     {{#if: {{#var:base skill 1 subobj|}}|{{#if:{{#show: {{#var:base skill 1 subobj}} |?Has additional skills }}|<tr><th colspan="3"><b>The skill below has its additional effects viewable [[{{#show: {{#var:base skill 1 subobj}} |?Has additional skills }}|here]].</b></th></tr>}}}}
     <tr>
     <tr>
       <th>{{#if: {{#var:base skill 1 subobj|}} | [[{{#var:base skill 1 subobj|}}|{{#var:base skill 1 en name|{{{base skill 1}}} }}]] | {{#if:{{{base skill 1|}}}|[[{{{base skill 1}}}]]|?}} }}</th>
       <th data-spread="{{#var:base skill 1 range|0 0 0 0}}">{{#if: {{#var:base skill 1 subobj|}} | [[{{#var:base skill 1 subobj|}}|{{#var:base skill 1 en name|{{{base skill 1}}} }}]] | {{#if:{{{base skill 1|}}}|[[{{{base skill 1}}}]]|?}} }}</th>
       <td>{{#var:base skill 1 desc| ? }}</td>
       <td>{{#var:base skill 1 desc| ? }}</td>
     </tr>
     </tr>
     {{#if: {{#var:base skill 2 subobj|}}|{{#if:{{#show: {{#var:base skill 2 subobj}} |?Has additional skills }}|<tr><th colspan="3"><b>The skill below has its additional effects viewable [[{{#show: {{#var:base skill 2 subobj}} |?Has additional skills }}|here]].</b></th></tr>}}}}
     {{#if: {{#var:base skill 2 subobj|}}|{{#if:{{#show: {{#var:base skill 2 subobj}} |?Has additional skills }}|<tr><th colspan="3"><b>The skill below has its additional effects viewable [[{{#show: {{#var:base skill 2 subobj}} |?Has additional skills }}|here]].</b></th></tr>}}}}
     <tr>
     <tr>
       <th>{{#if: {{#var:base skill 2 subobj|}} | [[{{#var:base skill 2 subobj|}}|{{#var:base skill 2 en name|{{{base skill 2}}} }}]] | {{#if:{{{base skill 2|}}}|[[{{{base skill 2}}}]]|?}} }}</th>
       <th data-spread="{{#var:base skill 2 range|0 0 0 0}}">{{#if: {{#var:base skill 2 subobj|}} | [[{{#var:base skill 2 subobj|}}|{{#var:base skill 2 en name|{{{base skill 2}}} }}]] | {{#if:{{{base skill 2|}}}|[[{{{base skill 2}}}]]|?}} }}</th>
       <td>{{#var:base skill 2 desc| ? }}</td>
       <td>{{#var:base skill 2 desc| ? }}</td>
     </tr>
     </tr>
     {{#if: {{#var:base skill 3 subobj|}}|{{#if:{{#show: {{#var:base skill 3 subobj}} |?Has additional skills }}|<tr><th colspan="3"><b>The skill below has its additional effects viewable [[{{#show: {{#var:base skill 3 subobj}} |?Has additional skills }}|here]].</b></th></tr>}}}}
     {{#if: {{#var:base skill 3 subobj|}}|{{#if:{{#show: {{#var:base skill 3 subobj}} |?Has additional skills }}|<tr><th colspan="3"><b>The skill below has its additional effects viewable [[{{#show: {{#var:base skill 3 subobj}} |?Has additional skills }}|here]].</b></th></tr>}}}}
     <tr>
     <tr>
       <th>{{#if: {{#var:base skill 3 subobj|}} | [[{{#var:base skill 3 subobj|}}|{{#var:base skill 3 en name|{{{base skill 3}}} }}]] | {{#if:{{{base skill 3|}}}|[[{{{base skill 3}}}]]|?}} }}</th>
       <th data-spread="{{#var:base skill 3 range|0 0 0 0}}">{{#if: {{#var:base skill 3 subobj|}} | [[{{#var:base skill 3 subobj|}}|{{#var:base skill 3 en name|{{{base skill 3}}} }}]] | {{#if:{{{base skill 3|}}}|[[{{{base skill 3}}}]]|?}} }}</th>
       <td>{{#var:base skill 3 desc| ? }}</td>
       <td>{{#var:base skill 3 desc| ? }}</td>
     </tr>
     </tr>
     {{#if: {{#var:base skill 4 subobj|}}|{{#if:{{#show: {{#var:base skill 4 subobj}} |?Has additional skills }}|<tr><th colspan="3"><b>The skill below has its additional effects viewable [[{{#show: {{#var:base skill 4 subobj}} |?Has additional skills }}|here]].</b></th></tr>}}}}
     {{#if: {{#var:base skill 4 subobj|}}|{{#if:{{#show: {{#var:base skill 4 subobj}} |?Has additional skills }}|<tr><th colspan="3"><b>The skill below has its additional effects viewable [[{{#show: {{#var:base skill 4 subobj}} |?Has additional skills }}|here]].</b></th></tr>}}}}
     <tr>
     <tr>
       <th>{{#if: {{#var:base skill 4 subobj|}} | [[{{#var:base skill 4 subobj|}}|{{#var:base skill 4 en name|{{{base skill 4}}} }}]] | {{#if:{{{base skill 4|}}}|[[{{{base skill 4}}}]]|?}} }}</th>
       <th data-spread="{{#var:base skill 4 range|0 0 0 0}}">{{#if: {{#var:base skill 4 subobj|}} | [[{{#var:base skill 4 subobj|}}|{{#var:base skill 4 en name|{{{base skill 4}}} }}]] | {{#if:{{{base skill 4|}}}|[[{{{base skill 4}}}]]|?}} }}</th>
       <td>{{#var:base skill 4 desc| ? }}</td>
       <td>{{#var:base skill 4 desc| ? }}</td>
     </tr>
     </tr>

Revision as of 02:53, 6 November 2019

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}}

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

{{#masterdata:Card|CARDID}}

Consult other transient pages for additional undocumented options.