Difference between revisions of "Template:Item infobox"

Jump to navigation Jump to search
32 bytes removed ,  08:34, 1 January 2019
no edit summary
Line 2: Line 2:
{{#subobject:item{{#vardefineecho:itemnumber|{{#expr:{{#var:itemnumber|-1}}+1}}}}
{{#subobject:item{{#vardefineecho:itemnumber|{{#expr:{{#var:itemnumber|-1}}+1}}}}
| Has game context = Item
| Has game context = Item
| Has Japanese name = {{{jp name|{{Localize|jp={{{name|}}}}}}}}
| Has Japanese name = {{#vardefineecho:item jp name|{{{jp name|{{Localize|jp={{{name|}}}}}}}}}}
| Has English name = {{{en name|{{Localize|{{{name|}}}}}}}}
| Has English name = {{#vardefineecho:item en name|{{{en name|{{Localize|{{{name|}}}}}}}}}}
| Has lowercase English name = {{lc:{{{en name|{{Localize|{{{name|}}}}}}}}}}
| Has lowercase English name = {{lc:{{{en name|{{Localize|{{{name|}}}}}}}}}}
| Has filename = {{{filename|}}}
| Has filename = {{{filename|}}}
Line 48: Line 48:
     padding: 2px;
     padding: 2px;
     text-align: center;
     text-align: center;
    {{#ifeq:{{{floats|false}}}|true|float: right;}}
     overflow: visible;
     overflow: visible;
     position: relative;
     position: relative;
Line 85: Line 84:
  {{#ask:
  {{#ask:
   [[Has game context::Item]]
   [[Has game context::Item]]
   {{#if:{{{en name|}}}|[[Has English name::~{{{en name}}}]]}}
   [[Has ID::{{{id|}}}]]
  {{#if:{{{jp name|}}}|[[Has Japanese name::{{{jp name}}}]]}}
   |link=none
   |link=none
   |limit=1
   |limit=1
Line 92: Line 90:
   |searchlabel=
   |searchlabel=
  }}
  }}
}}<table id="item{{#var:itemnumber}}" class="item-preview-infobox">
}}<table id="item{{#var:itemnumber}}" class="item-preview-infobox" style="{{#ifeq:{{{floats|false}}}|true|float: right;}}">
<tr>
<tr>
   <th colspan="2">{{#if:{{{filename|}}}|{{#tag:mediator|https://cdn.housamo.xyz/housamo/unity/Android/icon_item/icon_item_{{lc:{{{filename|}}}}}.png}}}}[[{{#var:item subobj|}}|{{{en name|{{Localize|{{{name|}}}}}}}}]] {{#if:{{{rarity|}}}|{{Star|{{{rarity|}}}}}}}</th>
   <th colspan="2">{{#if:{{{filename|}}}|{{#tag:mediator|https://cdn.housamo.xyz/housamo/unity/Android/icon_item/icon_item_{{lc:{{{filename|}}}}}.png}}}}[[{{#var:item subobj|}}|{{#var: en name| {{#var:jp name|}} }} }}]]{{#if:{{{rarity|}}}|{{Star|{{{rarity|}}}}}}}</th>
</tr>
</tr>
<tr>
<tr>

Navigation menu