Difference between revisions of "Template:NHPhoto"
From Nookipedia, the Animal Crossing wiki
m (Adding template category.) |
(Updating to Infobox 2.0) |
||
Line 87: | Line 87: | ||
}} | }} | ||
}}}}</includeonly> | }}}}</includeonly> | ||
− | < | + | {{Infobox 2.0 |
− | + | | primarycolor = 39 100 | |
− | [[File:{{#switch: {{{category|}}} | + | | secondarycolor = 42 73 |
+ | | title = {{{name|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}} | ||
+ | | subtitleabove = {{#if:{{{series|}}}{{{set|}}}{{{function1|}}}|<span style{{=}}"display:inline-block;">|}}{{#if:{{{series|}}}|[[{{{series-link|{{{series|}}}}}} Series|{{{series|}}} Series]]|}}{{#if:{{{set|}}}|{{#if:{{{series|}}}|, |}}[[{{{set-link|{{{set|}}}}}} Set|{{{set|}}} Set]]|}}{{#if:{{{function1|}}}|{{#if:{{{series|}}}{{{set|}}}| {{Colorshow|dcab00|'''{{!}}'''}} }}{{{function1|}}}{{#if:{{{function2|}}}|, {{{function2|}}}}}{{#if:{{{function3|}}}|, {{{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 = 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=]] | ||
− | + | | righticon = | |
− | + | ||
− | + | | image = {{#ifexist:File:{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}} {{#if:{{{variation1|}}}|({{{variation1|}}}{{#if:{{{pattern1|}}}| - {{{pattern1|}}}}})}}{{#if:{{{pattern1|}}}|{{#if:{{{variation1|}}}||({{{pattern1|}}})}}}} NH Icon.png|[[File:{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}} {{#if:{{{variation1|}}}|({{{variation1|}}}{{#if:{{{pattern1|}}}| - {{{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=]]}} | |
− | + | | 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 | |
− | + | | rightlabel = Sell Price | |
− | {{ | + | | leftdata = {{#if:{{{buy1-price|}}}|{{Currency|{{{buy1-currency|}}}|{{{buy1-price|}}}|short=yes}}|Not for sale}} |
− | + | | rightdata = {{#if:{{{sell|}}}|{{Currency|Bells|{{{sell|}}}}}|Unknown}} | |
− | + | ||
− | + | | 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}} × {{#sub:{{{grid-size|0.0×0.0}}}|4}}</div> | |
− | + | ||
− | + | | label = Obtain via | |
− | + | | data = {{Availability|{{{availability1|}}}|note={{{availability1-note|}}}}}{{#ifeq:{{{availability1|}}}|Crafting|{{#if:{{{diy-availability1|}}}|<span style="font-size:.9em;"> (recipe from </span>{{Availability|nb=true|{{{diy-availability1|}}}|size=sub{{!}}18px|note={{{diy-availability1-note|}}}}}{{#if:{{{diy-availability2|}}}|, {{Availability|nb=true|{{{diy-availability2|}}}|size=sub{{!}}18px|note={{{diy-availability2-note|}}}}}}}{{#if:{{{diy-availability3|}}}|, {{Availability|nb=true|{{{diy-availability3|}}}|size=sub{{!}}18px|note={{{diy-availability3-note|}}}}}}}<span style="font-size:.9em;">)</span>}}}}{{#if:{{{availability2|}}}|{{Availability|{{{availability2|}}}|note={{{availability2-note|}}}}}}}{{#ifeq:{{{availability2|}}}|Crafting|{{#if:{{{diy-availability1|}}}|<span style="font-size:.9em;"> (recipe from </span>{{Availability|nb=true|{{{diy-availability1|}}}|size=sub{{!}}18px|note={{{diy-availability1-note|}}}}}{{#if:{{{diy-availability2|}}}|, {{Availability|nb=true|{{{diy-availability2|}}}|size=sub{{!}}18px|note={{{diy-availability2-note|}}}}}}}{{#if:{{{diy-availability3|}}}|, {{Availability|nb=true|{{{diy-availability3|}}}|size=sub{{!}}18px|note={{{diy-availability3-note|}}}}}}}<span style="font-size:.9em;">)</span>}}}} | |
− | <span | + | |
− | </ | + | | 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}}}} variations{{#if:{{{pattern1|}}}|<span style="padding-left:1em;"></span>[[File:Design WW Icon.png|17px|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</span>}}|No customization options.</span>}} |
− | + | ||
− | <span | + | | {{#if:{{{variation1|}}}{{{pattern1|}}}|NULL}}label5 = Colors |
− | + | | {{#if:{{{variation1|}}}{{{pattern1|}}}|NULL}}data5 = <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 | |
− | <span style=" | + | | widebottomdata = <div class="nh_item-flex-container" style="position:relative; text-align:center;"> |
− | + | {{#if:{{{variation1|}}} | | |
− | </ | ||
− | {{# | ||
− | <div style | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{{#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> | + | [[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> | + | |
− | + | | widebottomlabel2 = Notes | |
− | + | | widebottomdata2 = {{{notes|}}} | |
− | + | ||
− | <div style="text-align: | + | | languages = Name |
− | + | | 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-note = {{#if:{{{ja-name-r|}}}|{{{ja-name-r|}}}|}} | ||
+ | | zh-note = {{#if:{{{zh-name-r|}}}|{{{zh-name-r|}}}|}} | ||
+ | | 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 {{#ifeq:{{{availability1|}}}|Crafting|crafting|{{{availability1|}}}}}]]}}{{#if: {{{availability2|}}} | [[Category:Acquired from {{#ifeq:{{{availability2|}}}|Crafting|crafting|{{{availability2|}}}}}]]}}|}}</includeonly><noinclude>{{clear}}<br>{{Documentation}}[[Category:Cargo templates]]</noinclude> | | {{{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}}[[Category:Cargo templates]]</noinclude> |
Revision as of 02:21, September 14, 2020
This template defines the table "nh_photo". View table.
| ||||||||
Buy Price | Sell Price | |||||||
---|---|---|---|---|---|---|---|---|
Not for sale | Unknown | |||||||
Size | ||||||||
0.0 × 0.0
| ||||||||
Obtain via | ||||||||
Customize | No customization options. | |||||||
Colors | Unknown
Unknown
| |||||||
Variations | ||||||||
None
| ||||||||
Name in other languages
Unknown
Unknown Unknown Unknown
Unknown
Unknown Unknown Unknown
Unknown Unknown Unknown Unknown |
No documentation for Template:NHPhoto exists. Create it.