Difference between revisions of "Template:NHItems"
From Nookipedia, the Animal Crossing wiki
PanchamBro (talk | contribs) (Sentence casing material names) |
Dorsal Axe (talk | contribs) (Switching to CSS colour class) |
||
(9 intermediate revisions by 2 users not shown) | |||
Line 41: | Line 41: | ||
|unlocked = Boolean | |unlocked = Boolean | ||
|notes = String | |notes = String | ||
− | }}</noinclude><includeonly>{{DISPLAYTITLE:{{#replace:{{SUBPAGENAME}}|New Horizons|''New Horizons''}}}}{{#ifeq:{{NAMESPACE}}|Item|<!--Attach to other tables -->{{NHLang/CargoAttach}}{{ | + | }}</noinclude><includeonly>{{DISPLAYTITLE:{{#replace:{{SUBPAGENAME}}|New Horizons|''New Horizons''}}}}{{#ifeq:{{NAMESPACE}}|Item|<!--Attach to other tables -->{{NHLang/CargoAttach}}{{NHIdentifier/CargoAttach}}{{NHItemVariations/CargoAttach}}{{#if: {{{mat1|}}} | {{NHRecipe/CargoAttach}}}}<!-- Cargo Store for itemsdata -->{{#cargo_store: |
_table=nh_item | _table=nh_item | ||
|identifier = {{{identifier|}}} | |identifier = {{{identifier|}}} | ||
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|}}}| | + | |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)|}}}}}| | + | |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 103: | Line 103: | ||
}}<!-- Cargo Store for identifiers -->{{#cargo_store: | }}<!-- Cargo Store for identifiers -->{{#cargo_store: | ||
_table=nh_identifier | _table=nh_identifier | ||
− | |identifier = {{{identifier| | + | |identifier = {{{identifier|}}} |
− | |en_name = {{{name| | + | |en_name = {{{name|}}} |
|category = {{#switch:{{{item-type|}}}|Fence=Fence|#default=Other}} | |category = {{#switch:{{{item-type|}}}|Fence=Fence|#default=Other}} | ||
}}<!-- Cargo Store for recipe, if craftable --> {{#if: {{{mat1|}}} | }}<!-- Cargo Store for recipe, if craftable --> {{#if: {{{mat1|}}} | ||
Line 187: | Line 187: | ||
|version_added = {{{version-added|}}} | |version_added = {{{version-added|}}} | ||
}}|}}|}}}}</includeonly>{{Infobox 2.0 | }}|}}|}}}}</includeonly>{{Infobox 2.0 | ||
+ | | colorclass = color-series | ||
| primarycolor = 39 100 | | primarycolor = 39 100 | ||
| 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 222: | ||
| label4 = Recipe | | label4 = Recipe | ||
− | | | + | | 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 | ||
Line 256: | Line 257: | ||
| widebottomlabel3 = In other games | | widebottomlabel3 = In other games | ||
− | | widebottomdata3 = {{#cargo_query:tables=pg_item|fields=CONCAT("[[Item:", pg_item.en_name, " (Doubutsu no Mori+)|''Doubutsu no Mori+'' (", pg_item.en_name, ")]]<br />")|where=pg_item.identifier="{{{identifier|}}}" AND in_plus=1 AND in_pg=0|default=}}{{#cargo_query:tables=pg_item|fields=CONCAT("[[Item:", pg_item.en_name, " (Animal Crossing)|''Animal Crossing'' (", pg_item.en_name, ")]]<br />")|where=pg_item.identifier="{{{identifier|}}}" AND in_pg=1|default=}}{{#cargo_query:tables=pg_item|fields=CONCAT("[[Item:", pg_item.en_name, " (Doubutsu no Mori e+)|''Doubutsu no Mori e+'' (", pg_item.en_name, ")]]<br />")|where=pg_item.identifier="{{{identifier|}}}" AND in_e_plus=1 AND in_plus=0 AND in_pg=0|default=}}{{#cargo_query:tables=ww_item|fields=CONCAT("[[Item:", ww_item.en_name, " (Wild World)|''Wild World'' (", ww_item.en_name, ")]]<br />")|where=ww_item.identifier="{{{identifier|}}}"|default=}} | + | | widebottomdata3 = {{#cargo_query:tables=pg_item|fields=CONCAT("[[Item:", pg_item.en_name, " (Doubutsu no Mori+)|''Doubutsu no Mori+'' (", pg_item.en_name, ")]]<br />")|where=pg_item.identifier="{{{identifier|}}}" AND in_plus=1 AND in_pg=0|default=}}{{#cargo_query:tables=pg_item|fields=CONCAT("[[Item:", pg_item.en_name, " (Animal Crossing)|''Animal Crossing'' (", pg_item.en_name, ")]]<br />")|where=pg_item.identifier="{{{identifier|}}}" AND in_pg=1|default=}}{{#cargo_query:tables=pg_item|fields=CONCAT("[[Item:", pg_item.en_name, " (Doubutsu no Mori e+)|''Doubutsu no Mori e+'' (", pg_item.en_name, ")]]<br />")|where=pg_item.identifier="{{{identifier|}}}" AND in_e_plus=1 AND in_plus=0 AND in_pg=0|default=}}{{#cargo_query:tables=ww_item|fields=CONCAT("[[Item:", ww_item.en_name, " (Wild World)|''Wild World'' (", ww_item.en_name, ")]]<br />")|where=ww_item.identifier="{{{identifier|}}}"|default=}}{{#cargo_query:tables=ww_clothing|fields=CONCAT("[[Item:", ww_clothing.en_name, " (Wild World)|''Wild World'' (", ww_clothing.en_name, ")]]<br />")|where=ww_clothing.identifier="{{{identifier|}}}"|delimiter=|default=}}{{#cargo_query:tables=cf_item|fields=CONCAT("[[Item:", cf_item.en_name, " (City Folk)|''City Folk'' (", cf_item.en_name, ")]]<br />")|where=cf_item.identifier="{{{identifier|}}}"|default=}}{{#cargo_query:tables=cf_clothing|fields=CONCAT("[[Item:", cf_clothing.en_name, " (City Folk)|''City Folk'' (", cf_clothing.en_name, ")]]<br />")|where=cf_clothing.identifier="{{{identifier|}}}"|delimiter=|default=}} |
| languages = Names | | languages = Names | ||
Line 278: | Line 279: | ||
}} | }} | ||
<includeonly> | <includeonly> | ||
− | {{#if: {{{material|}}}|[[Category:New Horizons materials]]}}{{#switch:{{{item-type|}}}|Fence=[[Category:New Horizons fence items]]|Flower = [[Category:New Horizons flower items]]|Bush = [[Category:New Horizons bush items]]|Tree = [[Category:New Horizons tree items]]|#default=[[Category:New Horizons other items]]}}{{#if: {{{availability1|}}} | {{#ifeq:{{{availability1|}}}|Unobtainable|[[Category:Unobtainable items]] [[Category:Unobtainable items in New Horizons]]|[[Category:Acquired from | + | {{#if:{{{material|}}}|[[Category:New Horizons materials]]}}{{#switch:{{{item-type|}}}|Fence=[[Category:New Horizons fence items]]|Flower = [[Category:New Horizons flower items]]|Bush = [[Category:New Horizons bush items]]|Tree = [[Category:New Horizons tree items]]|#default=[[Category:New Horizons other items]]}}{{#ifeq: {{{edible|}}} | Yes | [[Category:Food]]}}{{#if: {{{availability1|}}} | {{#ifeq:{{{availability1|}}}|Unobtainable|[[Category:Unobtainable items]] [[Category:Unobtainable items in New Horizons]]|[[Category:Acquired from {{{availability1|}}}]]}}}}{{#if: {{{availability2|}}} | {{#ifeq:{{{availability2|}}}|Unobtainable|[[Category:Unobtainable items]] [[Category:Unobtainable items in New Horizons]]|[[Category:Acquired from {{{availability2|}}}]]}}}}{{#if: {{{availability3|}}} | {{#ifeq:{{{availability3|}}}|Unobtainable|[[Category:Unobtainable items]] [[Category:Unobtainable items in New Horizons]]|[[Category:Acquired from {{{availability3|}}}]]}}}}{{#if: {{{diy-availability1|}}}|[[Category:Recipes acquired from {{{diy-availability1|}}}]]}}{{#if: {{{diy-availability2|}}}|[[Category:Recipes acquired from {{{diy-availability2|}}}]]}}{{#if: {{{diy-availability3|}}}|[[Category:Recipes acquired from {{{diy-availability3|}}}]]}}[[Category:New Horizons items introduced in {{{version-added|}}}]]{{#if:{{{ja-name|}}}||[[Category:New Horizons items with missing other language information]]}}{{#if:{{{ko-name|}}}||[[Category:New Horizons items with missing other language information]]}}{{#if:{{{zh-name|}}}||[[Category:New Horizons items with missing other language information]]}}{{#if:{{{fr-name|}}}||[[Category:New Horizons items with missing other language information]]}}{{#if:{{{it-name|}}}||[[Category:New Horizons items with missing other language information]]}}{{#if:{{{es-name|}}}||[[Category:New Horizons items with missing other language information]]}}{{#if:{{{de-name|}}}||[[Category:New Horizons items with missing other language information]]}}{{#if:{{{nl-name|}}}||[[Category:New Horizons items with missing other language information]]}}{{#if:{{{ru-name|}}}||[[Category:New Horizons items with missing other language information]]}}</includeonly><noinclude>{{clear}}<br>{{Documentation}}[[Category:Cargo templates]][[Category:Item infoboxes]]</noinclude> |
Revision as of 04:49, May 18, 2024
This template defines the table "nh_item". View table.
| ||||||||
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 |
---|
- For query instructions see our Cargo documentation.