Difference between revisions of "Template:Item"

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


|#default = {{{1|}}}
|#default = {{{1|}}}
Line 86: Line 90:
| 財宝 = <!--まばゆい光をはなつ黄金財宝。--> 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