Difference between revisions of "Template:Item"
Jump to navigation
Jump to search
SurtrFan8511 (talk | contribs) |
|||
(26 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 16: | Line 35: | ||
|owner medallion | owners medallion | owner's medallion | オーナーメダリオン = オーナーメダリオン | |owner medallion | owners medallion | owner's medallion | オーナーメダリオン = オーナーメダリオン | ||
|transient stone | stone | summon stone | light stone | summoning stone | 転光石 | 転光石(無償) = 転光石 | |transient stone | stone | summon stone | light stone | summoning stone | 転光石 | 転光石(無償) = 転光石 | ||
|cooperation point | coop pt | ally pt | ally point | cooperation pt | combat point | combat pt | friend point | friend pt | 戦友 = 戦友 | |cooperation point | coop pt | ally pt | ally point | cooperation pt | combat point | combat pt | friend point | friend pt | 戦友pt | 戦友 = 戦友 | ||
|ticket | summoning ticket | salomon-kun ticket | サロモンくんチケット = サロモンくんチケット | |ticket | summoning ticket | salomon-kun ticket | サロモンくんチケット = サロモンくんチケット | ||
|platinum ticket | プラチナサロモンくんチケット = プラチナサロモンくんチケット | |||
|gold ticket | ゴールドサロモンくんチケット = ゴールドサロモンくんチケット | |||
|stamina drink | stamina drink | スタミナ = スタミナ | |stamina drink | stamina drink | スタミナ = スタミナ | ||
|shard | 片 = 片 | |shard | 片 = 片 | ||
Line 29: | Line 50: | ||
|skill seed | スキルの種 = スキルの種 | |skill seed | スキルの種 = スキルの種 | ||
| | | holy night's gift | 聖夜の贈り物 = 聖夜の贈り物 | ||
| | | thank you letter for the saints | 聖者への御礼状 = 聖者への御礼状 | ||
|christmas card | クリスマスカード = クリスマスカード | |christmas card | クリスマスカード = クリスマスカード | ||
Line 59: | 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
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
The above documentation is transcluded from Template:Item/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |