Difference between revisions of "Template:Infobox Town"

From Nookipedia, the Animal Crossing wiki
(Implementing photo option. Shares image size value with map size value.)
Line 20: Line 20:
 
  | label4        = Native fruit
 
  | label4        = Native fruit
 
  | data4          = {{#if:{{{nativefruit|}}}|{{#switch:{{{nativefruit|Apples}}}| Apples = [[File:Fruit Apple NH Icon.png|20px|link=]] Apples | Pears = [[File:Fruit Pear NH Icon.png|20px|link=]] Pears | Cherries = [[File:Fruit Cherry NH Icon.png|20px|link=]] Cherries | Oranges = [[File:Fruit Orange NH Icon.png|20px|link=]] Oranges | Peaches = [[File:Fruit Peach NH Icon.png|20px|link=]] Peaches}}|}}
 
  | data4          = {{#if:{{{nativefruit|}}}|{{#switch:{{{nativefruit|Apples}}}| Apples = [[File:Fruit Apple NH Icon.png|20px|link=]] Apples | Pears = [[File:Fruit Pear NH Icon.png|20px|link=]] Pears | Cherries = [[File:Fruit Cherry NH Icon.png|20px|link=]] Cherries | Oranges = [[File:Fruit Orange NH Icon.png|20px|link=]] Oranges | Peaches = [[File:Fruit Peach NH Icon.png|20px|link=]] Peaches}}|}}
  | label5        = Status
+
  | label5         = Hemisphere
  | data5         = {{#if:{{{status|}}}|<div style="margin: 0 auto; text-align:center; width:150px; height: 20px; {{roundy|9px}} background: #{{#switch: {{{status|}}} |Bot = 8E8E8E |Active = 84ED68 |Around = D2ECBE |Hiatus = A38949 |Inactive = ADC0F5}}">'''{{#switch: {{{status|}}} |Bot = Bot |Active = Active |Around = Around |Hiatus = Hiatus |Inactive = Inactive}}'''</div>|}}
+
| data5          = {{#switch: {{{hemisphere|}}} |Northern = [[File:Northern Hemisphere icon.png|20px|link=]] [[Northern Hemisphere|Northern]]|Southern = [[File:Southern Hemisphere icon.png|20px|link=]] [[Southern Hemisphere|Southern]]}}
}}<noinclude>
+
| label6         = Status
 +
  | data6         = {{#if:{{{status|}}}|<div style="margin: 0 auto; text-align:center; width:150px; height: 20px; {{roundy|9px}} background: #{{#switch: {{{status|}}} |Bot = 8E8E8E |Active = 84ED68 |Around = D2ECBE |Hiatus = A38949 |Inactive = ADC0F5}}">'''{{#switch: {{{status|}}} |Bot = Bot |Active = Active |Around = Around |Hiatus = Hiatus |Inactive = Inactive}}'''</div>}}}}<noinclude>
 
{{clear}}
 
{{clear}}
 
==Usage==
 
==Usage==
Line 35: Line 36:
 
|mayor=  
 
|mayor=  
 
|dream code=
 
|dream code=
 +
|hemisphere=
 
|status=
 
|status=
 
|nativefruit=  
 
|nativefruit=  

Revision as of 08:08, December 30, 2020

Nia.png

Usage

{{Infobox Town
|name= 
|map= 
|photo= 
|imagesize= 
|game= 
|created= 
|mayor= 
|dream code=
|hemisphere=
|status=
|nativefruit= 
}}