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

Jump to navigation Jump to search
no edit summary
 
(17 intermediate revisions by the same user not shown)
Line 30: Line 30:
| Has rarity = {{{rarity|}}}
| Has rarity = {{{rarity|}}}
| Has ID = {{{id|}}}
| Has ID = {{{id|}}}
| Has filename = {{{filename|}}}
| 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 skills = {{#explode:{{#explode:{{{skills|}}}|<td colspan=3>|1}}|</td>|0}}
| Has illustrator = {{#if:{{{illustrator|}}}|
| Has illustrator = {{#if:{{{illustrator|}}}|
Line 42: Line 44:
}}|+sep=###
}}|+sep=###
| Has acquisition = {{{acquisition|}}}
| Has acquisition = {{{acquisition|}}}
| Has AR effects = {{{effects|}}}
| Has restrictions = {{#if:{{{limitations|}}}|{{#arrayprint:limitation array
| Has restrictions = {{#if:{{{limitations|}}}|{{#arrayprint:limitation array
   | ###
   | ###
Line 72: Line 75:
table.equipment-infobox tr:first-child th {
table.equipment-infobox tr:first-child th {
     background-color: #ccf;
     background-color: #ccf;
{{#switch:{{{rarity|3}}}|
{{#switch:{{{rarity|}}}|
| 1 | 2 = background-image: repeating-linear-gradient(195deg, rgb(192, 160, 128), rgb(240, 224, 192) 15%, rgb(192, 160, 128) 30%);
| 1 | 2 = background-image: linear-gradient(195deg, rgb(192, 160, 128), rgb(240, 224, 192), rgb(192, 160, 128));
| 3 = background-image: repeating-linear-gradient(195deg, rgb(192, 192, 192), rgb(224, 224, 224) 15%, rgb(192, 192, 192) 30%);
| 3 = background-image: linear-gradient(195deg, rgb(192, 192, 192), rgb(224, 224, 224), rgb(192, 192, 192));
| 4 = background-image: repeating-linear-gradient(195deg, rgb(255, 192, 128), rgb(255, 240, 224) 15%, rgb(255, 192, 128) 30%);
| 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));
| 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));
}}
}}
Line 84: 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|3}}}|
{{#switch:{{{rarity|}}}|
| 1 | 2 = background-image: repeating-linear-gradient(195deg, rgb(224, 192, 160), rgb(255, 240, 208) 15%, rgb(224, 192, 160) 30%);
| 1 | 2 = background-color: rgb(240, 208, 176);
| 3 = background-image: repeating-linear-gradient(195deg, rgb(224, 224, 224), rgb(255, 255, 255) 15%, rgb(224, 224, 224) 30%);
| 3 = background-color: rgb(224, 224, 224);
| 4 = background-image: repeating-linear-gradient(195deg, rgb(255, 224, 160), rgb(255, 255, 240) 15%, rgb(255, 224, 160) 30%);
| 4 = background-color: rgb(255, 224, 128);
| 5 = background-image: linear-gradient(195deg, rgb(255, 192, 192), rgb(255, 255, 192), rgb(192, 255, 192), rgb(192, 255, 255), rgb(192, 192, 255));
| 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 98: Line 101:
     <tr>
     <tr>
         <th colspan=4>
         <th colspan=4>
             <div style="float:left;padding:0px 0">{{#tag:mediator|https://cdn.housamo.xyz/housamo/unity/Android/icon_equip/equip_icon_{{{filename|none}}}.png|width=60|height=60}}</div>
             <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>
             <div style="float:centre;padding:10px 0">{{{en name|?}}}<br>{{{name|}}}</div></th>
     </tr>
     </tr>
{{#if:{{{illustrator|}}}|
{{#if:{{{illustrator|}}}|
     <tr>
     <tr>
       <td rowspan="100">{{#tag:mediator|https://cdn.housamo.xyz/housamo/unity/Android//equip/equip_card_{{{filename|none}}}.png|height=320}}</td>
       <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>
       <th>Rarity</th>
       <td>{{{rarity|?}}}</td>
       <td>{{{rarity|?}}}</td>
Line 144: Line 147:
     </tr>
     </tr>
     <tr>
     <tr>
         <td colspan=3>{{{limitations|}}}</td>
         <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>
}}
}}
Line 160: Line 163:
     </tr>
     </tr>
}}
}}
</table>[[Category:AR Equipment]]</onlyinclude></includeonly>
</table>[[Category:AR Equipment]]</onlyinclude></includeonly><noinclude>{{Documentation}}</noinclude>
== Description ==
Both creates an infobox and defines a subobject for AR Equipment. Additional parameters include:
<pre>
{{#vardefine:ar equipment acquisition|}}
{{#vardefine:ar equipment en name|}}
{{#vardefine:ar equipment en note|}}
{{#vardefine:ar equipment acquisition|}}
</pre>
 
Like other extended infobox templates, invocation of this template is to be done through the corresponding <code><nowiki>{{#masterdata:Equip|ID}}</nowiki></code> extension call.
trusted
5,894

edits

Navigation menu