Difference between revisions of "Template:SpiritInfo"

From Nookipedia, the Animal Crossing wiki
(setting cargo table for new infobox design)
(new template design implemented)
Line 1: Line 1:
 
<noinclude>{{#cargo_declare:
 
<noinclude>{{#cargo_declare:
 
_table=ssbu_spirit
 
_table=ssbu_spirit
 +
|number = Integer
 
|name = String
 
|name = String
 
|image = String
 
|image = String
Line 23: Line 24:
 
|battle_enemies = Text
 
|battle_enemies = Text
 
|battle_type = String
 
|battle_type = String
|battle_power = String
+
|battle_power = Integer
 
|battle_stage = String
 
|battle_stage = String
 
|battle_rules = Text
 
|battle_rules = Text
Line 30: Line 31:
 
}}</noinclude><includeonly>{{#ifeq:{{NAMESPACE}}||{{#cargo_store:
 
}}</noinclude><includeonly>{{#ifeq:{{NAMESPACE}}||{{#cargo_store:
 
_table=ssbu_spirit
 
_table=ssbu_spirit
 +
|number = {{{number|}}}
 
|name = {{{name|{{PAGENAME}}}}}
 
|name = {{{name|{{PAGENAME}}}}}
 
|image = {{{image|}}}
 
|image = {{{image|}}}
Line 58: Line 60:
 
|battle_music = {{{battle-music|}}}
 
|battle_music = {{{battle-music|}}}
 
}}}}</includeonly>
 
}}}}</includeonly>
{| align="left" style="background: #daa520; border: 2px solid #bc8f8f; width: 50%; {{roundy|25px}}"
+
<div style="display: grid; vertical-align: top; background: #f5deb3; margin-left: 10px; margin-bottom: 10px; {{roundy|15px}} border: 3px solid #daa520; max-width: 700px; padding: 2px;">
 +
<div class="flex-container">
 +
<div class="flex-item" style="margin: 0 auto; background: #ffffff; {{roundy|9px}}; text-align: center; padding: 10px; max-width: 250px;">
 +
<div style="float: left; position: absolute; background: #e6cda8; border-radius: 15px; color: #000000; padding: 5px;"><small>#{{{number|}}}</small></div>
 +
<div style="display: table; height: 100%; width: 100%;">
 +
<div style="display: table-cell; vertical-align: middle;">
 +
[[File:{{{image|Nia.png}}}|{{{image-size|100px}}}|{{SUBPAGENAME}}]]<br>{{#if:{{{image2|}}}|<br>{{#if:{{{image2|}}}|[[File:{{{image2}}}|{{{imagesize2|100px}}}|{{SUBPAGENAME}}]]|}}}}<br>'''{{{name|{{PAGENAME}}}}}'''
 +
</div>
 +
</div>
 +
</div>
 +
<div class="flex-item">
 +
{| style="display: inline-table; width: 100%; height: 100%;" |
 
|-
 
|-
| style="background: #e6cda8; padding: 10px; {{roundyleft|25px}};" align="center" width="25%" rowspan="3" | [[File:{{{image|Nia.png}}}|{{{image-size|100px}}}]] {{#if:{{{image2|}}}|[[File:{{{image2|}}}|{{{image2-size|100px}}}]]}}
+
! colspan=2 style="background: #e6cda8; width: 40%; {{roundytl|9px}} {{roundytr|9px}}; text-align:center;" | '''Category'''
| style="background: #f5deb3; padding: 3px; {{roundytr|25px}};" align="center" width="100%" colspan="3"|<big>'''{{{name|{{PAGENAME}}}}}'''</big>
 
 
|-
 
|-
| style="background: #f5deb3; padding: 10px;" align="center" width="60%" | '''{{{category|Missing category}}}'''{{#if:{{{type|}}}|<br>'''Type:''' {{{type|}}}}}{{#if:{{{class|}}}|<br>'''Class:''' {{{class|}}} ({{#switch:{{{class|}}}|★ = Novice|★★ = Advanced|★★★ = Ace|★★★★ Legend}})}}{{#if:{{{slots|}}}|<br>'''Slots:''' {{#switch:{{{slots|}}}|1=⬡|2=⬡⬡|3=⬡⬡⬡|N/A}}}}{{#if:{{{cost|}}}|<br>'''Cost:''' {{#switch:{{{cost|}}}|1=⬢|2=⬢⬢|3=⬢⬢⬢|N/A}}}}{{#if:{{{stats|}}}|<br>'''Power:''' {{{stats|}}}}}{{#if:{{{attack|}}}|<br>'''Attack power:''' {{{attack|}}}}}{{#if:{{{defense|}}}|<br>'''Defense power:''' {{{defense|}}}}}{{#if:{{{ability|}}}|<br>'''Ability:''' {{{ability|}}}}}{{#ifeq:{{{category|}}}|Master Spirit|{{#if:{{{dojo|}}}|<br>'''Dojo:''' {{{dojo|}}}}}{{#if:{{{shop|}}}|<br>'''Shop:''' {{{shop|}}}}}}}
+
| colspan=2 style="background:#ffffff; padding:0 0 0 6px; text-align:center;" | {{{category|Missing category}}}
 +
|-  {{#if:{{{type|}}}|
 +
{{!-}}
 +
! style="background: #e6cda8; text-align:center;" {{!}} '''Type'''
 +
{{!}} colspan="2" style="background:#ffffff; padding:0 0 0 6px;" {{!}} {{{type|}}}}}
 +
|- {{#if:{{{class|}}}|
 +
{{!-}}
 +
! style="background: #e6cda8; text-align:center;" {{!}} '''Class'''
 +
{{!}} colspan="2" style="background:#ffffff; padding:0 0 0 6px;" {{!}} {{#switch:{{{class|}}}|★ = Novice|★★ = Advanced|★★★ = Ace|★★★★ = Legend}} ({{{class|}}})}}
 +
|- {{#if:{{{slots|}}}|
 +
{{!-}}
 +
! style="background: #e6cda8; text-align:center;" {{!}} '''Slots'''
 +
{{!}} colspan="2" style="background:#ffffff; padding:0 0 0 6px;" {{!}} {{{slots|}}} ({{#switch:{{{slots|}}}|1=⬡|2=⬡⬡|3=⬡⬡⬡|N/A}})}}
 +
|- {{#if:{{{cost|}}}|
 +
{{!-}}
 +
! style="background: #e6cda8; text-align:center;" {{!}} '''Slot cost'''
 +
{{!}} colspan="2" style="background:#ffffff; padding:0 0 0 6px;" {{!}} {{{cost|}}} ({{#switch:{{{cost|}}}|1=⬢|2=⬢⬢|3=⬢⬢⬢|N/A}})}}
 +
|- {{#if:{{{stats|}}}|
 +
{{!-}}
 +
! style="background: #e6cda8; text-align:center;" {{!}} '''Stats'''
 +
{{!}} colspan="2" style="background:#ffffff; padding:0 0 0 6px;" {{!}} '''Power:''' {{{stats|}}}{{#if:{{{attack|}}}|<br>'''Attack power:''' {{{attack|}}}}}{{#if:{{{defense|}}}|<br>'''Defense power:''' {{{defense|}}}}}}}
 +
|- {{#if:{{{ability|}}}|
 +
{{!-}}
 +
! style="background: #e6cda8; text-align:center;" {{!}} '''Ability'''
 +
{{!}} colspan="2" style="background:#ffffff; padding:0 0 0 6px;" {{!}} {{{ability|}}}}}
 +
|- {{#ifeq:{{{category|}}}|Master Spirit|
 +
{{!-}}
 +
! style="background: #e6cda8; text-align:center;" {{!}} {{#if:{{{dojo|}}}|'''Dojo'''}}{{#if:{{{shop|}}}|'''Shop:'''}}
 +
{{!}} colspan="2" style="background:#ffffff; padding:0 0 0 6px;" {{!}} {{#if:{{{dojo|}}}|{{{dojo|}}}}}{{#if:{{{shop|}}}|{{{shop|}}}}}}}
 
|-
 
|-
| style="background: #f5deb3; padding: 10px; {{roundybr|25px}};" align="center" width="15%" |
+
{{!-}}
{{#if:{{{acquisition1|}}}|{{#if:{{{acquisition1-display|}}}|<li style="list-style-position: inside; padding-left: 5px">{{{acquisition1-display|}}}</li>|<li style="list-style-position: inside; padding-left: 5px">{{{acquisition1|}}}}}</li>}}{{#if:{{{acquisition2|}}}|<li style="list-style-position: inside; padding-left: 5px">{{{acquisition2|}}}</li>}}{{#if:{{{acquisition3|}}}|<li style="list-style-position: inside; padding-left: 5px">{{{acquisition3|}}}</li>}}{{#if:{{{acquisition4|}}}|<li style="list-style-position: inside; padding-left: 5px">{{{acquisition4|}}}</li>}}
+
! style="background: #e6cda8; {{#if:{{{battle-enemy1|}}}||{{roundybl|9px}}}} text-align:center;" {{!}} '''Acquistion'''
 +
{{!}} colspan="2" style="background:#ffffff; padding:0 0 0 6px; {{#if:{{{battle-enemy1|}}}||{{roundybr|9px}}}}" {{!}} {{#if:{{{acquisition1|}}}|{{#if:{{{acquisition1-display|}}}|<li style="list-style-position: inside; padding-left: 5px">{{{acquisition1-display|}}}</li>|<li style="list-style-position: inside; padding-left: 5px">{{{acquisition1|}}}}}</li>}}{{#if:{{{acquisition2|}}}|<li style="list-style-position: inside; padding-left: 5px">{{{acquisition2|}}}</li>}}{{#if:{{{acquisition3|}}}|<li style="list-style-position: inside; padding-left: 5px">{{{acquisition3|}}}</li>}}{{#if:{{{acquisition4|}}}|<li style="list-style-position: inside; padding-left: 5px">{{{acquisition4|}}}</li>}}
 +
|- {{#if:{{{battle-enemy1|}}}|
 +
{{!-}}
 +
! colspan="3" style="background: #e6cda8; text-align:center;" {{!}} '''Battle information'''
 +
{{!-}}
 +
{{!-}}
 +
! style="background: #e6cda8; text-align:center;" {{!}} '''Enemy'''
 +
{{!}} colspan="2" style="background:#ffffff; padding:0 0 0 6px;" {{!}} {{#forargs: battle-enemy
 +
| key
 +
| value
 +
| <nowiki /> <li style="list-style-position: inside; padding-left: 5px"> {{#if:{{{b{{#var: key }}-enemycondition|}}}|{{{b{{#var: key }}-enemycondition|}}}}} {{{b{{#var: key }}-enemyvariant|}}} {{#switch:{{{battle-enemy{{#var: key }}}}}|Villager=[[Villager (Super Smash Bros. series){{!}}Villager]]|Isabelle=[[Isabelle]]|#default=[[smashwiki:{{{battle-enemy{{#var: key }}|}}} (SSBU){{!}}{{{battle-enemy{{#var: key }}|}}}]]}}</li>}}
 +
{{!-}}
 +
{{!-}}
 +
! style="background: #e6cda8; text-align:center;" {{!}} '''Type'''
 +
{{!}} colspan="2" style="background:#ffffff; padding:0 0 0 6px;" {{!}} {{{battle-type|}}}
 +
{{!-}}
 +
{{!-}}
 +
! style="background: #e6cda8; text-align:center;" {{!}} '''Power'''
 +
{{!}} colspan="2" style="background:#ffffff; padding:0 0 0 6px;" {{!}} {{{battle-power|}}}
 +
{{!-}}
 +
{{!-}}
 +
! style="background: #e6cda8; text-align:center;" {{!}} '''Stage'''
 +
{{!}} colspan="2" style="background:#ffffff; padding:0 0 0 6px;" {{!}} [[{{#switch:{{{battle-stage|}}}|Tortimer Island=Tortimer Island (stage)|#default={{{battle-stage|}}}}}]]
 +
{{!-}}
 +
{{!-}}
 +
! style="background: #e6cda8; text-align:center;" {{!}} '''Rules'''
 +
{{!}} colspan="2" style="background:#ffffff; padding:0 0 0 6px;" {{!}} {{#forargs: battle-rules
 +
| key
 +
| value
 +
| <nowiki /> <li style="list-style-position: inside; padding-left: 5px">{{{battle-rules{{#var: key }}|}}}</li>}}
 +
{{!-}}
 +
{{!-}}
 +
! style="background: #e6cda8; text-align:center;" {{!}} '''Conditions'''
 +
{{!}} colspan="2" style="background:#ffffff; padding:0 0 0 6px;" {{!}} {{#forargs: battle-conditions
 +
| key
 +
| value
 +
| <nowiki /> <li style="list-style-position: inside; padding-left: 5px">{{{battle-conditions{{#var: key }}|}}}</li>}}
 +
{{!-}}
 +
{{!-}}
 +
! style="background: #e6cda8; text-align:center; {{roundybl|9px}}" {{!}} '''Music'''
 +
{{!}} colspan="2" style="background:#ffffff; padding:0 0 0 6px; {{roundybr|9px}}" {{!}} {{{battle-music|}}}
 +
}}
 
|}
 
|}
{{clear}}<noinclude>{{Documentation}}[[Category:Super Smash Bros. templates]][[Category:Cargo templates]]</noinclude>
+
</div>
 +
</div>
 +
</div>{{clear}}<noinclude>{{Documentation}}[[Category:Super Smash Bros. templates]][[Category:Cargo templates]]</noinclude>

Revision as of 21:08, October 4, 2021

This template defines the table "ssbu_spirit". View table.

#

SpiritInfo

SpiritInfo

Category
Missing category
Acquistion

Template documentation (view)


More Cargo templates