Difference between revisions of "Template:AR Equipment extended infobox"

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
 
(109 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly><onlyinclude>{{#if: {{NAMESPACE}} | <!-- don't create subobj within namespace --> |
<includeonly><onlyinclude>{{#if: {{NAMESPACE}} | <!-- don't create subobj within namespace --> |{{#arraydefine:illustrator|{{{illustrator|}}}|;}}{{#vardefine:counter|0}}{{#arrayprint:illustrator
{{#vardefineecho:equipmentumber|{{#expr:{{#var:equipmentnumber|-1}}+1}}}}
|
<!--{{#subobject:equipment{{#vardefineecho:equipmentumber|{{#expr:{{#var:equipmentnumber|-1}}+1}}}}
| @@@
}}-->
| {{#vardefine:illustrator subobj {{#var:counter}}|
    {{#ask:
      [[Has game context::Illustrator]]
      [[Has Japanese name::@@@]]
    |link=none
    |limit=1
    |headers=hide
    |searchlabel=
    }}
  }}
  {{#vardefine:counter|{{#expr:{{#var:counter}}+1}} }}
}}{{#vardefine:counter|0}}{{#arrayprint:illustrator
|
| @@@
| {{#vardefine:illustrator en name {{#var:counter}}|
    {{#if: {{#var:illustrator subobj {{#var:counter}} }}
    | {{#show: {{#var:illustrator subobj {{#var:counter}} }} |?Has English name }}
    }}
  }}
  {{#vardefine:counter|{{#expr:{{#var:counter}}+1}} }}
}}{{#arraydefine:limitation array|{{{limitations|}}}|<br>}}{{#subobject:equipment{{#vardefineecho:equipmentumber|{{#expr:{{#var:equipmentnumber|-1}}+1}}}}
| Has game context = AR Equipment
| Has Japanese name = {{{name|}}}
| Has English name = {{{en name|}}}
| Has lowercase English name = {{lc:{{{en name|}}}}}
| Has note = {{{note|}}}
| Has rarity = {{{rarity|}}}
| Has ID = {{{id|}}}
| Has filename = {{lc:{{{filename|}}}}}
| Has release date = {{#var:ar equipment release date|{{{release date|2016-01-12}}}}}
| Has release version = {{#var:ar equipment release version|{{{release version|0.0.0}}}}}
| Has skills = {{#explode:{{#explode:{{{skills|}}}|<td colspan=3>|1}}|</td>|0}}
| Has illustrator = {{#if:{{{illustrator|}}}|
  {{#vardefine:counter|0}}
  {{#arrayprint:illustrator
  | ###
  | @@@
  | {{#var:illustrator subobj {{#var:counter}}|-}};@@@;{{#var:illustrator en name {{#var:counter}}|@@@}}
    {{#vardefine:counter|{{#expr:{{#var:counter}}+1}} }}
  }}
}}|+sep=###
| Has acquisition = {{{acquisition|}}}
| Has AR effects = {{{effects|}}}
| Has restrictions = {{#if:{{{limitations|}}}|{{#arrayprint:limitation array
  | ###
  | @@@
  | {{Strip formatting|@@@}}
}}|No restrictions}}|+sep=###
}}
}}<!-- end subobject
}}<!-- end subobject
-->
-->{{#if:{{{id|}}}|{{#vardefine:ar skill id|{{formatnum:{{#ask:
{{#ifeq:{{#var:equipmentnumber}}|0|{{#css:
[[Has key::AR skill linker]]
[[Has AR ID::{{{id|}}}]]
|?Has Skill ID|mainlabel=-|limit=1|headers=hide
}}|R}}}}}}{{#ifeq:{{#var:equipmentnumber|0}}|0|{{#css:
table.equipment-infobox {
table.equipment-infobox {
    float: left;
     background-color: #f9f9f9;
     background-color: #f9f9f9;
     border: 1px solid #aaa;
     border: 1px solid #aaa;
Line 23: Line 75:
table.equipment-infobox tr:first-child th {
table.equipment-infobox tr:first-child th {
     background-color: #ccf;
     background-color: #ccf;
{{#switch:{{{rarity|}}}|
| 1 | 2 = background-image: linear-gradient(195deg, rgb(192, 160, 128), rgb(240, 224, 192), rgb(192, 160, 128));
| 3 = background-image: linear-gradient(195deg, rgb(192, 192, 192), rgb(224, 224, 224), rgb(192, 192, 192));
| 4 = background-image: linear-gradient(195deg, rgb(240, 176, 80), rgb(255, 224, 128), rgb(240, 176, 80));
| 5 = background-image: linear-gradient(195deg, rgb(255, 128, 128), rgb(255, 255, 128), rgb(128, 255, 128), rgb(128, 255, 255), rgb(128, 128, 255));
}}
     padding: 0.5em 1em 0.5em 1em;
     padding: 0.5em 1em 0.5em 1em;
     font-size: 1.2em;
     font-size: 1.2em;
Line 29: Line 87:
table.equipment-infobox tr:not(:first-child) th {
table.equipment-infobox tr:not(:first-child) th {
     background-color: #ddf;
     background-color: #ddf;
{{#switch:{{{rarity|}}}|
| 1 | 2 = background-color: rgb(240, 208, 176);
| 3 = background-color: rgb(224, 224, 224);
| 4 = background-color: rgb(255, 224, 128);
| 5 = background-image: linear-gradient(to right, rgb(255, 224, 224), rgb(255, 255, 224), rgb(224, 255, 224), rgb(224, 255, 255), rgb(224, 224, 255));
}}
}
}


Line 34: Line 98:
     background-color: #e4e4ff;
     background-color: #e4e4ff;
}
}
}}}}
}}}}<table class="equipment-infobox" id="equipment{{#var:equipmentnumber|0}}">
 
     <tr>
<table class="equipment-infobox" id="equipment{{#var:equipmentnumber|0}}">
        <th colspan=4>
     <tr colspan='2'>
            <div style="float:left;padding:0px 0">{{#tag:mediator|https://cdn.housamo.xyz/housamo/unity/Android/icon_equip/equip_icon_{{lc:{{{filename|none}}}}}.png|width=60|height=60}}</div>
      <th>{{#tag:mediator|https://cdn.housamo.xyz/housamo/unity/Android/icon_equip/equip_icon_{{{filename|none}}}.png|width=60|height=60}} {{{name|}}}</th>
            <div style="float:centre;padding:10px 0">{{{en name|?}}}<br>{{{name|}}}</div></th>
    </tr>
{{#if:{{{illustrator|}}}|
    <tr>
      <td rowspan="100">{{#tag:mediator|https://cdn.housamo.xyz/housamo/unity/Android//equip/equip_card_{{lc:{{{filename|none}}}}}.png|height=350}}</td>
      <th>Rarity</th>
      <td>{{{rarity|?}}}</td>
    </tr>
    <tr>
      <th colspan=3>Illustrator</th>
     </tr>
     </tr>
    <tr>
      <td colspan=3>{{#vardefine:counter|0}}{{#if: {{{illustrator|}}}
  | {{#arrayprint:illustrator
    |,&#32;
    |@@@
    | {{#if: {{#var:illustrator subobj {{#var:counter}}|}}
      | [[{{#var:illustrator subobj {{#var:counter}}}}|{{#var:illustrator en name {{#var:counter}}|@@@ }}]]
      | @@@
      }}
      {{#vardefine:counter|{{#expr:{{#var:counter}}+1}} }}
    }}
  | &mdash;&mdash;
  }}</td>
    </tr>
}}
{{#if:{{{effects|}}}|
{{#if:{{{effects|}}}|
     <tr colspan='2'>
     <tr>
       <th>Effects</th>
       <th colspan=3>Effects</th>
    </tr>
    <tr colspan='2'>
      {{{effects|}}}
     </tr>
     </tr>
    {{{effects|}}}
}}
}}
{{#if:{{{skills|}}}|
{{#if:{{{skills|}}}|
     <tr colspan='2'>
     <tr>
       <th>Skills</th>
       <th colspan=3>{{#ifexist:AR Equipment Skill:{{#var:ar skill id}}|[[AR Equipment Skill:{{#var:ar skill id}}|Skills]]|Skills}}</th>
     </tr>
     </tr>
     <tr colspan='2'>
     <tr>
       {{{skills|}}}
       {{{skills|}}}
     </tr>
     </tr>
}}
}}
{{#if:{{{limitations|}}}|
{{#if:{{{limitations|}}}|
     <tr colspan='2'>
     <tr>
       <th>Restrictions</th>
       <th colspan=3>Restrictions</th>
     </tr>
     </tr>
     <tr colspan='2'>
     <tr>
      {{{limitations|}}}
        <td colspan=3>{{#arrayprint:limitation array||@@@|{{#if:{{#pos:@@@|type:}}|{{AR Equipment limitation|type={{#explode:@@@|,|0}}|value={{#explode:@@@|,|1}}}}|@@@}}{{#if:{{#pos:@@@|div>}}|<!--transient icons get passed along with a data-test div, which creates an extra line break-->|<br>}}}}</td>
     </tr>
     </tr>
}}
}}
</table>
{{#if:{{{acquisition|}}}|
 
    <tr>
</onlyinclude></includeonly>
      <th colspan=3>Acquisition</th>
== Description ==
    </tr>
 
    <tr>
== Example ==
      <td colspan=3>{{{acquisition|}}}</td>
 
    </tr>
{{AR Equipment extended infobox | id = 1001
}}
| name = {{#var:ar equipment en name|見習い使い魔の応援}}
{{#if:{{#arrayindex:limitation array|0}}|
| illustrator = BomBom
    <tr>
| rarity = 1
      <td colspan=4>{{Disjunctive transient search|{{#arrayprint:limitation array|;|@@@|{{Strip formatting|@@@}}}}|columns=6}}</td>
| filename = salomon
    </tr>
| skills = <td>{{#masterdata:SkillDescription|40001}}</td>
| limitations = <td>{{Attribute|0}}</td>
| effects =
}}
}}
</table>[[Category:AR Equipment]]</onlyinclude></includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 17:03, 5 November 2022

Template documentation[view] [edit] [history] [purge]

Description

Both creates an infobox and defines a subobject for AR Equipment.

Usage

Like other extended infobox templates, invocation of this template is to be done through the corresponding {{#masterdata:Equip|ID}} extension call, where ID is the ID of the AR Equipment.

Editors may alter the infobox via variables.

Variables

  • ar equipment en name - English name of the equipment. This name will be the commonly displayed one.
  • ar equipment en note - Translation of the flavor text for the AR Equipment. It appears under "Translated from Japanese" cell below the infobox.
  • ar equipment acquisition - a way to obtain the AR Equipment.
  • ar equipment release date - when the AR was released.
  • ar equipment release version - the game version under which the AR was released.

Examples

{{#vardefine:ar equipment en name|Family Portrait}}
{{#vardefine:ar equipment en note|Example translation}}
{{#vardefine:ar equipment acquisition|Gacha}}
{{#masterdata:Equip|2026}}



Family Portrait
夏の日の一枚
Rarity 3
Illustrator
Effects
効果1Increases HP by 150~300
効果2Increases ATK by 150~300
往事渺望ユースフル・サマーデイNo additional CS effects
Skills
[Turn StartTriggers on turn start of their player, after [Phase Start] effects, before [Opponent Turn Start] effects. Effects of the same timing from same unit are all triggered together before they are applied.] Apply SpiritDeal extra 400~800 damage to enemies for 2 turns (Buff) to self / 20~40%
[Status ResistanceTriggers directly before receiving any status, including those that would normally not be accepted due to pre-existing acquisition of the same status. Prevents target statuses from being applied at all and removes them if already present. The application of the any status that confers Status Resistance will trigger its own Status Resistance skill effects.] Remove CharmCannot attack for 3 turns (Debuff) / 20~100%
Restrictions
Acquisition
Gacha
Translated from Japanese
Example translation
Official Japanese
「ヒーハー、砂像完成!名付けて『カウボーイとカメラマン』、どーだ、すげーだろ?」

「おれたちをモデルに、サンドアートつくってみました。あたまの上でハイタッチするのは、仲良しのあかしなんです、へへへ」 そう語ったのは神宿学園のジャーナリスト、シュクユウと、王子坊学園のカウボーイ、ベイブ・バニヤン。 サンドアートイベント会場のビーチにて、仲良しの2人は友情の証として互いの砂像を作った。 そして完成後にはシュクユウのカメラをつかって、記念のぱしゃり。 2人はそれぞれの学園でも特に活動的な生徒として知られている。 かたや取材で学外へ出かけ、かたや自身が未開拓の地を求めて散歩する。 そして今日の、彼らは二度と同じものはない、この夏休みの冒険へ出発するのだ。