Difference between revisions of "Template:NHPhoto"

From Nookipedia, the Animal Crossing wiki
(Updating attach)
m (Text replacement - " | languages = Name" to " | languages = Names")
(34 intermediate revisions by 5 users not shown)
Line 3: Line 3:
 
|identifier = String
 
|identifier = String
 
|en_name = String
 
|en_name = String
 +
|name_sort = String
 
|category = String
 
|category = String
 +
|hha_base = Integer
 
|buy1_price = Integer
 
|buy1_price = Integer
 
|buy1_currency = String
 
|buy1_currency = String
Line 18: Line 20:
 
|custom_kits = Integer
 
|custom_kits = Integer
 
|custom_body_part = String
 
|custom_body_part = String
 +
|cyrus_price = Integer
 
|grid_size = String
 
|grid_size = String
 
|length = Float
 
|length = Float
Line 24: Line 27:
 
|interactable = Boolean
 
|interactable = Boolean
 
|version_added = String
 
|version_added = String
|version_unlocked = String
+
|unlocked = Boolean
 
|notes = String
 
|notes = String
}}</noinclude><includeonly>{{DISPLAYTITLE:{{SUBPAGENAME}}}}{{#ifeq:{{NAMESPACE}}|Item|<!--Attach to other tables -->{{NHLang/CargoAttach}}{{#if: {{{mat1|}}} | {{NHRecipe/CargoAttach}}}}{{#if: {{{variation1|}}} | {{NHPhotoVariations/CargoAttach}}}}<!-- Cargo Store for furniture data (not including images or variations) -->{{#cargo_store:
+
}}</noinclude><includeonly>{{DISPLAYTITLE:{{#replace:{{SUBPAGENAME}}|New Horizons|''New Horizons''}}}}{{#ifeq:{{NAMESPACE}}|Item|<!--Attach to other tables -->{{NHLang/CargoAttach}}{{NHIdentifer/CargoAttach}}{{#if: {{{mat1|}}} | {{NHRecipe/CargoAttach}}}}{{NHPhotoVariations/CargoAttach}}<!-- Cargo Store for furniture data (not including images or variations) -->{{#cargo_store:
 
_table=nh_photo
 
_table=nh_photo
 
|identifier = {{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}
 
|identifier = {{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}
 
|en_name = {{{name|{{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}}}}
 
|en_name = {{{name|{{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}}}}
 +
|name_sort = {{{name-sort|{{{name|{{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}}}}}}}
 
|category = {{{category|}}}
 
|category = {{{category|}}}
 +
|hha_base = {{#switch:{{{category|}}}|Photos = 351|Posters = 251}}
 
|buy1_price = {{{buy1-price|}}}
 
|buy1_price = {{{buy1-price|}}}
 
|buy1_currency = {{{buy1-currency|}}}
 
|buy1_currency = {{{buy1-currency|}}}
Line 42: Line 47:
 
|availability2 = {{{availability2|}}}
 
|availability2 = {{{availability2|}}}
 
|availability2_note = {{{availability2-note|}}}
 
|availability2_note = {{{availability2-note|}}}
|customizable = {{{customizable|}}}
+
|customizable = {{#if: {{{customizable|}}} | Yes | No }}
 
|custom_kits = {{{custom-kits|}}}
 
|custom_kits = {{{custom-kits|}}}
 
|custom_body_part = {{{custom-body-part|}}}
 
|custom_body_part = {{{custom-body-part|}}}
 +
|cyrus_price = {{{cyrus-price|}}}
 
|grid_size = {{{grid-size|}}}
 
|grid_size = {{{grid-size|}}}
 
|length = {{{length|}}}
 
|length = {{{length|}}}
 
|width = {{{width|}}}
 
|width = {{{width|}}}
|height = {{{height|}}}
+
|height = {{#switch:{{{category|}}}|Photos = 5.02557|Posters = 9.9}}
 
|interactable = {{{interactable|}}}
 
|interactable = {{{interactable|}}}
 
|version_added = {{{version-added|}}}
 
|version_added = {{{version-added|}}}
|version_unlocked = {{{version-unlocked|}}}
+
|unlocked = {{#if: {{{unlocked|}}} | Yes | No}}
 
|notes = {{{notes|}}}
 
|notes = {{{notes|}}}
 
}}<!-- Cargo Store for different language names -->{{#cargo_store:
 
}}<!-- Cargo Store for different language names -->{{#cargo_store:
_table=nh_language_names
+
_table=nh_language_name
 
|identifier = {{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}
 
|identifier = {{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}
 
|en_name = {{{name|{{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}}}}
 
|en_name = {{{name|{{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}}}}
 +
|type = {{#switch: {{{category|}}}|Photos = Photo|Posters = Poster}}
 +
|engb_name = {{{engb-name|}}}
 
|de_name = {{{de-name|}}}
 
|de_name = {{{de-name|}}}
 
|es_name = {{{es-name|}}}
 
|es_name = {{{es-name|}}}
Line 69: Line 77:
 
|zh_name = {{{zh-name|}}}
 
|zh_name = {{{zh-name|}}}
 
|zht_name = {{{zht-name|}}}
 
|zht_name = {{{zht-name|}}}
}} {{#if: {{{variation1|}}} | {{#forargs: variation | key | value | <!-- Cargo Store for variations --> {{#cargo_store:
+
}}<!-- Cargo Store for identifiers -->{{#cargo_store:
_table=nh_photo_variations
+
_table=nh_identifier
 +
|identifier = {{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}
 +
|en_name = {{{name|{{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}}}}
 +
|category = {{{category|}}}
 +
}}{{#if: {{{variation1|}}} | {{#forargs: variation | key | value | <!-- Cargo Store for variations --> {{#cargo_store:
 +
_table=nh_photo_variation
 
|identifier = {{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}
 
|identifier = {{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}
 
|en_name = {{{name|{{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}}}}
 
|en_name = {{{name|{{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}}}}
 
|image = {{{image|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}} ({{{variation{{#var: key }}|}}}) NH Icon.png}}}
 
|image = {{{image|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}} ({{{variation{{#var: key }}|}}}) NH Icon.png}}}
 +
|image_url = {{filepath:{{{image|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}} ({{{variation{{#var: key }}|}}}) NH Icon.png}}}}}
 
|variation = {{{variation{{#var: key }}|}}}
 
|variation = {{{variation{{#var: key }}|}}}
 +
|variation_number = {{#var: key }}
 
|color1 = {{{var{{#var: key }}-color1|}}}
 
|color1 = {{{var{{#var: key }}-color1|}}}
 
|color2 = {{{var{{#var: key }}-color2|}}}
 
|color2 = {{{var{{#var: key }}-color2|}}}
 
}} }} | <!-- Cargo Store for sole item (no variations) -->{{#cargo_store:
 
}} }} | <!-- Cargo Store for sole item (no variations) -->{{#cargo_store:
_table=nh_photo_variations
+
_table=nh_photo_variation
 
|identifier = {{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}
 
|identifier = {{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}
 
|en_name = {{{name|{{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}}}}
 
|en_name = {{{name|{{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}}}}
 
|image = {{{image|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}} NH Icon.png}}}
 
|image = {{{image|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}} NH Icon.png}}}
 +
|image_url = {{filepath:{{{image|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}} NH Icon.png}}}}}
 
|variation =
 
|variation =
 +
|variation_number = 1
 
|color1 = {{{color1|}}}
 
|color1 = {{{color1|}}}
 
|color2 = {{{color2|}}}
 
|color2 = {{{color2|}}}
}}
+
}}}}}}</includeonly>{{Infobox 2.0
}}}}</includeonly>
+
| primarycolor    = 39 100
<div id="nh_item" class="infobox" style="box-sizing: border-box; float: right; width:330px; max-width:655px; background-color:#FFDD66; {{roundy|16px}}; padding:.2em .76em .2em .76em; margin-left: 10px; margin-bottom: 10px; text-align:center;">
+
| secondarycolor  = 42 73
<div style="line-height:.45em; padding:7px 0 9px 0;">
+
| title            = {{{name|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}
[[File:{{#switch: {{{category|}}}
+
| 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:{{#switch: {{{category|}}}
 
  | Photos = Residents NH Category Icon.png{{!}}Type of photo
 
  | Photos = Residents NH Category Icon.png{{!}}Type of photo
  | Posters = Residents NH Category Icon.png{{!}}Type of poster
+
  | Posters = Poster NH Category Icon.png{{!}}Type of poster
 
  | All NH Category Icon.png{{!}}Type of item}}|sub|20px|link=]]
 
  | All NH Category Icon.png{{!}}Type of item}}|sub|20px|link=]]
<span style="font-size:1.3em; padding-left:2px;">'''{{{name|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}'''</span>
+
| righticon      = &nbsp;
{{#if:{{{series|}}}{{{set|}}}{{{function1|}}}|<span style{{=}}"display:inline-block; padding-bottom:.8em;"><small>|}}{{#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|}}}|</small></span>|}}</div>
+
 
<div style="min-width: 305px;">
+
| image            = {{#ifexist:File:{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}} {{#if:{{{variation1|}}}|({{{variation1|}}}{{#if:{{{pattern1|}}}| &nbsp;- {{{pattern1|}}}}})}}{{#if:{{{pattern1|}}}|{{#if:{{{variation1|}}}||({{{pattern1|}}})}}}} NH Icon.png|[[File:{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}} {{#if:{{{variation1|}}}|({{{variation1|}}}{{#if:{{{pattern1|}}}| &nbsp;- {{{pattern1|}}}}})}}{{#if:{{{pattern1|}}}|{{#if:{{{variation1|}}}||({{{pattern1|}}})}}}} NH Icon.png|128px|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}]]|[[File:Nia.png|128px|No image available|link=]]}}
<div style="text-align:center; background-color:#fff; {{roundy|16px}}; padding:4px 0 1px 0; align-items:center; display:grid; ">
+
| caption          = {{#if:{{{variation1|}}}|{{#if:{{{pattern1|}}}|{{Colorshow|666|Variation shown: '''{{{variation1|}}}''' ({{{pattern1|}}})}}|{{Colorshow|666|Variation shown: '''{{{variation1|}}}'''}}}}|{{#if:{{{pattern1|}}}|{{Colorshow|666|Pattern shown: '''{{{pattern1|}}}'''}}|}}}}
{{#ifexist:File:{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}} {{#if:{{{variation1|}}}|({{{variation1|}}}{{#if:{{{pattern1|}}}| &nbsp;- {{{pattern1|}}}}})}}{{#if:{{{pattern1|}}}|{{#if:{{{variation1|}}}||({{{pattern1|}}})}}}} NH Icon.png|[[File:{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}} {{#if:{{{variation1|}}}|({{{variation1|}}}{{#if:{{{pattern1|}}}| &nbsp;- {{{pattern1|}}}}})}}{{#if:{{{pattern1|}}}|{{#if:{{{variation1|}}}||({{{pattern1|}}})}}}} NH Icon.png|256px|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}]]|[[File:Nia.png|256px|No image available|link=]]}}<br>{{#if:{{{variation1|}}}|{{#if:{{{pattern1|}}}|<small>{{Colorshow|666|Variation shown: '''{{{variation1|}}}''' ({{{pattern1|}}})}}</small>|<small>{{Colorshow|666|Variation shown: '''{{{variation1|}}}'''}}</small>}}|{{#if:{{{pattern1|}}}|<small>{{Colorshow|666|Pattern shown: '''{{{pattern1|}}}'''}}</small>|}}}}
+
 
</div>
+
| leftlabel        = Buy price
<!-- Height display --><div style="display:inline-block; vertical-align:top; padding-top:7px;">
+
| rightlabel      = Sell price
{{#if: {{{height|}}} | <div style="display:inline-block; padding:12px 18px 0 0;">
+
| leftdata        = {{#if:{{{buy1-price|}}}|{{Currency|{{{buy1-currency|}}}|{{{buy1-price|}}}|short=yes}}|Not for sale}}
<div style="border-bottom:2px dotted #666; position:relative; top:{{#ifexpr: {{{height|17}}} < 15 |{{#expr:(38-(({{{height|3}}}/15)*36))round 0}}|0px}}px; "></div>
+
| rightdata        = {{#if:{{{sell|}}}|{{Currency|Bells|{{{sell|}}}}}|Unknown}}
<div style="padding-top:{{#ifexpr: {{{height|1}}} > 15 |{{#expr:(35-((15/{{{height|3}}})*36))round 0}}|0}}px">[[File:Boy 1 NH Silhouette.png|baseline|x{{#ifexpr: {{{height|1}}} > 15 |{{#expr:((15/{{{height|3}}})*36)round 0}}|36}}px|link=]]<span style="font-size:.7em; position: relative; top: -{{#ifexpr: {{{height|4}}} < 3.75 |12|2}}px;>'''height'''</span></div>
+
 
</div> | }}
+
| leftlabel2      = Height
<!-- Size display --><div style="display:inline-block; vertical-align:top; padding-top:3px; padding-right:3px;">
+
| rightlabel2      = Size
{{Size|{{#sub:{{{grid-size|0.0×0.0}}}|0|3}}|{{#sub:{{{grid-size|0.0×0.0}}}|4}}}}
+
| leftdata2        = {{#if:{{{category|}}}|<div style="border-bottom:2px dotted #666; position:relative; top:{{#ifexpr: {{#switch:{{{category|}}}|Photos = 5.02557|Posters = 9.9}} < 15 |{{#expr:(38-(({{#switch:{{{category|}}}|Photos = 5.02557|Posters = 9.9}}/15)*36))round 0}}|0px}}px; "></div>
</div>
+
<div style="padding-top:{{#ifexpr: {{#switch:{{{category|}}}|Photos = 5.02557|Posters = 9.9}} > 15 |{{#expr:(35-((15/{{#switch:{{{category|}}}|Photos = 5.02557|Posters = 9.9}})*36))round 0}}|0}}px">[[File:Boy 1 NH Silhouette.png|baseline|x{{#ifexpr: {{#switch:{{{category|}}}|Photos = 5.02557|Posters = 9.9}} > 15 |{{#expr:((15/{{#switch:{{{category|}}}|Photos = 5.02557|Posters = 9.9}})*36)round 0}}|36}}px|link=]]</div>}}
<div style="display:inline-block; vertical-align:top; line-height:1.55em; padding-right:14px; text-align:left;">
+
| rightdata2      = <div style="font-size:.9em; padding:3px 0px;">{{Size|{{#sub:{{{grid-size|0.0×0.0}}}|0|3}}|{{#sub:{{{grid-size|0.0×0.0}}}|4}}}}{{#sub:{{{grid-size|0.0×0.0}}}|0|3}}&nbsp;×&nbsp;{{#sub:{{{grid-size|0.0×0.0}}}|4}}</div>
<span style="font-size:.9em;">'''Size:'''<br>{{#sub:{{{grid-size|0.0×0.0}}}|0|3}}&nbsp;×&nbsp;{{#sub:{{{grid-size|0.0×0.0}}}|4}}</span>
+
 
</div>
+
| widelabel        = Size
</div>
+
| widedata        = {{#if:{{{category|}}}||<div style="font-size:.9em; padding:3px 0px;">{{Size|{{#sub:{{{grid-size|0.0×0.0}}}|0|3}}|{{#sub:{{{grid-size|0.0×0.0}}}|4}}}}{{#sub:{{{grid-size|0.0×0.0}}}|0|3}}&nbsp;×&nbsp;{{#sub:{{{grid-size|0.0×0.0}}}|4}}</div>}}
<!-- Buy/Sell display --><div style="display:inline-block; vertical-align:top; text-align:left; padding-top:5px;">
+
 
<span style="font-size:.9em;">'''Buy:'''&nbsp;{{#if:{{{buy1-price|}}}|{{Currency|{{{buy1-currency|}}}|{{{buy1-price|}}}|short=yes}}|Not for sale}}<br>'''Sell:'''&nbsp;{{#if:{{{sell|}}}|{{Currency|Bells|{{{sell|}}}}}|Unknown}}</span>
+
| label            = Obtain via
</div>
+
| data            = {{Availability|{{{availability1|}}}|note={{{availability1-note|}}}}}{{#if:{{{availability2|}}}|{{Availability|{{{availability2|}}}|note={{{availability2-note|}}}}}}}
<hr class="nh_item-divider" />
+
 
<!-- Obtain From --><div style="width:100%; display:inline-block; text-align: left; vertical-align:top;">
+
 
<span style="font-size:.9em;">'''Obtain from:'''</span><br>
+
| label2          = Customize
{{Availability|{{{availability1|}}}|nb={{#if:{{{availability2|}}}|{{#ifexpr:{{#expr:{{#len:{{{availability1|}}}}}+{{#len:{{{availability1-note|}}}}}+{{#len:{{{availability2|}}}}}+{{#len:{{{availability2-note|}}}}}}}<32|nb=true|}}|true}}|note={{{availability1-note|}}}}}{{#if:{{{availability2|}}}|, {{Availability|{{{availability2|}}}|nb=true|note={{{availability2-note|}}}}}}}
+
| data2            = {{#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|}}|No customization options.}}{{#if:{{{custom-pattern-part|}}}{{{custom-body-part|}}}|{{#if:{{{cyrus-price|}}}||[[Category:New Horizons items with missing Cyrus price parameters]]}}}}
</div>
+
 
{{#switch:Crafting|{{{availability1|}}}|{{{availability2|}}}=
+
| label3          = HHA points
<div style{{=}}"text-align:left;">
+
| data3            = {{#switch: {{{category|}}}
<hr class="nh_item-divider" />
+
| Photos = 351
<!-- Recipe --><div style{{=}}"width:100%; vertical-align:top; display:inline-block; padding:0px 0px 5px 0px;">
+
| Posters = 251}}
<span style="font-size:.9em;">'''Recipe:'''{{#if:{{{diy-availability1|}}}|&nbsp;Obtained from</span> {{Availability|{{{diy-availability1|}}}|nb=false|size=sub{{!}}18px|note={{{diy-availability1-note|}}}}}}}{{#if:{{{diy-availability2|}}}|, {{Availability|{{{diy-availability2|}}}|nb=false|size=sub{{!}}18px|note={{{diy-availability2-note|}}}}}}}{{#if:{{{diy-availability3|}}}|, {{Availability|{{{diy-availability3|}}}|nb=false|size=sub{{!}}18px|note={{{diy-availability3-note|}}}}}}}<br>
+
 
<span style="display:inline-block; max-width:335px; font-size:.9em;">
+
| {{#if:{{{variation1|}}}{{{pattern1|}}}|NULL}}label4 = Colors
{{Material|{{{mat1|}}}|{{{mat1-num|}}}|nb=true}}{{#if:{{{mat2|}}}|<span style="padding-left:1.2em;"></span>{{Material|{{{mat2|}}}|{{{mat2-num|}}}|nb=true}}}}{{#if:{{{mat3|}}}|<span style="padding-left:1.2em;"></span>{{Material|{{{mat3|}}}|{{{mat3-num|}}}|nb=true}}}}{{#if:{{{mat4|}}}|<span style="padding-left:1.2em;"></span>{{Material|{{{mat4|}}}|{{{mat4-num|}}}|nb=true}}}}{{#if:{{{mat5|}}}|<span style="padding-left:1.2em;"></span>{{Material|{{{mat5|}}}|{{{mat5-num|}}}|nb=true}}}}{{#if:{{{mat6|}}}|<span style="padding-left:1.2em;"></span>{{Material|{{{mat6|}}}|{{{mat6-num|}}}|nb=true}}}}</span>
+
| {{#if:{{{variation1|}}}{{{pattern1|}}}|NULL}}data4  = <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>
</div>
+
 
</div>}}<!-- Closing #switch:Crafting -->
+
| widebottomlabel  = Variations
{{#if:{{{theme1|}}}{{{style|}}}{{#if:{{{color1|}}}|{{#if:{{{variation1|}}}{{{pattern1|}}}||true}}}}|<hr class="nh_item-divider" /><div style="text-align:left; width:100%; padding:0 0 3px 0;">
+
| widebottomdata  = <div class="nh_item-flex-container" style="position:relative; text-align:center;">
{{#if:{{{theme1|}}}{{{theme2|}}}| <div style="display:inline-block;">
+
{{#if:{{{variation1|}}} |  
<span style="font-size:.9em;">'''Theme(s):'''<br>
 
{{{theme1|Unknown}}}{{#if:{{{theme2|}}}|&nbsp;/&nbsp;{{{theme2|}}}}}</span>
 
</div>}}{{#if:{{{style|}}}| <div style="display:inline-block;">
 
<span style="font-size:.9em;">'''Style:'''<br>
 
{{{style|Unknown}}}</span>
 
</div>}}{{#if:{{{variation1|}}}{{{pattern1|}}}||<div style="display:inline-block; {{#if:{{{theme1|}}}{{{style|}}}|padding-left:20px;}}">
 
<span style="font-size:.9em;">&nbsp;'''Colors:'''</span><br><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>
 
</div>}}
 
</div>}}<hr class="nh_item-divider" />
 
<!-- Customizable --> <div style="text-align:left;">
 
<div style="vertical-align:top; display:inline-block;">
 
<span style="font-size:.9em;">'''Customization:'''{{#ifeq:{{{customizable|}}}|Yes|<br>[[File:Customization Kit NH Inv Icon.png|22px|link=|Remake kit]] {{{custom-kits|}}} kit{{#ifexpr:{{{custom-kits|}}} > 1|s|}}<span style="padding-left:.8em;"></span>'''{{Colorshow|dcab00|–}}'''<span style="padding-left:.6em;"></span>[[File:Painting Set PC Icon.png|25px|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:{{{pattern1|}}}|<span style="padding-left:1em;"></span>[[File:Design WW Icon.png|17px|link=|Patterns]]&nbsp;{{#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</span>}}|<br>No customization options.</span>}}
 
</div>
 
</div>
 
{{#if:{{{variation1|}}}|
 
<hr class="nh_item-divider" />
 
<div style="text-align: left;">
 
<span style="font-size:.9em; line-height:0em;">'''Variations:'''</span>
 
<div class="nh_item-flex-container" style="position:relative; top:-10px; text-align:center;">
 
 
{{#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:{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}} ({{{variation{{#var: key }}|}}} - {{{pattern1|}}}) NH Icon.png|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}} ({{{variation{{#var: key }}|}}} - {{{pattern1|}}}) NH Icon.png|Nia.png}}|{{#ifexist:File:{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}} ({{{variation{{#var: key }}|}}}) NH Icon.png|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}} ({{{variation{{#var: key }}|}}}) NH Icon.png|Nia.png}}}}}}|36px|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}'s {{{variation{{#var: key }}|}}} variant]]</div><br>
+
[[File:{{#if:{{{var{{#var: key }}-img|}}}|{{#ifexist:File:{{{var{{#var: key }}-img|}}}|{{{var{{#var: key }}-img|}}}|Nia.png}}|{{#if:{{{pattern1|}}}|{{#ifexist:File:{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}} ({{{variation{{#var: key }}|}}} - {{{pattern1|}}}) NH Icon.png|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}} ({{{variation{{#var: key }}|}}} - {{{pattern1|}}}) NH Icon.png|Nia.png}}|{{#ifexist:File:{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}} ({{{variation{{#var: key }}|}}}) NH Icon.png|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}} ({{{variation{{#var: key }}|}}}) NH Icon.png|Nia.png}}}}}}|36px|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}'s {{{variation{{#var: key }}|}}} variant]]</div></div>}}</div>
</div>}}
+
| <div style="width:100%; text-align: center;">None</div> }}
</div>
+
 
}}</div>
+
| widebottomlabel2 = Notes
{{#if:{{{pattern1|}}}|
+
| widebottomdata2  = {{{notes|}}}
<hr class="nh_item-divider" />
+
 
<div style="text-align:left; padding:1px 0 0 0;">
+
| languages        = Names
<span style="font-size:.9em;">'''Patterns:'''</span>
+
| ja-name          = {{{ja-name|}}}
<div style="position:relative; top:-8px; text-align:left; line-height:16px;">
+
| ko-name          = {{{ko-name|}}}
{{#forargs: pattern | key | value |  
+
| zh-name          = {{{zh-name|}}}
<div style="text-align:center; display:inline-block; margin:0 11px 0 11px;">
+
| zht-name        = {{{zht-name|{{{zh-name|}}}}}}
[[File:{{#if:{{{pat{{#var: key }}-img|}}}|{{#ifexist:File:{{{pat{{#var: key }}-img|}}}|{{{pat{{#var: key }}-img|}}}|Nia.png}}|{{#ifexist:File:{{{name|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}} NH Pattern {{#expr: {{#var: key }} - 1}}.png|{{{name|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}} NH Pattern {{#expr: {{#var: key }} - 1}}.png|Nia.png}}}}|70px|{{{name|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}} with the {{{pattern{{#var: key }}|}}} pattern applied.]]<br>
+
| fr-name          = {{{fr-name||}}}
<small>{{{pattern{{#var: key }}|Unknown}}}</small>
+
| frq-name        = {{{frq-name|{{{fr-name||}}}}}}
</div>
+
| es-name          = {{{es-name|}}}
}}
+
| esl-name        = {{{esl-name|{{{es-name|}}}}}}
</div>
+
| it-name          = {{{it-name|}}}
</div>}}
+
| de-name          = {{{de-name|}}}
<hr class="nh_item-divider" />
+
| nl-name          = {{{nl-name|}}}
<div>
+
| ru-name          = {{{ru-name|}}}
{{Translation
+
| ja-note          = {{#if:{{{ja-name-r|}}}|{{{ja-name-r|}}}|}}
| color      = dcab00
+
| zh-note          = {{#if:{{{zh-name-r|}}}|{{{zh-name-r|}}}|}}
| max-length = {{{max-length|30}}}
+
| zht-note        = {{#if:{{{zht-name-r|}}}|{{{zht-name-r|}}}|{{#if:{{{zh-name-r|}}}|{{{zh-name-r|}}}|}}}}
| ja-name    = {{{ja-name|}}}
+
| ko-note          = {{#if:{{{ko-name-r|}}}|{{{ko-name-r|}}}|}}
| ko-name    = {{{ko-name|}}}
+
| ru-note          = {{#if:{{{ru-name-r|}}}|{{{ru-name-r|}}}|}}
| zh-name    = {{{zh-name|}}}
 
| zht-name  = {{{zht-name|}}}
 
| fr-name    = {{{fr-name|}}}
 
| frq-name  = {{{frq-name|}}}
 
| es-name    = {{{es-name|}}}
 
| esl-name  = {{{esl-name|}}}
 
| it-name    = {{{it-name|}}}
 
| de-name    = {{{de-name|}}}
 
| nl-name    = {{{nl-name|}}}
 
| ru-name    = {{{ru-name|}}}
 
 
}}
 
}}
</div>
+
<includeonly>
{{#if:{{{notes|}}}|
 
<hr class="nh_item-divider" />
 
<div style="text-align:left;">
 
<div style="vertical-align:top; display:inline-block; line-height:1.3em;">
 
<span style="font-size:.9em;">'''Notes:'''<br>
 
{{#if:{{{notes|}}}|•&nbsp;{{{notes|}}}|}}
 
</span>
 
</div>|}}
 
</div>
 
</div>
 
</div><includeonly>
 
 
{{#ifeq:{{NAMESPACE}}|Item|[[Category:New Horizons {{#switch: {{{category|}}}
 
{{#ifeq:{{NAMESPACE}}|Item|[[Category:New Horizons {{#switch: {{{category|}}}
 
  | Photos = photos
 
  | Photos = photos
 
  | Posters = posters
 
  | Posters = posters
  | {{{category|}}}}}]]{{#if: {{{series|}}} | [[Category:{{{series|}}} Series]]}}{{#if: {{{set|}}} | [[Category:{{{set|}}} Set]]}}{{#if: {{{availability1|}}} | [[Category:Acquired from {{#ifeq:{{{availability1|}}}|Crafting|crafting|{{{availability1|}}}}}]]}}{{#if: {{{availability2|}}} | [[Category:Acquired from {{#ifeq:{{{availability2|}}}|Crafting|crafting|{{{availability2|}}}}}]]}}|}}</includeonly><noinclude>{{clear}}<br>{{Documentation}}</noinclude>
+
  | {{{category|}}}}}]][[Category:New Horizons items introduced in {{{version-added|}}}]]{{#if: {{{series|}}} | [[Category:{{{series|}}} Series]]}}{{#if: {{{set|}}} | [[Category:{{{set|}}} Set]]}}{{#if: {{{availability1|}}} | [[Category:Acquired from {{#ifeq:{{{availability1|}}}|Crafting|crafting|{{{availability1|}}}}}]]}}{{#if: {{{availability2|}}} | [[Category:Acquired from {{#ifeq:{{{availability2|}}}|Crafting|crafting|{{{availability2|}}}}}]]}}|}}</includeonly><noinclude>{{clear}}<br>{{Documentation}}[[Category:Cargo templates]]</noinclude>

Revision as of 11:00, May 13, 2022

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

Type of item NHPhoto  
No image available
Buy price Sell price
Not for sale Unknown
Size
0.0 x 0.0 0.0 × 0.0
Obtain via
Customize No customization options.
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:NHPhoto exists. Create it.