Difference between revisions of "Template:NHGyroids"
From Nookipedia, the Animal Crossing wiki
PanchamBro (talk | contribs) m Tag: Undo |
PanchamBro (talk | contribs) (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}}{{ | + | }}</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 = | + | |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|}}}|{{ | + | }}|}}<!-- 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| | + | | title = {{{title|{{#invoke:SentenceCase|main|{{{name|}}}}}}}} |
− | |||
− | |||
− | |||
− | | | + | | lefticon = [[File:Gyroid NH Inv Icon.png|sub|32px|link=Gyroid/New Horizons]] |
− | | caption = {{#if:{{{variation1|} | + | | righticon = [[File:Gyroid NH Category Icon.png|Type of gyroid|sub|20px|link=]]{{#if:{{{num|}}}| '''<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| | + | | 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}}}} variations{{#if:{{{customizable-variation|}}}||{{#if:{{{pattern1|}}}| (Cyrus 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}}}} 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}} {{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}} {{Color|{{{color2|Unknown}}}|display=inline-block}}</div> | ||
− | | widebottomlabel = Variations | + | | widebottomlabel = Internal information |
− | | | + | | 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}}|{{# | + | [[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> }} | ||
− | | | + | | widebottomlabel3 = 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 = | + | | 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 | + | [[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 documentation for Template:NHGyroids exists. Create it.