Difference between revisions of "Template:NHPhoto"
From Nookipedia, the Animal Crossing wiki
PanchamBro (talk | contribs) (removing incorrect category) |
PanchamBro (talk | contribs) (adding height to posters/photos using switch statements) |
||
Line 52: | Line 52: | ||
|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|}}} | ||
Line 117: | Line 117: | ||
| 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}} × {{#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}} × {{#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}} × {{#sub:{{{grid-size|0.0×0.0}}}|4}}</div>}} |
| label = Obtain via | | label = Obtain via |
Revision as of 03:41, December 24, 2021
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.