Difference between revisions of "Template:Item infobox"

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
Line 5: Line 5:
| Has English name = {{{en name|{{Localize|en={{{name|}}}}}}}
| Has English name = {{{en name|{{Localize|en={{{name|}}}}}}}
| Has filename = {{{filename|}}}
| Has filename = {{{filename|}}}
| Has description = {{Localize|{{description|}}}}}
| Has description = {{Localize|{{{description|}}}}}
| Has ID = {{{id|}}}
| Has ID = {{{id|}}}
}}[[Category:Item]]
}}[[Category:Item]]
Line 62: Line 62:
}}<table id="item{{#itemnumber}}" class="item-preview-infobox">
}}<table id="item{{#itemnumber}}" class="item-preview-infobox">
<tr>
<tr>
   <th colspan="4">{{#if:{{{filename|}}}|{{#tag:mediator|https://cdn.housamo.xyz/housamo/unity/Android/icon_item/icon_item_{{{filename|}}}.png}}}}<abbr title="{{Localize|{{description|}}}}}">{{{en name|{{Localize|en={{{name|}}}}}}}</abbr></th>
   <th colspan="4">{{#if:{{{filename|}}}|{{#tag:mediator|https://cdn.housamo.xyz/housamo/unity/Android/icon_item/icon_item_{{{filename|}}}.png}}}}<abbr title="{{Localize|{{{description|}}}}}">{{{en name|{{Localize|en={{{name|}}}}}}}</abbr></th>
</tr>
</tr>
</table>
</table>

Revision as of 19:26, 7 December 2018

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 = 召喚の力が宿った石
}}
{Template:En name