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.
No edit summary |
Salty Nori (talk | contribs) (Copy Template:Infobox item from Fandom's CI Wiki) |
||
Line 90: | Line 90: | ||
<label>Source</label> | <label>Source</label> | ||
<format>{{Array|{{{source|}}}|;|{item}|<hr />}}</format> | <format>{{Array|{{{source|}}}|;|{item}|<hr />}}</format> | ||
</data> | |||
<data source="effect"> | |||
<label>Effects</label> | |||
</data> | </data> | ||
</group> | </group> | ||
Line 96: | Line 99: | ||
<data source="sell"> | <data source="sell"> | ||
<label>Base</label> | <label>Base</label> | ||
<format>{{#if:{{{diff_quality|}}}|{{{sell|}}}|{{g|{{{sell|}}}}}}}</format> | <format>{{#switch:{{lc:{{{sell|}}}}} | ||
| 0 = ''Unsellable'' | |||
| #default= {{#if:{{{diff_quality|}}}|{{{sell|}}}|{{g|{{{sell|}}}}}}} | |||
}}</format> | |||
</data> | </data> | ||
<data source="bronze"> | <data source="bronze"> | ||
Line 166: | Line 172: | ||
</data> | </data> | ||
</group> | </group> | ||
< | </infobox><!-- | ||
-->{{Namespace|main=<!-- | |||
-->{{#ifeq:{{NAMESPACE}}||{{DISPLAYTITLE:{{{title|{{PAGENAME}}}}}|noreplace}}}}<!-- | |||
</ | Type | ||
-->{{#switch:{{{type}}}<!-- | |||
-->|Vegetable|Fruit|Flower|Herb|Grain=<!-- crops | |||
-->[[Category:Crops]]<!-- | |||
-->{{#if:{{{season|}}}|{{#ifeq:{{{season|}}}|Any<!-- | |||
-->|[[Category:Any season crops}}]]<!-- | |||
-->|{{Array|{{{season}}}|;|[[Category:{item} crops}}]]}}<!-- | |||
-->}}}}<!-- | |||
-->|Seed|Seedling=<!-- seeds | |||
-->{{#ifeq:{{{type}}}|Seed|[[Category:Seeds]]|[[Category:Seedlings]]}}<!-- | |||
-->{{#if:{{{season|}}}|{{#ifeq:{{{season|}}}|Any<!-- | |||
-->|[[Category:Any season {{lc:{{{type}}}s}}]]<!-- | |||
-->|{{Array|{{{season}}}|;|[[Category:{item} {{lc:{{{type}}}s}}]]}}<!-- | |||
-->}}}}<!-- | |||
-->|Cooked dish<!-- food | |||
-->= [[Category:{{{type}}}es]]<!-- | |||
-->|Bomb|Decoy<!-- combat | |||
-->|Resource<!-- crafting mat | |||
-->|Resource equipment|Artisan equipment<!-- crafting | |||
-->|Animal product<!-- ranching | |||
-->|Scavengeable|Mushroom<!-- foraging | |||
-->|Bug<!-- land catcheables | |||
-->|Ocean critter<!-- ocean catcheables | |||
-->|Artifact|Fossil<!-- caches or node | |||
-->|Geode|Gem<!-- mining | |||
-->|Letter|Torn page<!-- notes | |||
-->|Tool|Weapon<!-- | |||
-->|Consumable<!-- snacks | |||
-->|Bait<!-- fishing | |||
-->|Trap<!-- combat | |||
-->|Cooking utensil<!-- cooking | |||
-->= [[Category:{{{type}}}s]]<!-- | |||
-->|Loot<!-- combat | |||
-->|Fish<!-- fishing | |||
-->|Misc<!-- misc | |||
-->|Farming<!-- farming stuff | |||
-->|Decor<!-- farm decor | |||
-->= [[Category:{{{type}}}]]<!-- | |||
-->}}<!-- | |||
Categories | |||
-->{{#if:{{{category|}}}|{{Array|{{{category|}}}|;|[[Category:{item}]]}}}}<!-- | |||
-->{{#if:{{{regrowth|}}}|[[Category:Regrowing crops]]}}<!-- | |||
-->{{#if:{{{rank|}}}|[[Category:Town rank {{{rank}}}]]}}<!-- | |||
-->{{#if:{{{year|}}}|[[Category:Year {{{year}}}]]}}<!-- | |||
-->{{#if:{{{giant_crop|}}}|[[Category:Giant crops]]}}<!-- | |||
-->{{#if:{{{wild_seed|}}}|[[Category:Crops from wild seeds]]}}<!-- | |||
-->{{#if:{{{health|}}}|[[Category:Consumables]][[Category:Edible ingredients]]}}<!-- | |||
-->}}<!-- | |||
Necessary new line due to styling issues | |||
--> | |||
</includeonly><!-- | |||
Examples | |||
--><noinclude>{{Documentation|type=Infobox}}</noinclude> |
Revision as of 16:55, 17 December 2023
![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 |