Difference between revisions of "Template:NHItems"

From Nookipedia, the Animal Crossing wiki
m (Text replacement - "{{#invoke:SentenceCase|main|{{{title|{{{name|}}}}}}}}" to "{{{title|{{#invoke:SentenceCase|main|{{{name|}}}}}}}}")
m
(3 intermediate revisions by the same user not shown)
Line 78: Line 78:
 
|energy_points = {{{energy-points|}}}
 
|energy_points = {{{energy-points|}}}
 
|material_seasonality = {{{material-seasonality|}}}
 
|material_seasonality = {{{material-seasonality|}}}
|material_sort = {{#switch:{{{material-type|}}}|Wood=1|Bamboo=2|Tree=3|Ore=4|Underwater=5|Fruit=6|Plant=7|Ingredient=8|Shell=9|Trash=10|Star Fragment=11|Flower=12|Mushroom=13|Leaf=14|Snowflake=15|Feather=16|Egg=17|Ornament=18|Other=19}}
+
|material_sort = {{#switch:{{{material-type|}}}|wood=1|bamboo=2|Tree=3|Ore=4|Underwater=5|Fruit=6|Plant=7|Ingredient=8|Shell=9|Trash=10|star fragment=11|Flower=12|Mushroom=13|Leaf=14|snowflake=15|Feather=16|Egg=17|Ornament=18|Other=19}}
|material_name_sort = {{#switch:{{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}|Star Fragment=1|Large Star Fragment=2|Aries Fragment=3|Taurus Fragment=4|Gemini Fragment=5|Cancer Fragment=6|Leo Fragment=7|Virgo Fragment=8|Libra Fragment=9|Scorpius Fragment=10|Sagittarius Fragment=11|Capricorn Fragment=12|Aquarius Fragment=13|Pisces Fragment=14}}
+
|material_name_sort = {{#switch:{{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}|star fragment=1|Large star fragment=2|Aries fragment=3|Taurus fragment=4|Gemini fragment=5|Cancer fragment=6|Leo fragment=7|Virgo fragment=8|Libra fragment=9|Scorpius fragment=10|Sagittarius fragment=11|Capricorn fragment=12|Aquarius fragment=13|Pisces fragment=14}}
 
|material_seasonality_sort = {{#switch:{{{material-seasonality|}}}|Spring=1|Summer=2|Fall=3|Winter=4|Festivale=5|Bunny Day=6|Halloween=7|Festive season=8}}
 
|material_seasonality_sort = {{#switch:{{{material-seasonality|}}}|Spring=1|Summer=2|Fall=3|Winter=4|Festivale=5|Bunny Day=6|Halloween=7|Festive season=8}}
 
|unlocked = {{#if: {{{unlocked|}}} | Yes | No}}
 
|unlocked = {{#if: {{{unlocked|}}} | Yes | No}}
Line 190: Line 190:
 
  | secondarycolor  = 42 73
 
  | secondarycolor  = 42 73
 
  | title            = {{{title|{{#invoke:SentenceCase|main|{{{name|}}}}}}}}
 
  | title            = {{{title|{{#invoke:SentenceCase|main|{{{name|}}}}}}}}
  | lefticon        = {{#switch:{{{item-type|}}}|Fence=[[File:Fence NH Inv Icon.png|sub|32px|link=]]|#default=[[File:{{{inv-icon|{{{name|}}} NH Inv Icon.png}}}|sub|32px|link=]]}}
+
  | lefticon        = {{#switch:{{{item-type|}}}|Fence=[[File:Fence NH Inv Icon.png|sub|32px|link=]]|#default=[[File:{{{inv-icon|{{#invoke:TitleCase|main|{{{name|}}}}} NH Inv Icon.png}}}|sub|32px|link=]]}}
 
  | righticon        = [[File:{{#switch:{{{item-type|}}}
 
  | righticon        = [[File:{{#switch:{{{item-type|}}}
 
  | Fence = Fencing NH Category Icon.png{{!}}Type of fence
 
  | Fence = Fencing NH Category Icon.png{{!}}Type of fence
Line 221: Line 221:
  
 
  | label4          = Recipe
 
  | label4          = Recipe
  | data4            = {{#if:{{{diy-availability1|}}}|{{Material|{{{mat1|}}}|{{{mat1-num|}}}}}{{#if:{{{mat2|}}}|{{Material|{{{mat2|}}}|{{{mat2-num|}}}}}}}{{#if:{{{mat3|}}}|{{Material|{{{mat3|}}}|{{{mat3-num|}}}}}}}{{#if:{{{mat4|}}}|{{Material|{{{mat4|}}}|{{{mat4-num|}}}}}}}{{#if:{{{mat5|}}}|{{Material|{{{mat5|}}}|{{{mat5-num|}}}}}}}{{#if:{{{mat6|}}}|{{Material|{{{mat6|}}}|{{{mat6-num|}}}}}}}}}
+
  | data4            = {{#if:{{{diy-availability1|}}}|{{Material|{{{mat1|}}}|{{{mat1-num|}}}|sentence-case=yes}}{{#if:{{{mat2|}}}|{{Material|{{{mat2|}}}|{{{mat2-num|}}}|sentence-case=yes}}}}{{#if:{{{mat3|}}}|{{Material|{{{mat3|}}}|{{{mat3-num|}}}|sentence-case=yes}}}}{{#if:{{{mat4|}}}|{{Material|{{{mat4|}}}|{{{mat4-num|}}}|sentence-case=yes}}}}{{#if:{{{mat5|}}}|{{Material|{{{mat5|}}}|{{{mat5-num|}}}|sentence-case=yes}}}}{{#if:{{{mat6|}}}|{{Material|{{{mat6|}}}|{{{mat6-num|}}}|sentence-case=yes}}}}}}
  
 
  | label5          = Recipe type
 
  | label5          = Recipe type

Revision as of 23:48, November 29, 2022

This template defines the table "nh_item". View table.

32px Type of other item
No image available
Buy price Sell price
Not for sale Cannot be sold
Obtain via
Stack 0
Variations
None
Names in other languages
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown


Template documentation (view)


More Cargo templates