trusted
5,920
edits
SurtrFan8511 (talk | contribs) |
|||
(119 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly><onlyinclude> | <includeonly><onlyinclude>{{#if: {{NAMESPACE}} | <!-- don't create subobj within namespace --> |{{#arraydefine:illustrator|{{{illustrator|}}}|;}}{{#vardefine:counter|0}}{{#arrayprint:illustrator | ||
{{#ifeq:{{#var:equipmentnumber}}|0|{{#css: | | | ||
| @@@ | |||
| {{#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 | |||
-->{{#if:{{{id|}}}|{{#vardefine:ar skill id|{{formatnum:{{#ask: | |||
[[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 { | |||
float: left; | |||
background-color: #f9f9f9; | |||
border: 1px solid #aaa; | |||
font-size: 11px; | |||
margin: 1em 0em 1em 2em; | |||
padding: 2px; | |||
text-align: center; | |||
overflow: visible; | |||
position: relative; | |||
} | |||
table.equipment-infobox th { | |||
padding: 0em 1em 0em 1em; | |||
} | } | ||
< | table.equipment-infobox tr:first-child th { | ||
< | 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; | |||
font-size: 1.2em; | |||
} | |||
table.equipment-infobox tr:not(:first-child) th { | |||
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)); | |||
}} | |||
} | |||
table.equipment-infobox tr:not(:first-child) th + th { | |||
background-color: #e4e4ff; | |||
} | |||
}}}}<table class="equipment-infobox" id="equipment{{#var:equipmentnumber|0}}"> | |||
<tr> | |||
<th colspan=4> | |||
<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> | |||
<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> | |||
<td colspan=3>{{#vardefine:counter|0}}{{#if: {{{illustrator|}}} | |||
| {{#arrayprint:illustrator | |||
|,  | |||
|@@@ | |||
| {{#if: {{#var:illustrator subobj {{#var:counter}}|}} | |||
| [[{{#var:illustrator subobj {{#var:counter}}}}|{{#var:illustrator en name {{#var:counter}}|@@@ }}]] | |||
| @@@ | |||
}} | |||
{{#vardefine:counter|{{#expr:{{#var:counter}}+1}} }} | |||
}} | |||
| —— | |||
}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{effects|}}}| | |||
<tr> | <tr> | ||
< | <th colspan=3>Effects</th> | ||
< | </tr> | ||
{{{effects|}}} | |||
}} | |||
{{#if:{{{skills|}}}| | |||
<tr> | |||
<th colspan=3>{{#ifexist:AR Equipment Skill:{{#var:ar skill id}}|[[AR Equipment Skill:{{#var:ar skill id}}|Skills]]|Skills}}</th> | |||
</tr> | </tr> | ||
<tr> | <tr> | ||
{{{skills|}}} | {{{skills|}}} | ||
</tr> | </tr> | ||
}} | |||
{{#if:{{{limitations|}}}| | |||
<tr> | <tr> | ||
<th>Restrictions</th> | <th colspan=3>Restrictions</th> | ||
{{{ | </tr> | ||
<tr> | |||
<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> | |||
}} | |||
{{#if:{{{acquisition|}}}| | |||
<tr> | |||
<th colspan=3>Acquisition</th> | |||
</tr> | |||
<tr> | |||
<td colspan=3>{{{acquisition|}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{#arrayindex:limitation array|0}}| | |||
<tr> | |||
<td colspan=4>{{Disjunctive transient search|{{#arrayprint:limitation array|;|@@@|{{Strip formatting|@@@}}}}|columns=6}}</td> | |||
</tr> | </tr> | ||
}} | }} | ||
</table>[[Category:AR Equipment]]</onlyinclude></includeonly><noinclude>{{Documentation}}</noinclude> |