Difference between revisions of "Template:NHPhoto"

From Nookipedia, the Animal Crossing wiki
m (Text replacement - " | languages = Name" to " | languages = Names")
(19 intermediate revisions by 4 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 26: Line 29:
 
|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}}{{#if: {{{mat1|}}} | {{NHRecipe/CargoAttach}}}}{{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|}}}
Line 57: Line 63:
 
|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_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
 
_table=nh_photo_variation
 
|identifier = {{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}
 
|identifier = {{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}
Line 76: Line 89:
 
|image_url = {{filepath:{{{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|}}}
Line 85: Line 99:
 
|image_url = {{filepath:{{{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>
 
{{Infobox 2.0
 
 
  | primarycolor    = 39 100
 
  | primarycolor    = 39 100
 
  | secondarycolor  = 42 73
 
  | secondarycolor  = 42 73
Line 103: Line 116:
 
  | caption          = {{#if:{{{variation1|}}}|{{#if:{{{pattern1|}}}|{{Colorshow|666|Variation shown: '''{{{variation1|}}}''' ({{{pattern1|}}})}}|{{Colorshow|666|Variation shown: '''{{{variation1|}}}'''}}}}|{{#if:{{{pattern1|}}}|{{Colorshow|666|Pattern shown: '''{{{pattern1|}}}'''}}|}}}}
 
  | caption          = {{#if:{{{variation1|}}}|{{#if:{{{pattern1|}}}|{{Colorshow|666|Variation shown: '''{{{variation1|}}}''' ({{{pattern1|}}})}}|{{Colorshow|666|Variation shown: '''{{{variation1|}}}'''}}}}|{{#if:{{{pattern1|}}}|{{Colorshow|666|Pattern shown: '''{{{pattern1|}}}'''}}|}}}}
  
  | leftlabel        = Buy Price
+
  | leftlabel        = Buy price
  | rightlabel      = Sell Price
+
  | rightlabel      = Sell price
 
  | leftdata        = {{#if:{{{buy1-price|}}}|{{Currency|{{{buy1-currency|}}}|{{{buy1-price|}}}|short=yes}}|Not for sale}}
 
  | leftdata        = {{#if:{{{buy1-price|}}}|{{Currency|{{{buy1-currency|}}}|{{{buy1-price|}}}|short=yes}}|Not for sale}}
 
  | rightdata        = {{#if:{{{sell|}}}|{{Currency|Bells|{{{sell|}}}}}|Unknown}}
 
  | rightdata        = {{#if:{{{sell|}}}|{{Currency|Bells|{{{sell|}}}}}|Unknown}}
 +
 +
| leftlabel2      = Height
 +
| rightlabel2      = Size
 +
| 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 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>}}
 +
| 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>
  
 
  | widelabel        = Size
 
  | widelabel        = Size
  | widedata        = <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>
+
  | 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>}}
  
 
  | label            = Obtain via
 
  | label            = Obtain via
 
  | data            = {{Availability|{{{availability1|}}}|note={{{availability1-note|}}}}}{{#if:{{{availability2|}}}|{{Availability|{{{availability2|}}}|note={{{availability2-note|}}}}}}}
 
  | data            = {{Availability|{{{availability1|}}}|note={{{availability1-note|}}}}}{{#if:{{{availability2|}}}|{{Availability|{{{availability2|}}}|note={{{availability2-note|}}}}}}}
 +
  
 
  | label2          = Customize
 
  | label2          = Customize
  | data2            = {{#ifeq:{{{customizable|}}}|Yes|[[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}}|No customization options.}}
+
  | 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]]}}}}
 +
 
 +
| label3          = HHA points
 +
| data3            = {{#switch: {{{category|}}}
 +
| Photos = 351
 +
| Posters = 251}}
  
  | {{#if:{{{variation1|}}}{{{pattern1|}}}|NULL}}label5 = Colors
+
  | {{#if:{{{variation1|}}}{{{pattern1|}}}|NULL}}label4 = Colors
  | {{#if:{{{variation1|}}}{{{pattern1|}}}|NULL}}data5 = <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}}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>
  
 
  | widebottomlabel  = Variations
 
  | widebottomlabel  = Variations
Line 131: Line 156:
 
  | widebottomdata2  = {{{notes|}}}
 
  | widebottomdata2  = {{{notes|}}}
  
  | languages        = Name
+
  | languages        = Names
 
  | ja-name          = {{{ja-name|}}}
 
  | ja-name          = {{{ja-name|}}}
 
  | ko-name          = {{{ko-name|}}}
 
  | ko-name          = {{{ko-name|}}}
Line 154: Line 179:
 
  | Photos = photos
 
  | Photos = photos
 
  | Posters = posters
 
  | Posters = posters
  | {{{category|}}}}}|{{#ifeq:{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}|Étoile's Photo|Etoile's Photo}}]][[Category:New Horizons items introduced in {{{version-added|}}}|{{#ifeq:{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}|Étoile's Photo|Etoile's Photo}}]]{{#if: {{{series|}}} | [[Category:{{{series|}}} Series]]}}{{#if: {{{set|}}} | [[Category:{{{set|}}} Set]]}}{{#if: {{{availability1|}}} | [[Category:Acquired from {{#ifeq:{{{availability1|}}}|Crafting|crafting|{{{availability1|}}}}}|{{#ifeq:{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}|Étoile's Photo|Etoile's Photo}}]]}}{{#if: {{{availability2|}}} | [[Category:Acquired from {{#ifeq:{{{availability2|}}}|Crafting|crafting|{{{availability2|}}}}}|{{#ifeq:{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}|Étoile's Photo|Etoile's Photo}}]]}}|}}</includeonly><noinclude>{{clear}}<br>{{Documentation}}[[Category:Cargo templates]]</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.