Difference between revisions of "Template:Item infobox"
Jump to navigation
Jump to search
(19 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:{{ | | 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 rarity = {{{rarity|}}} | ||
Line 48: | Line 48: | ||
padding: 2px; | padding: 2px; | ||
text-align: center; | text-align: center; | ||
overflow: visible; | overflow: visible; | ||
position: relative; | position: relative; | ||
Line 85: | Line 84: | ||
{{#ask: | {{#ask: | ||
[[Has game context::Item]] | [[Has game context::Item]] | ||
[[Has ID::{{{id|}}}]] | |||
|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 | <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> | <tr> | ||
<td> | <td>{{{description|}}}</td> | ||
</tr> | </tr> | ||
{{#if:{{{energy|}}}| | {{#if:{{{energy|}}}| |
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|]] | |
---|---|
召喚の力が宿った石 |