Difference between revisions of "Template:Item"

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
 
(21 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{#vardefine:item|{{#switch:{{lc:{{{1|}}}}}
<includeonly><onlyinclude>{{#vardefine:item subobj|{{#ask:
  [[Has game context::Item]]
  {{#if:{{{id|}}}| [[Has ID::{{{id|}}}]]
  | [[Has lowercase English name::{{lc:{{{1|none}}}}}]]
  }}
  |link=none
  |limit=1
  |headers=hide
  |searchlabel=
}}
}}{{#if:{{#var:item subobj|}}||{{#vardefine:item subobj|
{{#ask:
  [[Has game context::Item]]
  [[Has Japanese name::{{{1|none}}}]]
  |link=none
  |limit=1
  |headers=hide
  |searchlabel=
}}
}}}}{{#if:{{#var:item subobj|}}|<!--{{#masterdata:Item|{{#show:{{#var:item subobj}}|?Has ID}}}}-->{{#vardefine:item|{{#show:{{#var:item subobj}}|?Has Japanese name}}}}|{{#vardefine:item|{{#switch:{{lc:{{{1|}}}}}
|small | s | 小 = 小
|small | s | 小 = 小
|medium | m | 中 = 中
|medium | m | 中 = 中
Line 61: Line 80:
| halloween stamp | ハロウィンスタンプ = ハロウィンスタンプ
| halloween stamp | ハロウィンスタンプ = ハロウィンスタンプ
| 試練の石 = 試練の石
| 試練の石 = 試練の石
| christmas candle | クリスマスキャンドル = クリスマスキャンドル
| tree ornament | ツリーオーナメント = ツリーオーナメント


|#default = {{{1|}}}
|#default = {{{1|}}}
}}}}{{#vardefine:item description|{{#switch:{{#var:item}}
}}}}}}{{#vardefine:item description|{{#switch:{{#var:item}}
| 救命うきわ = <!--海難救助に欠かせないO型の浮き具。--> An O-type flotation device, essential for salvages and rescues.
| 救命うきわ = <!--海難救助に欠かせないO型の浮き具。--> An O-type flotation device, essential for salvages and rescues.
| 海の幸 = <!--鮮度の良い魚介類たち。--> Good, fresh seafood.
| 海の幸 = <!--鮮度の良い魚介類たち。--> Good, fresh seafood.
| 財宝 = <!--まばゆい光をはなつ黄金財宝。--> A golden treasure, gleaming with gold and dazzle.
| 財宝 = <!--まばゆい光をはなつ黄金財宝。--> A golden treasure, gleaming with gold and dazzle.
|#default =  
|#default =  
}}}}{{#switch:{{{format|}}}
}}}}{{#vardefine:item format legacy|{{{legacy|{{#if:{{#var:item subobj|}}||true}}}}}}}{{#if:{{#var:item format legacy}}|{{#switch:{{{format|}}}
| full = <abbr title="{{#var:item description}}">{{#ifexist:Template:Item:{{#var:item}}|{{Item:{{#var:item}}}}|{{Items|{{#var:item}}}}}}</abbr>
| full = <abbr title="{{#var:item description}}">{{#ifexist:Template:Item:{{#var:item}}|{{Item:{{#var:item}}}}|{{Items|{{#var:item}}}}}}</abbr>
| #default = {{#ifexist:Template:Item:{{#var:item}}|{{Item:{{#var:item}}}}|{{Items|{{#var:item}}}}}}
| #default = {{#ifexist:Template:Item:{{#var:item}}|{{Item:{{#var:item}}}}|{{Items|{{#var:item}}}}}}
}}
}}|{{Item icon|subobject={{#var:item subobj}}}}}}</includeonly></onlyinclude>
<noinclude>{{Documentation}}</noinclude>

Latest revision as of 06:45, 6 March 2020

Template documentation[view] [edit] [history] [purge]

Description

This template is used to display a given item in a proper fancy format.

Arguments include either an item's English name, Japanese name or ID. A complete list of items along with their IDs can be found here (use the property browser to find an item's jp name and id).

Usage

{{Item|Transient Stone}}

Transient Stone

{{Item|全の中成長}}

M All-round Boost

{{Item|id=69}}

Nether Shard