Template:Infobox item/Draft: Difference between revisions
Jump to navigation
Jump to search
Salty Nori (talk | contribs) No edit summary Tag: Reverted |
Salty Nori (talk | contribs) No edit summary Tag: Undo |
||
Line 103: | Line 103: | ||
<data source="produced_by"> | <data source="produced_by"> | ||
<label>Produced by</label> | <label>Produced by</label> | ||
<format>{{ | <format>{{Icon|{{{produced_by|}}}}}</format> | ||
</data> | </data> | ||
<data source="source"> | <data source="source"> | ||
Line 257: | Line 257: | ||
-->}}<!-- | -->}}<!-- | ||
Animal products | Animal products | ||
-->{{#if | -->{{#if:{{{produced_by|}}}|<!-- | ||
-->{{#switch | -->{{#switch:{{{produced_by}}}<!-- | ||
-->|Chicken|Duck|Peafowl|Quail = [[Category:{{{produced_by}}} products]][[Category:Coop products]]<!-- | -->|Chicken|Duck|Peafowl|Quail = [[Category:{{{produced_by}}} products]][[Category:Coop products]]<!-- | ||
-->|Pig|Luwak|Goat|Cow|Llama = [[Category:{{{produced_by}}} products]][[Category:Barn products]]<!-- | -->|Pig|Luwak|Goat|Cow|Llama = [[Category:{{{produced_by}}} products]][[Category:Barn products]]<!-- | ||
Line 266: | Line 266: | ||
Categories<!-- | Categories<!-- | ||
-->{{#if:{{{category|}}}|{{Array|{{{category|}}}|;|[[Category:{item}]]}}}}<!-- | -->{{#if:{{{category|}}}|{{Array|{{{category|}}}|;|[[Category:{item}]]}}}}<!-- | ||
-->{{#if:{{{item_group|}}}|{{Array|{{{item_group}}}|;|[[Category:{item}]]}}}}<!-- | -->{{#if:{{{item_group|}}}|{{Array|{{{item_group}}}|;|[[Category:{item}s]]}}}}<!-- | ||
-->{{#if:{{{regrowth|}}}|[[Category:Regrowing crops]]}}<!-- | -->{{#if:{{{regrowth|}}}|[[Category:Regrowing crops]]}}<!-- | ||
-->{{#if:{{{rank|}}}|[[Category:Town rank {{{rank}}}]]}}<!-- | -->{{#if:{{{rank|}}}|[[Category:Town rank {{{rank}}}]]}}<!-- | ||
Line 330: | Line 330: | ||
|energy = 25 | |energy = 25 | ||
}} | }} | ||
==Example 4== | ==Example 4== | ||
{{Infobox item/Draft | {{Infobox item/Draft | ||
|description = Red and gooey. | |description = Red and gooey. | ||
|type = Artisan product | |type = Artisan product | ||
| | |source = Mason jar | ||
|item_group = Jam | |item_group = Jam | ||
Line 358: | Line 358: | ||
|energy_gold = 80 | |energy_gold = 80 | ||
|energy_osmium = 105 | |energy_osmium = 105 | ||
}} | }} | ||
}}</noinclude> | }}</noinclude> |
Revision as of 03:53, 10 February 2024
This is the template draft page for Template:Infobox item (diff).
Template documentation
Note: parts of or the entire template might not be visible without values provided.
Note: parts of or the entire template might not be visible without values provided.
Main | Documentation | Sandbox | Usage |
Example 1
Example 2
Example 3