Difference between revisions of "Template:Material"

From Nookipedia, the Animal Crossing wiki
(fixing naming)
(adding new ingredients + materials)
(One intermediate revision by one other user not shown)
Line 20: Line 20:
 
  |White Pumpkin        = [[File:White Pumpkin NH Inv Icon.png|{{{size|15px}}}|link=]] {{#if:{{{2|}}}|{{{2|}}}×}} {{i|White Pumpkin|New Horizons}}
 
  |White Pumpkin        = [[File:White Pumpkin NH Inv Icon.png|{{{size|15px}}}|link=]] {{#if:{{{2|}}}|{{{2|}}}×}} {{i|White Pumpkin|New Horizons}}
 
  |Yellow Pumpkin      = [[File:Yellow Pumpkin NH Inv Icon.png|{{{size|15px}}}|link=]] {{#if:{{{2|}}}|{{{2|}}}×}} {{i|Yellow Pumpkin|New Horizons}}
 
  |Yellow Pumpkin      = [[File:Yellow Pumpkin NH Inv Icon.png|{{{size|15px}}}|link=]] {{#if:{{{2|}}}|{{{2|}}}×}} {{i|Yellow Pumpkin|New Horizons}}
 +
|Glowing Moss        = [[File:White Pumpkin NH Inv Icon.png|{{{size|15px}}}|link=]] {{#if:{{{2|}}}|{{{2|}}}×}} {{i|Glowing Moss|New Horizons}}
 +
|Vine                = [[File:Vine NH Inv Icon.png|{{{size|15px}}}|link=]] {{#if:{{{2|}}}|{{{2|}}}×}} {{i|Vine|New Horizons}}
 +
 +
<!-- COOKING INGREDIENTS -->
 +
|Wheat                = [[File:Wheat NH Inv Icon.png|{{{size|15px}}}|link=]] {{#if:{{{2|}}}|{{{2|}}}×}} {{i|Wheat|New Horizons}}
 +
|Sugar                = [[File:Sugar NH Inv Icon.png|{{{size|15px}}}|link=]] {{#if:{{{2|}}}|{{{2|}}}×}} {{i|Sugar|New Horizons}}
 +
|Tomato              = [[File:Tomato NH Inv Icon.png|{{{size|15px}}}|link=]] {{#if:{{{2|}}}|{{{2|}}}×}} {{i|Tomato|New Horizons}}
 +
|Carrot              = [[File:Carrot NH Inv Icon.png|{{{size|15px}}}|link=]] {{#if:{{{2|}}}|{{{2|}}}×}} {{i|Carrot|New Horizons}}
 +
|Sugarcane            = [[File:Sugarcane NH Inv Icon.png|{{{size|15px}}}|link=]] {{#if:{{{2|}}}|{{{2|}}}×}} {{i|Sugarcane|New Horizons}}
 +
|Potato              = [[File:Potato NH Inv Icon.png|{{{size|15px}}}|link=]] {{#if:{{{2|}}}|{{{2|}}}×}} {{i|Potato|New Horizons}}
 +
|Flour                = [[File:Flour NH Inv Icon.png|{{{size|15px}}}|link=]] {{#if:{{{2|}}}|{{{2|}}}×}} {{i|Flour|New Horizons}}
 +
|Whole-Wheat Flour    = [[File:Whole-Wheat Flour NH Inv Icon.png|{{{size|15px}}}|link=]] {{#if:{{{2|}}}|{{{2|}}}×}} {{i|Whole-Wheat Flour|New Horizons}}
 +
|Sugar                = [[File:Sugar NH Inv Icon.png|{{{size|15px}}}|link=]] {{#if:{{{2|}}}|{{{2|}}}×}} {{i|Sugar|New Horizons}}
 +
|Brown Sugar          = [[File:Brown Sugar NH Inv Icon.png|{{{size|15px}}}|link=]] {{#if:{{{2|}}}|{{{2|}}}×}} {{i|Brown Sugar|New Horizons}}
 +
|30 Turnips          = [[File:Turnips NH Inv Icon.png|{{{size|15px}}}|link=]] {{#if:{{{2|}}}|{{{2|}}}×}} 30 {{i|Turnips|New Horizons}}
 +
|10 Turnips          = [[File:Turnips NH Inv Icon.png|{{{size|15px}}}|link=]] {{#if:{{{2|}}}|{{{2|}}}×}} 10 {{i|Turnips|New Horizons}}
 +
|Anchovy              = [[File:Anchovy (Fish) NH Icon.png|{{{size|15px}}}|link=]] {{#if:{{{2|}}}|{{{2|}}}×}} [[Anchovy (fish)|Anchovy]]
 +
|Horse Mackerel      = [[File:Horse Mackerel NH Icon.png|{{{size|15px}}}|link=]] {{#if:{{{2|}}}|{{{2|}}}×}} [[Horse Mackerel]]
 +
|Barred Knifejaw      = [[File:Barred Knifejaw NH Icon.png|{{{size|15px}}}|link=]] {{#if:{{{2|}}}|{{{2|}}}×}} [[Barred Knifejaw]]
 +
|Blue Marlin          = [[File:Blue Marlin NH Icon.png|{{{size|15px}}}|link=]] {{#if:{{{2|}}}|{{{2|}}}×}} [[Blue Marlin]]
 +
|Carp                = [[File:Carp NH Icon.png|{{{size|15px}}}|link=]] {{#if:{{{2|}}}|{{{2|}}}×}} [[Carp]]
 +
|Dab                  = [[File:Dab NH Icon.png|{{{size|15px}}}|link=]] {{#if:{{{2|}}}|{{{2|}}}×}} [[Dab]]
 +
|Giant Clam          = [[File:Giant Clam NH Icon.png|{{{size|15px}}}|link=]] {{#if:{{{2|}}}|{{{2|}}}×}} [[Giant Clam]]
 +
|Horse Mackerel      = [[File:Horse Mackerel NH Icon.png|{{{size|15px}}}|link=]] {{#if:{{{2|}}}|{{{2|}}}×}} [[Horse Mackerel]]
 +
|Olive Flounder      = [[File:Olive Flounder NH Icon.png|{{{size|15px}}}|link=]] {{#if:{{{2|}}}|{{{2|}}}×}} [[Olive Flounder]]
 +
|Red Snapper          = [[File:Red Snapper NH Icon.png|{{{size|15px}}}|link=]] {{#if:{{{2|}}}|{{{2|}}}×}} [[Red Snapper]]
 +
|Salmon              = [[File:Salmon NH Icon.png|{{{size|15px}}}|link=]] {{#if:{{{2|}}}|{{{2|}}}×}} [[Salmon]]
 +
|Scallop              = [[File:Scallop NH Icon.png|{{{size|15px}}}|link=]] {{#if:{{{2|}}}|{{{2|}}}×}} [[Scallop]]
 +
|Sea Bass            = [[File:Sea Bass NH Icon.png|{{{size|15px}}}|link=]] {{#if:{{{2|}}}|{{{2|}}}×}} [[Sea Bass]]
 +
|Seaweed              = [[File:Seaweed NH Icon.png|{{{size|15px}}}|link=]] {{#if:{{{2|}}}|{{{2|}}}×}} [[Seaweed]]
 +
|Squid                = [[File:Squid NH Icon.png|{{{size|15px}}}|link=]] {{#if:{{{2|}}}|{{{2|}}}×}} [[Squid]]
 +
|Sweet Shrimp        = [[File:Sweet Shrimp NH Icon.png|{{{size|15px}}}|link=]] {{#if:{{{2|}}}|{{{2|}}}×}} [[Sweet Shrimp]]
 +
|Tiger Prawn          = [[File:Tiger Prawn NH Icon.png|{{{size|15px}}}|link=]] {{#if:{{{2|}}}|{{{2|}}}×}} [[Tiger Prawn]]
  
 
<!-- STAR FRAGMENTS -->
 
<!-- STAR FRAGMENTS -->
Line 156: Line 189:
 
  |Sand Dollar          = [[File:Sand Dollar NH Inv Icon.png|{{{size|15px}}}|link=]] {{#if:{{{2|}}}|{{{2|}}}×}} {{i|Sand Dollar|New Horizons}}
 
  |Sand Dollar          = [[File:Sand Dollar NH Inv Icon.png|{{{size|15px}}}|link=]] {{#if:{{{2|}}}|{{{2|}}}×}} {{i|Sand Dollar|New Horizons}}
 
  |Venus Comb          = [[File:Venus Comb NH Inv Icon.png|{{{size|15px}}}|link=]] {{#if:{{{2|}}}|{{{2|}}}×}} {{i|Venus Comb|New Horizons}}
 
  |Venus Comb          = [[File:Venus Comb NH Inv Icon.png|{{{size|15px}}}|link=]] {{#if:{{{2|}}}|{{{2|}}}×}} {{i|Venus Comb|New Horizons}}
 
  
 
<!-- FURNITURE -->
 
<!-- FURNITURE -->
Line 184: Line 216:
 
  |Wooden Block Toy    = [[File:Leaf NH Icon cropped.png|{{{size|15px}}}|link=]] {{#if:{{{2|}}}|{{{2|}}}×}} {{i|Wooden-Block Toy|New Horizons}}
 
  |Wooden Block Toy    = [[File:Leaf NH Icon cropped.png|{{{size|15px}}}|link=]] {{#if:{{{2|}}}|{{{2|}}}×}} {{i|Wooden-Block Toy|New Horizons}}
 
  |Zen Cushion          = [[File:Leaf NH Icon cropped.png|{{{size|15px}}}|link=]] {{#if:{{{2|}}}|{{{2|}}}×}} {{i|Zen Cushion|New Horizons}}
 
  |Zen Cushion          = [[File:Leaf NH Icon cropped.png|{{{size|15px}}}|link=]] {{#if:{{{2|}}}|{{{2|}}}×}} {{i|Zen Cushion|New Horizons}}
 
  
 
<!-- MISCELLANEOUS -->
 
<!-- MISCELLANEOUS -->

Revision as of 20:33, November 12, 2021

Template documentation (view)


Lua Logo.svg
This template is using one or many Lua modules
To change certain features of this template, the following modules will need to be edited:
  • Module:Materials
  • Module:SentenceCase
  • Note that any changes should first be tested in a sandbox. Please consider discussing planned changes on the talk page or with staff members before implementing them.
    Lua Logo.svg
    This template is using one or many Lua modules
    To change certain features of this template, the following modules will need to be edited:
  • Module:Materials
  • Module:SentenceCase
  • Note that any changes should first be tested in a sandbox. Please consider discussing planned changes on the talk page or with staff members before implementing them.

    Usage

    {{Material|<material>|<quantity>|size=<optional>|nb=<optional>|sentence-case=<optional>}}
    

    This template will generate the name and associated icon for a specific material in Animal Crossing: New Horizons, primarily for use in tables. The material name used must be exact to the name used in-game. There is also an optional parameter to specify a quantity. The icon's size can be manipulated using the size parameter; the default size is 15px. The nb parameter can be given any value to remove the line break at the end of the template, while the sentence-case parameter is used to sentence case the item names in certain cases; this may not work for certain materials however.

    Although this template supports Bells, it should only be used for recipes that require Bells to craft. For item monetary values please use Template:Currency instead. This template is primarily used for Animal Crossing: New Horizons items; for Animal Crossing: Pocket Camp items, refer to Template:PC Material instead.

    The following materials are supported by this template:

    Natural Resources
    Cooking ingredients
    Star Fragments
    Seasonal
    Trash
    Tools
    Fruit
    Flowers
    Shells
    Furniture
    Interior items
    Miscellaneous

    Example

    {{Material|wood|12}}
    

    Leaf NH Icon cropped.png 12× wood

    {{Material|stone|2|sentence-case=yes}} {{Material|clay|3|sentence-case=yes}}
    
    Leaf NH Icon cropped.pngstone
    Leaf NH Icon cropped.pngclay