Difference between revisions of "Template:NHPhoto"
From Nookipedia, the Animal Crossing wiki
m |
PanchamBro (talk | contribs) (Adding texture option in the infobox (will need to be filled)) |
||
(44 intermediate revisions by 8 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 | ||
+ | |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 23: | ||
|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 30: | ||
|interactable = Boolean | |interactable = Boolean | ||
|version_added = String | |version_added = String | ||
− | | | + | |unlocked = Boolean |
|notes = String | |notes = String | ||
− | }}</noinclude><includeonly>{{DISPLAYTITLE:{{SUBPAGENAME}}}}{{#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}}{{NHIdentifier/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|{{ | + | |identifier = {{{identifier|}}} |
− | | | + | |en_name = {{{name|}}} |
+ | |filename = {{{filename|}}} | ||
+ | |internal_ID = {{{ID|}}} | ||
+ | |catalog_num = {{{num|}}} | ||
+ | |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 53: | ||
|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 = {{#switch:{{{category|}}}|Photos = 5.02557|Posters = 9.9}} |
|interactable = {{{interactable|}}} | |interactable = {{{interactable|}}} | ||
|version_added = {{{version-added|}}} | |version_added = {{{version-added|}}} | ||
− | | | + | |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= | + | _table=nh_language_name |
− | |identifier = {{{identifier| | + | |identifier = {{{identifier|}}} |
− | |en_name = {{{name| | + | |en_name = {{{name|}}} |
+ | |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 83: | ||
|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 for identifiers -->{{#cargo_store: |
− | + | _table=nh_identifier | |
− | | | + | |identifier = {{{identifier|}}} |
− | |en_name = {{{name|{{{ | + | |en_name = {{{name|}}} |
− | | | + | |category = {{#switch: {{{category|}}}|Photos = Photo|Posters = Poster}} |
+ | }}{{#if: {{{variation1|}}} | {{#forargs: variation | key | value | <!-- Cargo Store for variations --> {{#seo:|image={{filepath:{{{image|{{#invoke:TitleCase|main|{{{name|}}}}} ({{#invoke:TitleCase|main|{{{variation1|}}}}}) NH Icon.png}}}}}}}{{#cargo_store: | ||
+ | _table=nh_photo_variation | ||
+ | |identifier = {{{identifier|}}} | ||
+ | |en_name = {{{name|}}} | ||
+ | |image = {{{image|{{#invoke:TitleCase|main|{{{name|}}}}} ({{#invoke:TitleCase|main|{{{variation{{#var: key }}|}}}}}) NH Icon.png}}} | ||
+ | |image_url = {{filepath:{{{image|{{#invoke:TitleCase|main|{{{name|}}}}} ({{#invoke:TitleCase|main|{{{variation{{#var: key }}|}}}}}) NH Icon.png}}}}} | ||
+ | |texture = {{{texture|}}} | ||
|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 for sole item (no variations) -->{{#seo:|image={{filepath:{{{image|{{#invoke:TitleCase|main|{{{name|}}}}} NH Icon.png}}}}}}}{{#cargo_store: |
− | + | _table=nh_photo_variation | |
− | | | + | |identifier = {{{identifier|}}} |
− | |en_name = {{{name|{{{ | + | |en_name = {{{name|}}} |
− | | | + | |image = {{{image|{{#invoke:TitleCase|main|{{{name|}}}}} NH Icon.png}}} |
+ | |image_url = {{filepath:{{{image|{{#invoke:TitleCase|main|{{{name|}}}}} NH Icon.png}}}}} | ||
|variation = | |variation = | ||
+ | |variation_number = 1 | ||
|color1 = {{{color1|}}} | |color1 = {{{color1|}}} | ||
|color2 = {{{color2|}}} | |color2 = {{{color2|}}} | ||
− | }} | + | }}}}}}</includeonly>{{Infobox 2.0 |
− | }}}}</includeonly> | + | | colorclass = color-series |
− | + | | primarycolor = 39 100 | |
− | + | | secondarycolor = 42 73 | |
− | [[File:{{#switch: {{{category|}}} | + | | title = {{{title|{{#invoke:SentenceCase|main|{{{name|}}}}}}}} |
+ | | lefticon = [[File:Furniture NH Inv Icon.png|sub|32px|link=Photo]] | ||
+ | | righticon = [[File:{{#switch: {{{category|}}} | ||
| Photos = Residents NH Category Icon.png{{!}}Type of photo | | Photos = Residents NH Category Icon.png{{!}}Type of photo | ||
| Posters = Poster 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=]]{{#if:{{{num|}}}| '''<nowiki>#</nowiki>{{#invoke:formatnum|main|lang=en|{{{num|}}}}}'''}} |
− | + | ||
− | {{# | + | | image = {{TabStart}} |
− | + | {{TabHeader|Icon}} | |
− | <div style=" | + | {{#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=]]}} |
− | {{# | + | {{TabHeader|Texture}} |
− | + | [[File:{{{texture|}}}|128px|Texture of {{{name|}}}]] | |
− | + | {{TabEnd}} | |
− | {{ | + | | caption = {{#if:{{{variation1|}}}|{{Colorshow|666|Variation shown: '''{{{variation1|}}}'''}}}} |
− | + | ||
− | + | | leftlabel = Buy price | |
− | + | | rightlabel = Sell price | |
− | + | | leftdata = {{#if:{{{buy1-price|}}}|{{Currency|{{{buy1-currency|}}}|{{{buy1-price|}}}|short=yes}}|Not for sale}} | |
− | + | | 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}} × {{#sub:{{{grid-size|0.0×0.0}}}|4}}</div> | |
− | + | ||
− | + | | widelabel = Size | |
− | + | | 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}} × {{#sub:{{{grid-size|0.0×0.0}}}|4}}</div>}} | |
− | + | ||
− | + | | label = Obtain via | |
− | + | | data = {{Availability|{{{availability1|}}}|note={{{availability1-note|}}}}}{{#if:{{{availability2|}}}|{{Availability|{{{availability2|}}}|note={{{availability2-note|}}}}}}} | |
− | </div> | + | |
− | {{# | + | |
− | + | | label2 = Customize | |
− | < | + | | data2 = {{#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|}}|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}}label4 = Colors | |
− | + | | {{#if:{{{variation1|}}}{{{pattern1|}}}|NULL}}data4 = <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 = 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|}}} | | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{{#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>}} | + | | <div style="width:100%; text-align: center;">None</div> }} |
− | </div> | + | |
− | + | | widebottomlabel3 = Notes | |
− | { | + | | widebottomdata3 = {{{notes|}}} |
− | + | ||
− | + | | widebottomlabel4 = In other games | |
− | + | | widebottomdata4 = {{#cargo_query:tables=pg_furniture|fields=CONCAT("[[Item:", pg_furniture.en_name, " (Animal Crossing)|''Animal Crossing'' (", pg_furniture.en_name, ")]]<br />")|where=pg_furniture.identifier="{{{identifier|}}}"|delimiter=|default=}}{{#cargo_query:tables=nl_photo|fields=CONCAT("[[Item:", nl_photo.en_name, " (New Leaf)|''New Leaf'' (", nl_photo.en_name, ")]]<br />")|where=nl_photo.identifier="{{{identifier|}}}"|delimiter=|default=}} | |
− | + | ||
− | {{# | + | | languages = Names |
− | + | | ja-name = {{{ja-name|}}} | |
− | + | | ko-name = {{{ko-name|}}} | |
− | + | | zh-name = {{{zh-name|}}} | |
− | + | | zht-name = {{{zht-name|{{{zh-name|}}}}}} | |
− | + | | fr-name = {{{fr-name||}}} | |
− | + | | frq-name = {{{frq-name|{{{fr-name||}}}}}} | |
− | + | | es-name = {{{es-name|}}} | |
− | + | | esl-name = {{{esl-name|{{{es-name|}}}}}} | |
− | + | | it-name = {{{it-name|}}} | |
− | {{ | + | | de-name = {{{de-name|}}} |
− | | | + | | nl-name = {{{nl-name|}}} |
− | | | + | | ru-name = {{{ru-name|}}} |
− | | ja- | + | | ja-note = {{#if:{{{ja-name-r|}}}|{{{ja-name-r|}}}|}} |
− | | | + | | zh-note = {{#if:{{{zh-name-r|}}}|{{{zh-name-r|}}}|}} |
− | | zh- | + | | zht-note = {{#if:{{{zht-name-r|}}}|{{{zht-name-r|}}}|{{#if:{{{zh-name-r|}}}|{{{zh-name-r|}}}|}}}} |
− | | | + | | ko-note = {{#if:{{{ko-name-r|}}}|{{{ko-name-r|}}}|}} |
− | | | + | | ru-note = {{#if:{{{ru-name-r|}}}|{{{ru-name-r|}}}|}} |
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
}} | }} | ||
− | + | <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 | + | | {{{category|}}}}}]][[Category:New Horizons items introduced in {{{version-added|}}}]]{{#if: {{{series|}}} | [[Category:{{{series|}}} Series]]}}{{#if: {{{set|}}} | [[Category:{{{set|}}} Set]]}}{{#if: {{{availability1|}}} | [[Category:Acquired from {{{availability1|}}}]]}}{{#if: {{{availability2|}}} | [[Category:Acquired from {{{availability2|}}}]]}}|}}</includeonly><noinclude>{{clear}}<br>{{Documentation}}[[Category:Cargo templates]][[Category:Item infoboxes]]</noinclude> |
Latest revision as of 08:01, September 4, 2024
This template defines the table "nh_photo". View table.
No documentation for Template:NHPhoto exists. Create it.