Difference between revisions of "Template:NHGyroids"

From Nookipedia, the Animal Crossing wiki
m
Tag: Undo
(Adding filename and ID to cargo table and infobox)
 
(15 intermediate revisions by 4 users not shown)
Line 3: Line 3:
 
|identifier = String
 
|identifier = String
 
|en_name = String
 
|en_name = String
 +
|filename = String
 +
|internal_ID = Integer
 +
|catalog_num = Integer
 
|hha_base = Integer
 
|hha_base = Integer
 
|buy1_price = Integer
 
|buy1_price = Integer
Line 31: Line 34:
 
|unlocked = Boolean
 
|unlocked = Boolean
 
|notes = String
 
|notes = String
}}</noinclude><includeonly>{{#if:{{{nodisplaytitle|}}}||{{DISPLAYTITLE:{{#replace:{{SUBPAGENAME}}|New Horizons|''New Horizons''}}}}}}{{#ifeq:{{NAMESPACE}}|Item|<!--Attach to other tables -->{{NHLang/CargoAttach}}{{NHIdentifer/CargoAttach}}{{#if: {{{mat1|}}} | {{NHRecipe/CargoAttach}}}}{{NHGyroidVariations/CargoAttach}}<!-- Cargo Store for gyroid data (not including images or variations) -->{{#cargo_store:
+
}}</noinclude><includeonly>{{#if:{{{nodisplaytitle|}}}||{{DISPLAYTITLE:{{#replace:{{SUBPAGENAME}}|New Horizons|''New Horizons''}}}}}}{{#ifeq:{{NAMESPACE}}|Item|<!--Attach to other tables -->{{NHLang/CargoAttach}}{{NHIdentifier/CargoAttach}}{{#if: {{{mat1|}}} | {{NHRecipe/CargoAttach}}}}{{NHGyroidVariations/CargoAttach}}<!-- Cargo Store for gyroid data (not including images or variations) -->{{#cargo_store:
 
_table=nh_gyroid
 
_table=nh_gyroid
 
|identifier = {{{identifier|}}}
 
|identifier = {{{identifier|}}}
 
|en_name = {{{name|}}}
 
|en_name = {{{name|}}}
 +
|filename = {{{filename|}}}
 +
|internal_ID = {{{ID|}}}
 +
|catalog_num = {{{num|}}}
 
|hha_base = {{{hha-base|}}}
 
|hha_base = {{{hha-base|}}}
 
|buy1_price = {{{buy1-price|}}}
 
|buy1_price = {{{buy1-price|}}}
Line 90: Line 96:
 
|identifier = {{{identifier|}}}
 
|identifier = {{{identifier|}}}
 
|en_name = {{{name|}}}
 
|en_name = {{{name|}}}
|image = {{{image|{{{name|}}} ({{{variation{{#var: key }}|}}}) NH Icon.png}}}
+
|image = {{{image|{{#invoke:TitleCase|main|{{{name|}}}}} ({{#invoke:TitleCase|main|{{{variation{{#var: key }}|}}}}}) NH Icon.png}}}
|image_url = {{filepath:{{{image|{{{name|}}} ({{{variation{{#var: key }}|}}}) NH Icon.png}}}}}
+
|image_url = {{filepath:{{{image|{{#invoke:TitleCase|main|{{{name|}}}}} ({{#invoke:TitleCase|main|{{{variation{{#var: key }}|}}}}}) NH Icon.png}}}}}
 
|variation = {{{variation{{#var: key }}|}}}
 
|variation = {{{variation{{#var: key }}|}}}
 
|variation_number = {{#var: key }}
 
|variation_number = {{#var: key }}
Line 100: Line 106:
 
|identifier = {{{identifier|}}}
 
|identifier = {{{identifier|}}}
 
|en_name = {{{name|}}}
 
|en_name = {{{name|}}}
|image = {{{image|{{{name|}}} NH Icon.png}}}
+
|image = {{{image|{{#invoke:TitleCase|main|{{{name|}}}}} NH Icon.png}}}
|image_url = {{filepath:{{{image|{{{name|}}} NH Icon.png}}}}}
+
|image_url = {{filepath:{{{image|{{#invoke:TitleCase|main|{{{name|}}}}} NH Icon.png}}}}}
 
|variation =
 
|variation =
 
|variation_number = 1
 
|variation_number = 1
Line 110: Line 116:
 
_table=nh_distribution
 
_table=nh_distribution
 
|en_name = {{{name|}}}
 
|en_name = {{{name|}}}
|image = {{#if: {{{pattern1|}}} | {{#if: {{{variation1|}}} | {{{image|{{{name|}}} ({{{variation1|}}} - {{{pattern1|}}}) NH Icon.png}}} | {{{image|{{{name|}}} ({{{pattern1|}}}) NH Icon.png}}} }} | {{#if: {{{variation1|}}} | {{{image|{{{name|}}} ({{{variation1|}}}) NH Icon.png}}} | {{{image|{{{name|}}} NH Icon.png}}} }} }}
+
|image = {{#if: {{{variation1|}}} | {{{image|{{#invoke:TitleCase|main|{{{name|}}}}} ({{#invoke:TitleCase|main|{{{variation1|}}}}}) NH Icon.png}}} | {{{image|{{#invoke:TitleCase|main|{{{name|}}}}} NH Icon.png}}} }}
 
|type = Gyroid
 
|type = Gyroid
 
|distribution = {{{distribution|}}}
 
|distribution = {{{distribution|}}}
Line 117: Line 123:
 
|distribution_type = {{{distribution-type|}}}
 
|distribution_type = {{{distribution-type|}}}
 
|version = {{{version-added|}}}
 
|version = {{{version-added|}}}
}}|}}<!-- Cargo store for material-->{{#if:{{{is-material|}}}|{{NHMaterial‎‎/CargoAttach}}{{#cargo_store:
+
}}|}}<!-- Cargo store for material-->{{#if:{{{is-material|}}}|{{NHMaterial/CargoAttach}}{{#cargo_store:
 
_table=nh_material
 
_table=nh_material
 
|en_name = {{{name|}}}
 
|en_name = {{{name|}}}
 
}}|}}}}</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|{{{name|}}}}}}
+
  | title            = {{{title|{{#invoke:SentenceCase|main|{{{name|}}}}}}}}
| subtitleabove    = {{#if:{{{series|}}}{{{set|}}}{{{function1|}}}|<span style{{=}}"display:inline-block;">|}}{{#if:{{{series|}}}|[[{{{series-link|{{{series|}}}}}} Series|{{{series|}}} Series]]|}}{{#if:{{{set|}}}|{{#if:{{{series|}}}|,&nbsp;|}}[[{{{set-link|{{{set|}}}}}} Set|{{{set|}}} Set]]|}}{{#if:{{{function1|}}}|{{#if:{{{series|}}}{{{set|}}}|&nbsp;&nbsp;{{Colorshow|dcab00|'''{{!}}'''}}&nbsp;&nbsp;}}{{{function1|}}}{{#if:{{{function2|}}}|,&nbsp;{{{function2|}}}}}{{#if:{{{function3|}}}|,&nbsp;{{{function3|}}}}}}}{{#if:{{{series|}}}{{{set|}}}{{{function1|}}}|</span>|}}
 
| lefticon      = [[File:Gyroid NH Category Icon.png{{!}}Type of gyroid item|sub|20px|link=]]
 
| righticon      = &nbsp;
 
  
  | image            = {{#ifexist:File:{{{name|}}} {{#if:{{{variation1|}}}|({{{variation1|}}}{{#if:{{{pattern1|}}}| &nbsp;- {{{pattern1|}}}}})}}{{#if:{{{pattern1|}}}|{{#if:{{{variation1|}}}||({{{pattern1|}}})}}}} NH Icon.png|[[File:{{{name|}}} {{#if:{{{variation1|}}}|({{{variation1|}}}{{#if:{{{pattern1|}}}| &nbsp;- {{{pattern1|}}}}})}}{{#if:{{{pattern1|}}}|{{#if:{{{variation1|}}}||({{{pattern1|}}})}}}} NH Icon.png|128px|{{{name|}}}]]|[[File:Nia.png|128px|No image available|link=]]}}
+
  | lefticon        = [[File:Gyroid NH Inv Icon.png|sub|32px|link=Gyroid/New Horizons]]
  | caption          = {{#if:{{{variation1|}}}|{{#if:{{{pattern1|}}}|{{Colorshow|666|Variation shown: '''{{{variation1|}}}''' ({{{pattern1|}}})}}|{{Colorshow|666|Variation shown: '''{{{variation1|}}}'''}}}}|{{#if:{{{pattern1|}}}|{{Colorshow|666|Pattern shown: '''{{{pattern1|}}}'''}}|}}}}
+
| righticon        = [[File:Gyroid NH Category Icon.png|Type of gyroid|sub|20px|link=]]{{#if:{{{num|}}}|&nbsp;'''<nowiki>#</nowiki>{{#invoke:formatnum|main|lang=en|{{{num|}}}}}'''}}
 +
 
 +
| image            = {{#ifexist:File:{{#invoke:TitleCase|main|{{{name|}}}}} {{#if:{{{variation1|}}}|({{#invoke:TitleCase|main|{{{variation1|}}}}})}} NH Icon.png|[[File:{{#invoke:TitleCase|main|{{{name|}}}}} {{#if:{{{variation1|}}}|({{#invoke:TitleCase|main|{{{variation1|}}}}})}} NH Icon.png|128px|{{#invoke:SentenceCase|main|{{{name|}}}}}]]|[[File:Nia.png|128px|No image available|link=]]}}
 +
  | caption          = {{#if:{{{variation1|}}}|{{Colorshow|666|Variation shown: '''{{{variation1|}}}'''}}}}
  
 
  | leftlabel        = Buy price
 
  | leftlabel        = Buy price
Line 152: Line 159:
  
 
  | label3          = Customize
 
  | label3          = Customize
  | data3            = {{#if:{{{cyrus-price|}}}{{{customizable|}}}|{{#if:{{{cyrus-price|}}}|{{Availability|Cyrus|nb=true}}: {{Currency|Bells|{{{cyrus-price|}}}}}<br />|}}{{#if:{{{customizable|}}}|[[File:{{{custom-kit-type|Customization Kit}}} NH Customization Icon.png|22px|link=|Remake kit]] {{{custom-kits|}}} {{{custom-kit-type|kit}}}{{#ifexpr:{{{custom-kits|}}} > 1|s|}}<br />}}{{#if:{{{variation1|}}}|[[File:Customization NH Icon.png|22px|link=|Variations]] {{#expr:{{#if:{{{variation1|}}}|1|0}}+{{#if:{{{variation2|}}}|1|0}}+{{#if:{{{variation3|}}}|1|0}}+{{#if:{{{variation4|}}}|1|0}}+{{#if:{{{variation5|}}}|1|0}}+{{#if:{{{variation6|}}}|1|0}}+{{#if:{{{variation7|}}}|1|0}}+{{#if:{{{variation8|}}}|1|0}}}}&nbsp;variations{{#if:{{{customizable-variation|}}}||{{#if:{{{pattern1|}}}|&nbsp;(Cyrus&nbsp;only)}}}}}}{{#if:{{{pattern1|}}}|{{#if:{{{variation1|}}}|<br />}}[[File:Fabric NH Icon.png|22px|link=|Patterns]] {{#expr:{{#if:{{{pattern1|}}}|1|0}}+{{#if:{{{pattern2|}}}|1|0}}+{{#if:{{{pattern3|}}}|1|0}}+{{#if:{{{pattern4|}}}|1|0}}+{{#if:{{{pattern5|}}}|1|0}}+{{#if:{{{pattern6|}}}|1|0}}+{{#if:{{{pattern7|}}}|1|0}}+{{#if:{{{pattern8|}}}|1|0}}}}&nbsp;patterns|}}|}}{{#if:{{{custom-pattern-part|}}}{{{custom-body-part|}}}|{{#if:{{{cyrus-price|}}}||[[Category:New Horizons items with missing Cyrus price parameters]]}}
+
  | data3            = {{#if:{{{cyrus-price|}}}{{{customizable|}}}|{{#if:{{{cyrus-price|}}}|{{Availability|Cyrus|nb=true}}: {{Currency|Bells|{{{cyrus-price|}}}}}<br />|}}{{#if:{{{customizable|}}}|[[File:{{#invoke:TitleCase|main|{{{custom-kit-type|customization kit}}}}} NH Customization Icon.png|22px|link=|Remake kit]] {{{custom-kits|}}} {{{custom-kit-type|kit}}}{{#ifexpr:{{{custom-kits|}}} > 1|s|}}<br />}}{{#if:{{{variation1|}}}|[[File:Customization NH Icon.png|22px|link=|Variations]] {{#expr:{{#if:{{{variation1|}}}|1|0}}+{{#if:{{{variation2|}}}|1|0}}+{{#if:{{{variation3|}}}|1|0}}+{{#if:{{{variation4|}}}|1|0}}+{{#if:{{{variation5|}}}|1|0}}+{{#if:{{{variation6|}}}|1|0}}+{{#if:{{{variation7|}}}|1|0}}+{{#if:{{{variation8|}}}|1|0}}}}&nbsp;variations{{#if:{{{customizable-variation|}}}||{{#if:{{{pattern1|}}}|&nbsp;(Cyrus&nbsp;only)}}}}}}{{#if:{{{pattern1|}}}|{{#if:{{{variation1|}}}|<br />}}[[File:Fabric NH Icon.png|22px|link=|Patterns]] {{#expr:{{#if:{{{pattern1|}}}|1|0}}+{{#if:{{{pattern2|}}}|1|0}}+{{#if:{{{pattern3|}}}|1|0}}+{{#if:{{{pattern4|}}}|1|0}}+{{#if:{{{pattern5|}}}|1|0}}+{{#if:{{{pattern6|}}}|1|0}}+{{#if:{{{pattern7|}}}|1|0}}+{{#if:{{{pattern8|}}}|1|0}}}}&nbsp;patterns|}}|}}{{#if:{{{custom-pattern-part|}}}{{{custom-body-part|}}}|{{#if:{{{cyrus-price|}}}||[[Category:New Horizons items with missing Cyrus price parameters]]}}}}
  
 
  | label4          = HHA points
 
  | label4          = HHA points
Line 160: Line 167:
 
  | {{#if:{{{variation1|}}}{{{pattern1|}}}|NULL}}data10 = <div style="display:inline-block; vertical-align:top; line-height:.9em;">{{Color|{{{color1|Unknown}}}|display=inline-block}}&nbsp;{{Color|{{{color2|Unknown}}}|display=inline-block}}</div>
 
  | {{#if:{{{variation1|}}}{{{pattern1|}}}|NULL}}data10 = <div style="display:inline-block; vertical-align:top; line-height:.9em;">{{Color|{{{color1|Unknown}}}|display=inline-block}}&nbsp;{{Color|{{{color2|Unknown}}}|display=inline-block}}</div>
  
  | widebottomlabel  = Variations
+
  | widebottomlabel = Internal information
  | widebottomdata   = <div class="nh_item-flex-container" style="position:relative; text-align:center;">
+
| widebottomdata  = {{#if:{{{filename|}}}|<div style="text-align: left; padding: 0 0 0 6px">'''Filename''': <code>{{{filename|}}}</code><br></div>}}{{#if:{{{ID|}}}|<div style="text-align: left; padding: 0 0 0 6px">'''Internal ID''': <code>{{{ID|}}}</code><br></div>}}
 +
 
 +
| widebottomlabel2 = Variations
 +
  | widebottomdata2   = <div class="nh_item-flex-container" style="position:relative; text-align:center;">
 
{{#if:{{{variation1|}}} |  
 
{{#if:{{{variation1|}}} |  
 
{{#forargs: variation | key | value | <div class="nh_item-flex-item nh_item-var">
 
{{#forargs: variation | key | value | <div class="nh_item-flex-item nh_item-var">
 
<div class="nh_item-var-img">
 
<div class="nh_item-var-img">
[[File:{{#if:{{{var{{#var: key }}-img|}}}|{{#ifexist:File:{{{var{{#var: key }}-img|}}}|{{{var{{#var: key }}-img|}}}|Nia.png}}|{{#if:{{{pattern1|}}}|{{#ifexist:File:{{{name|}}} ({{{variation{{#var: key }}|}}} - {{{pattern1|}}}) NH Icon.png|{{{name|}}} ({{{variation{{#var: key }}|}}} - {{{pattern1|}}}) NH Icon.png|Nia.png}}|{{#ifexist:File:{{{name|}}} ({{{variation{{#var: key }}|}}}) NH Icon.png|{{{name|}}} ({{{variation{{#var: key }}|}}}) NH Icon.png|Nia.png}}}}}}|36px|{{{name|}}}'s {{{variation{{#var: key }}|}}} variant]]</div></div>}}</div>
+
[[File:{{#if:{{{var{{#var: key }}-img|}}}|{{#ifexist:File:{{{var{{#var: key }}-img|}}}|{{{var{{#var: key }}-img|}}}|Nia.png}}|{{#ifexist:File:{{#invoke:TitleCase|main|{{{name|}}}}} ({{#invoke:TitleCase|main|{{{variation{{#var: key }}|}}}}}) NH Icon.png|{{#invoke:TitleCase|main|{{{name|}}}}} ({{#invoke:TitleCase|main|{{{variation{{#var: key }}|}}}}}) NH Icon.png|Nia.png}}}}|36px|{{#invoke:SentenceCase|main|{{{name|}}}}}'s {{{variation{{#var: key }}|}}} variant]]</div></div>}}</div>
 
| <div style="width:100%; text-align: center;">None</div> }}
 
| <div style="width:100%; text-align: center;">None</div> }}
  
  | widebottomlabel2 = Notes
+
  | widebottomlabel3 = Notes
  | widebottomdata2 = {{{notes|}}}
+
  | widebottomdata3 = {{{notes|}}}
 +
 
 +
| widebottomlabel4 = In other games
 +
| widebottomdata4  = {{#cargo_query:tables=nl_gyroid|fields=CONCAT("[[Item:", nl_gyroid.en_name, " (New Leaf)|''New Leaf'' (", nl_gyroid.en_name, ")]]<br />")|where=nl_gyroid.identifier="{{{identifier|}}}"|delimiter=|default=}}
  
  | languages        = Name
+
  | languages        = Names
 
  | ja-name          = {{{ja-name|}}}
 
  | ja-name          = {{{ja-name|}}}
 
  | ko-name          = {{{ko-name|}}}
 
  | ko-name          = {{{ko-name|}}}
Line 191: Line 204:
 
}}
 
}}
 
<includeonly>
 
<includeonly>
[[Category:New Horizons gyroids]] {{#if: {{{availability1|}}} | [[Category:Acquired from {{#switch:{{{availability1|}}}|Crafting=crafting|Cooking=cooking|#default={{{availability1|}}}}}]]}}{{#if: {{{availability2|}}} | [[Category:Acquired from {{#switch:{{{availability2|}}}|Crafting=crafting|Cooking=cooking|#default={{{availability2|}}}}}]]}}[[Category:New Horizons items introduced in {{{version-added|}}}]]{{#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|}}}]]}}</includeonly><noinclude>{{clear}}<br>{{Documentation}}[[Category:Cargo templates]][[Category:Item infoboxes]]</noinclude>
+
[[Category:New Horizons gyroids]] {{#if: {{{availability1|}}} | [[Category:Acquired from {{{availability1|}}}]]}}{{#if: {{{availability2|}}} | [[Category:Acquired from {{{availability2|}}}]]}}[[Category:New Horizons items introduced in {{{version-added|}}}]]{{#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|}}}]]}}</includeonly><noinclude>{{clear}}<br>{{Documentation}}[[Category:Cargo templates]][[Category:Item infoboxes]]</noinclude>

Latest revision as of 16:48, September 3, 2024

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

No image available
Buy price Sell price
Not for sale Cannot be sold
Size
0.0 x 0.0 0.0 × 0.0
Obtain via
HHA points ?
Colors
Unknown
 
Unknown
Variations
None
Names in other languages
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown


No documentation for Template:NHGyroids exists. Create it.