Difference between revisions of "Template:Transient extended infobox"

Undo revision 35616 by SurtrFan8511 (talk) I'll find a different way to test it idk
(monkaW)
(Undo revision 35616 by SurtrFan8511 (talk) I'll find a different way to test it idk)
Line 435: Line 435:
{{#if:{{{skill id 4|}}}|
{{#if:{{{skill id 4|}}}|
{{#vardefine:base skill 4 desc|{{#masterdata:Skill|{{{skill id 4}}}|effects}}}}{{#vardefine:base skill 4 raw desc|{{#replace:{{#tag:strip|{{#var:base skill 4 desc}}}}}}|;|\;}}
{{#vardefine:base skill 4 desc|{{#masterdata:Skill|{{{skill id 4}}}|effects}}}}{{#vardefine:base skill 4 raw desc|{{#replace:{{#tag:strip|{{#var:base skill 4 desc}}}}}}|;|\;}}
}}
{{#ifeq:{{#var:availability|}}|Current|
{{#arraydefine:no restriction ar|{{#ask:
[[Has game context::AR Equipment]]
[[Has restrictions::No restrictions]]
|?Has ID #|mainlabel=-|link=none|headers=hide
}}}}{{#arraydefine:transient ar|{{#ask:
[[Has game context::AR Equipment]]
[[Has restrictions::{{{en name|{{{jp name|?}}}}}}]]
|?Has ID #|mainlabel=-|link=none|headers=hide
}}}}{{#arraydefine:weapon ar|{{#ask:
[[Has game context::AR Equipment]]
[[Has restrictions::{{Weapon type|{{#var:weapon type|?}}}}]]
|?Has ID #|mainlabel=-|link=none|headers=hide
}}}}{{#arraydefine:attribute ar|{{#ask:
[[Has game context::AR Equipment]]
[[Has restrictions::{{Energy|{{#var:energy|?}}}}]]
|?Has ID #|mainlabel=-|link=none|headers=hide
}}}}{{#arrayunion:available ar|no restriction ar|transient ar|weapon ar|attribute ar}}
}}
}}
{{#vardefine:strategy|{{#ifexist:{{{en name|}}}/Strategy|{{{en name|}}}/Strategy|}}}}
{{#vardefine:strategy|{{#ifexist:{{{en name|}}}/Strategy|{{{en name|}}}/Strategy|}}}}
Line 1,120: Line 1,101:
     <tr>
     <tr>
       <th colspan="3">Partial Entry</th>
       <th colspan="3">Partial Entry</th>
    </tr>
    </table>
  |}}
  {{#if:{{#arrayprint:available ar|}}|
    <table class="data transientInfo{{#var:transientnumber}}">
    <tr>
      <th colspan="3">{|class="mw-collapsible mw-collapsed"
      |-
      | Show applicable ARs
      |-
      | {{#arrayprint:available ar|<br>|@@@@|{{AR Equipment|id=@@@@}}}}
      |}</th>
     </tr>
     </tr>
     </table>
     </table>
trusted
5,922

edits