Difference between revisions of "Template:Infobox Town"

From Nookipedia, the Animal Crossing wiki
(Changing category to Category:Personal templates as this is not used in mainspace)
(Convert to new infobox)
Line 1: Line 1:
{| class="infobox" align="right" style="background: #72aa63; margin-left: 10px; margin-bottom: 10px; {{roundy|10px}} border: 3px solid #527947; width: 25%"
+
{{Infobox 2.0
|- align="center"
+
| title          = {{{name|{{PAGENAME}}}}}
| colspan="2" | <big><big>'''{{{name|{{PAGENAME}}}}}'''</big></big>
+
| primarycolor  = 107 29
|- align="center"
+
| image          = [[File:{{{map|Nia.png}}}|{{{imagesize|200px}}}]]
| style="background: #ffffff; {{roundy|10px}}" colspan="2" | [[File:{{{map|Nia.png}}}|{{{imagesize|200px}}}]]
+
| caption        = {{{caption|}}}
|-
+
 
! style="background: #468c4f; {{roundytl|10px}}" align="right" | Game
+
| widelabel      = Dream Address
| style="background:#ffffff; {{roundytr|10px}}" align="left" | {{{game|{{NL}}}}}
+
| widedata      = {{{dream code|}}}
|- {{#if:{{{created|}}}|
+
| widelabel2    = Creator Code
{{!-}}
+
| widedata2      = {{{creator code|}}}
! style="background: #468c4f" align="right" {{!}} Creation date
+
 
{{!}} style="background:#ffffff" align="left" {{!}} {{{created|}}}}}
+
| label          = Game
|- {{#if:{{{mayor|}}}|
+
| data          = {{{game|}}}
{{!-}}
+
| label2        = {{#ifeq:{{{game|}}}|{{NL}}|Mayor|Player}}
! style="background: #468c4f" align="right" {{!}} {{#ifeq:{{{game|}}}|{{NL}}|Mayor|Player}}
+
| data2          = {{{mayor|}}}  
{{!}} style="background:#ffffff" align="left" {{!}} {{{mayor|}}}}}
+
| label3        = Creation date
|- {{#if:{{{dream code|}}}|
+
| data3          = {{{created|}}}  
{{!-}}
+
| label4        = Native fruit
! style="background: #468c4f" align="right" {{!}} Dream Address
+
| data4          = {{#if:{{{nativefruit|}}}|{{#switch:{{{nativefruit|Apples}}}| Apples = [[File:Fruit Apple NH Icon.png|20px|link=]] Apples | Pears = [[File:Fruit Pears NH Icon.png|20px|link=]] Pears | Cherries = [[File:Fruit Cherries NH Icon.png|20px|link=]] Cherries | Oranges = [[File:Fruit Oranges NH Icon.png|20px|link=]] Oranges | Peaches = [[File:Fruit Peaches NH Icon.png|20px|link=]] Peaches}}|}}
{{!}} style="background:#ffffff" align="left" {{!}} {{{dream code|}}}}}
+
| label5        = Status
|- {{#if:{{{status|}}}|
+
| 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>|}}
{{!-}}
+
}}<noinclude>
! style="background: #468c4f; text-align:right;" {{!}} Status
 
{{!}} align="center" style="{{roundy|5px}} border: 1px solid #{{#switch: {{{status|Bot}}}|Bot=2E2E2E|Active=62CB46|Around=A5D97B|Hiatus=7A6636|Inactive=8190B7}}; background: #{{#switch: {{{status|Bot}}}|Bot=8E8E8E|Active=84ED68|Around=D2ECBE|Hiatus=A38949|Inactive=ADC0F5}}; color:#000000; line-height: 8pt;" {{!}} '''<small>{{{status|Bot}}}</small>'''}}
 
|-
 
! style="background: #468c4f; {{roundybl|10px}}" align="right" | Native fruit
 
| style="background:#ffffff; {{roundybr|10px}}" align="left" | {{{nativefruit|N/A}}}
 
|}<noinclude>
 
 
{{clear}}
 
{{clear}}
 
==Usage==
 
==Usage==

Revision as of 13:37, August 6, 2020

Nia.png

Usage

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