Difference between revisions of "Template:Item infobox"

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
Line 23: Line 23:
}}
}}
| Has level = {{{level|}}}
| Has level = {{{level|}}}
| Has weapon type = {{#if:{{{weapon|}}}|{{Weapon type|{{{weapon|}}}}}}}
| Has weapon type = {{#switch:{{lc:{{{weapon|}}}}}
| 1 | 斬撃 | 斬 | slash = 斬
| 3 | 打撃 | 打 | strike | blow = 打
| 2 | 突撃 | 突 | pierce | thrust = 突
| 4 | 射撃 | 射 | ranged | shot = 射
| 5 | 魔法 | 魔 | magic = 魔
| 7 | 狙撃 | 狙 | snipe = 狙
| 6 | 横一文字 | wide slash | wide-slash | wide-slash | long slash = 横一文字
| 8 | 全域 | wide magic | wide-magic | all = 全域
| 0 | 無し = 無し
| 9 | 無 = 無
|#default =
}}
| Has base probability = {{{prob|}}}
| Has base probability = {{{prob|}}}
| Has item type = {{{type|}}}
| Has item type = {{{type|}}}
Line 81: Line 93:
}}<table id="item{{#var:itemnumber}}" class="item-preview-infobox">
}}<table id="item{{#var: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_{{lc:{{{filename|}}}}}.png}}}}[[{{#var:item subobj|}}|{{{en name|{{Localize|{{{name|}}}}}}}}]]</th>
   <th colspan="4">{{#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>
</tr>
</tr>
<tr>
<tr>
   <td>{{Localize|{{{description|}}}}}</td>
   <td>{{Localize|{{{description|}}}}}</td>
</tr>
</tr>
{{#if:{{{rarity|}}}|
<tr>
  <th <!--colspan="1"-->>Rarity</th>
  <td <!--colspan="2"-->>{{{rarity|}}}</td>
</tr>
}}
{{#if:{{{energy|}}}|
{{#if:{{{energy|}}}|
<tr>
<tr>

Revision as of 20:41, 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 = 召喚の力が宿った石
}}
Transient Stone
A stone imbued with the power of summoning.