Difference between revisions of "Template:Item infobox"

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
Line 4: Line 4:
| Has Japanese name = {{#vardefineecho:item jp name|{{{jp name|{{Localize|jp={{{name|}}}}}}}}}}
| Has Japanese name = {{#vardefineecho:item jp name|{{{jp name|{{Localize|jp={{{name|}}}}}}}}}}
| Has English name = {{#vardefineecho:item en 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:{{#var:item en name|}}}}
| Has filename = {{{filename|}}}
| Has filename = {{{filename|}}}
| Has description = {{Localize|{{{description|}}}}}
| Has description = {{Localize|{{{description|}}}}}
Line 92: Line 92:
}}<table id="item{{#var:itemnumber}}" class="item-preview-infobox" style="{{#ifeq:{{{floats|false}}}|true|float: right;}}">
}}<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|}}|{{#ifeq:{{#var:item en name|}}| |{{#var:item jp name|}}|{{#var:item en 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|}}|{{#ifeq:{{#var:item en name|}}| |{{#var:item jp name|}}|{{#var:item en name|}}}}]]{{#if:{{{rarity|}}}|{{Star|{{{rarity|}}}}}}}</th>
</tr>
</tr>
<tr>
<tr>

Revision as of 08:38, 1 January 2019

Description

This templates creates an infobox for a item, as well as a item subobject using the following properties:

Usage

{{Item infobox
| id = 
| name = 
| filename = 
| description = 
}}

Parameters

name
Name of the item
filename
Filename the item icon uses
id
internal ID used
description
Description of item

Examples

{{Item infobox
| id = 1
| name = 転光石
| filename = stone
| description = 召喚の力が宿った石
}}
[[List of items#item1|]]
A stone imbued with the power of summoning.