Difference between revisions of "Template:Item infobox"
Jump to navigation
Jump to search
(39 intermediate revisions by the same user not shown) | |||
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 = {{ | | Has Japanese name = {{#vardefineecho:item jp name|{{{jp name|}}}}} | ||
| Has English name = {{ | | Has English name = {{#vardefineecho:item en name|{{{en name|}}}}} | ||
| Has lowercase English name = {{lc:{{#var:item en name|}}}} | |||
| Has filename = {{{filename|}}} | | Has filename = {{{filename|}}} | ||
| Has description = | | Has description = {{{description|}}} | ||
| Has ID = {{{id|}}} | | Has ID = {{{id|}}} | ||
| Has rarity = {{{rarity|}}} | |||
| Has energy = {{#switch:{{lc:{{{energy|}}}}} | |||
| 1 | 火 | fire = 火 | |||
| 2 | 水 | water = 水 | |||
| 3 | 木 | wood | grass | earth | tree = 木 | |||
| 4 | 天 | heaven | holy | light | divine | aether = 天 | |||
| 5 | 冥 | dark | nether = 冥 | |||
| 6 | 魔 | demon | shadow | infernal = 魔 | |||
| 0 | 全 | all | all-round = 全 | |||
| 7 | 英雄 | hero | valiant = 英雄 | |||
| 8 | 世界 | world = 世界 | |||
| 9 | 無 | none = 無 | |||
|#default = | |||
}} | |||
| Has level = {{{level|}}} | |||
| 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 | 無し = none | |||
| 9 | 無 = none | |||
|#default = | |||
}} | |||
| Has base probability = {{{prob|}}} | |||
| Has item type = {{{type|}}} | |||
}}[[Category:Item]] | }}[[Category:Item]] | ||
}}<!-- end subobj creation --><!---->{{#css: | }}<!-- end subobj creation --><!---->{{#css: | ||
Line 17: | Line 48: | ||
padding: 2px; | padding: 2px; | ||
text-align: center; | text-align: center; | ||
overflow: visible; | overflow: visible; | ||
position: relative; | position: relative; | ||
width: 450px; | |||
} | } | ||
Line 53: | Line 84: | ||
{{#ask: | {{#ask: | ||
[[Has game context::Item]] | [[Has game context::Item]] | ||
[[Has ID::{{{id|}}}]] | |||
|link=none | |link=none | ||
|limit=1 | |limit=1 | ||
Line 60: | Line 90: | ||
|searchlabel= | |searchlabel= | ||
}} | }} | ||
}}<table id="item{{#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=" | <th colspan="2" data-jpname="{{#var:item jp name|}}">{{#if:{{{filename|}}}|{{#tag:mediator|https://cdn.housamo.xyz/housamo/unity/Android/icon_item/icon_item_{{lc:{{{filename|}}}}}.png}}}} [[{{#var:item subobj|}}|{{#var:item en name|{{#var:item jp name|}}}}]] {{#if:{{{rarity|}}}|{{Star|{{{rarity|}}}}}}}</th> | ||
</tr> | </tr> | ||
<tr> | |||
<td>{{{description|}}}</td> | |||
</tr> | |||
{{#if:{{{energy|}}}| | |||
<tr> | |||
<th <!--colspan="1"-->>Energy</th> | |||
<td <!--colspan="2"-->>{{Attribute|{{{energy|}}}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{level|}}}| | |||
<tr> | |||
<th <!--colspan="1"-->>Level</th> | |||
<td <!--colspan="2"-->>{{{level|}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{weapon|}}}| | |||
<tr> | |||
<th <!--colspan="1"-->>Weapon</th> | |||
<td <!--colspan="2"-->>{{Weapon|{{{weapon|}}}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{prob|}}}| | |||
<tr> | |||
<th <!--colspan="1"-->>Skill increase</th> | |||
<td <!--colspan="2"-->>{{{prob|}}}</td> | |||
</tr> | |||
}} | |||
</table> | </table> | ||
</includeonly><noinclude> | </includeonly><noinclude> |
Latest revision as of 02:03, 13 December 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|]] | |
---|---|
召喚の力が宿った石 |