Template:Infobox item: Difference between revisions
Jump to navigation
Jump to search
Template documentation
Note: parts of or the entire template might not be visible without values provided.
Salty Nori (talk | contribs) (add artisan product) |
Salty Nori (talk | contribs) (add formatnum) |
||
(11 intermediate revisions by the same user not shown) | |||
Line 101: | Line 101: | ||
<label>[[Enchanting]] value</label> | <label>[[Enchanting]] value</label> | ||
</data> | </data> | ||
<data source=" | <data source="produced_by"> | ||
<label> | <label>Produced by</label> | ||
<format>{{Icon|{{{ | <format>{{Icon|{{{produced_by|}}}|note={{#if:{{{produced_note|}}}|{{{produced_note|}}}}}}}</format> | ||
</data> | </data> | ||
<data source="source"> | <data source="source"> | ||
Line 116: | Line 116: | ||
<format>{{#switch:{{lc:{{{sell|}}}}} | <format>{{#switch:{{lc:{{{sell|}}}}} | ||
|0 = ''Unsellable'' | |0 = ''Unsellable'' | ||
|#default= {{{sell|}}} | |#default= {{formatnum:{{{sell|}}}}} | ||
}}</format> | }}</format> | ||
</data> | </data> | ||
Line 122: | Line 122: | ||
<label>{{q|1}}</label> | <label>{{q|1}}</label> | ||
<default>{{#if:{{{diff_quality|}}}|{{Sell prices|B|{{{sell|}}}}}}}</default> | <default>{{#if:{{{diff_quality|}}}|{{Sell prices|B|{{{sell|}}}}}}}</default> | ||
<format>{{formatnum:{{{bronze}}}}}</format> | |||
</data> | </data> | ||
<data source="silver"> | <data source="silver"> | ||
<label>{{q|2}}</label> | <label>{{q|2}}</label> | ||
<default>{{#if:{{{diff_quality|}}}|{{Sell prices|S|{{{sell|}}}}}}}</default> | <default>{{#if:{{{diff_quality|}}}|{{Sell prices|S|{{{sell|}}}}}}}</default> | ||
<format>{{formatnum:{{{silver}}}}}</format> | |||
</data> | </data> | ||
<data source="gold"> | <data source="gold"> | ||
<label>{{q|3}}</label> | <label>{{q|3}}</label> | ||
<default>{{#if:{{{diff_quality|}}}|{{Sell prices|G|{{{sell|}}}}}}}</default> | <default>{{#if:{{{diff_quality|}}}|{{Sell prices|G|{{{sell|}}}}}}}</default> | ||
<format>{{formatnum:{{{gold}}}}}</format> | |||
</data> | </data> | ||
<data source="osmium"> | <data source="osmium"> | ||
<label>{{q|4}}</label> | <label>{{q|4}}</label> | ||
<default>{{#if:{{{diff_quality|}}}|{{Sell prices|O|{{{sell|}}}}}}}</default> | <default>{{#if:{{{diff_quality|}}}|{{Sell prices|O|{{{sell|}}}}}}}</default> | ||
<format>{{formatnum:{{{osmium}}}}}</format> | |||
</data> | </data> | ||
</group> | </group> | ||
Line 257: | Line 261: | ||
-->}}<!-- | -->}}<!-- | ||
Animal products | Animal products | ||
-->{{#if:{{{ | -->{{#if:{{{produced_by|}}}|<!-- | ||
-->{{#switch:{{{ | -->{{#switch:{{{produced_by}}}<!-- | ||
-->|Chicken|Duck|Peafowl|Quail = [[Category:{{{ | -->|Chicken|Duck|Peafowl|Quail = [[Category:{{{produced_by}}} products]][[Category:Coop products]]<!-- | ||
-->|Pig|Luwak|Goat|Cow|Llama = [[Category:{{{ | -->|Pig|Luwak|Goat|Cow|Llama|Sheep = [[Category:{{{produced_by}}} products]][[Category:Barn products]]<!-- | ||
-->|#default = [[Category:{{{produced_by}}} products]]<!-- | |||
-->}}<!-- | -->}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->{{#ifeq:{{{produced_note|}}}|winner|[[Category:Golden animal products]]}}<!-- | |||
Categories<!-- | Categories<!-- | ||
-->{{#if:{{{category|}}}|{{Array|{{{category|}}}|;|[[Category:{item}]]}}}}<!-- | -->{{#if:{{{category|}}}|{{Array|{{{category|}}}|;|[[Category:{item}]]}}}}<!-- | ||
Line 277: | Line 283: | ||
-->|Scavengeable|Mushroom= {{#if:{{{journal_id|}}}|[[Category:Scavengeable|{{{journal_id}}}]]|[[Category:Scavengeable]][[Category:Item missing sort ID]]}}<!-- | -->|Scavengeable|Mushroom= {{#if:{{{journal_id|}}}|[[Category:Scavengeable|{{{journal_id}}}]]|[[Category:Scavengeable]][[Category:Item missing sort ID]]}}<!-- | ||
-->|Gem|Geode= {{#if:{{{journal_id|}}}|[[Category:Gem|{{{journal_id}}}]]|[[Category:Gem]][[Category:Item missing sort ID]]}}<!-- | -->|Gem|Geode= {{#if:{{{journal_id|}}}|[[Category:Gem|{{{journal_id}}}]]|[[Category:Gem]][[Category:Item missing sort ID]]}}<!-- | ||
--> | -->|Animal product|Fish|Ocean critter|Artifact|Fossil|Letter|Torn page= {{#if:{{{journal_id|}}}|[[Category:{{{type}}}|{{{journal_id}}}]]|[[Category:{{{type}}}]][[Category:Item missing sort ID]]}}<!-- | ||
-->|#default=<!-- | -->|#default=<!-- | ||
-->}}<!-- | -->}}<!-- |
Latest revision as of 05:21, 21 April 2024
![Documentation icon](/w/images/thumb/a/ac/225Asian_Bookshelves.png/30px-225Asian_Bookshelves.png)
Note: parts of or the entire template might not be visible without values provided.
Main | Documentation | Sandbox | Usage |