Difference between revisions of "Template:SpiritInfo"

From Nookipedia, the Animal Crossing wiki
(Using the new tabber system)
 
(32 intermediate revisions by 3 users not shown)
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 21: Line 22:
 
|acquisition3 = String
 
|acquisition3 = String
 
|acquisition4 = String
 
|acquisition4 = String
 +
|battle_enemies = Text
 +
|battle_type = String
 +
|battle_power = Integer
 +
|battle_stage = String
 +
|battle_stage_form = String
 +
|battle_rules = Text
 +
|battle_conditions = Text
 +
|battle_music = String
 
}}</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 30: Line 40:
 
|category = {{{category|}}}
 
|category = {{{category|}}}
 
|type = {{{type|}}}
 
|type = {{{type|}}}
|class = {{#switch:{{{class|}}}|★ = Novice|★★ = Advanced|★★★ = Ace|★★★★ Legend}}
+
|class = {{#switch:{{{class|}}}|★ = Novice|★★ = Advanced|★★★ = Ace|★★★★ = Legend|N/A}}
 
|stats = {{{stats|}}}
 
|stats = {{{stats|}}}
 
|attack = {{{attack|}}}
 
|attack = {{{attack|}}}
Line 43: Line 53:
 
|acquisition3 = {{{acquisition3|}}}
 
|acquisition3 = {{{acquisition3|}}}
 
|acquisition4 = {{{acquisition4|}}}
 
|acquisition4 = {{{acquisition4|}}}
}}}}</includeonly>
+
|battle_enemies = {{#if:{{{battle-enemy1|}}}|[ {{#forargs: battle-enemy | key | value | {{#ifexpr: {{#var: key}} > 1 | , }} { "fighter": "{{{battle-enemy{{#var: key }}|}}}"{{#if:{{{b{{#var: key }}-enemyvariant|}}}|, "fighter-variant": "{{{b{{#var: key }}-enemyvariant|}}}"}}{{#if:{{{b{{#var: key }}-enemycondition|}}}|, "fighter-condition": "{{{b{{#var: key }}-enemycondition|}}}"}} } }} ]}}
{| align="left" style="background: #daa520; border: 2px solid #bc8f8f; width: 50%; {{roundy|25px}}"
+
|battle_type = {{{battle-type|}}}
 +
|battle_power = {{{battle-power|}}}
 +
|battle_stage = {{{battle-stage|}}}
 +
|battle_stage_form = {{{battle-stage-form|}}}
 +
|battle_rules = {{#if:{{{battle-rules1|}}}|[ {{#forargs: battle-rules | key | value | {{#ifexpr: {{#var: key}} > 1 | , }} { "rule": "{{{battle-rules{{#var: key }}|}}}"} }} ]}}
 +
|battle_conditions = {{#if:{{{battle-conditions1|}}}|[ {{#forargs: battle-conditions | key | value | {{#ifexpr: {{#var: key}} > 1 | , }} { "condition": "{{{battle-conditions{{#var: key }}|}}}"} }} ]}}
 +
|battle_music = {{{battle-music|}}}
 +
}}}}</includeonly><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>#{{#invoke:formatnum|main|lang=en|{{{number|}}}}}</small></div>
 +
<div style="display: table; height: 100%; width: 100%;">
 +
<div style="display: table-cell; vertical-align: middle;">
 +
{{#if:{{{image2|}}}|<br>
 +
{{TabStart}}
 +
{{TabHeader|Main artwork}}
 +
[[File:{{{image|Nia.png}}}|{{{image-size|100px}}}|{{SUBPAGENAME}}]]
 +
{{TabHeader|Alternative artwork}}
 +
{{#if:{{{image2|}}}|[[File:{{{image2}}}|{{{imagesize2|100px}}}|{{SUBPAGENAME}}]]|}}
 +
{{TabEnd}}|[[File:{{{image|Nia.png}}}|{{{image-size|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}}}]]}}
+
! style="background: #e6cda8; {{roundytl|9px}}; text-align:center; width:40%" {{#if:{{{type|}}}{{{class|}}}||colspan="2"}} | '''Category''' {{#if:{{{type|}}}{{{class|}}}|&#32;
| style="background: #f5deb3; padding: 3px; {{roundytr|25px}};" align="center" width="100%" colspan="3"|<big>'''{{{name|{{PAGENAME}}}}}'''</big>
+
{{!}} style="background: #e6cda8; text-align:center;" {{!}} {{#if:{{{type|}}}|'''Type'''|'''Class'''}}
 +
{{!}} style="background: #e6cda8; {{roundytr|10px}}; text-align:center;" {{!}} {{#if:{{{type|}}}|'''Class'''|'''Slot cost'''}}}}
 
|-
 
|-
| 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|}}}}}}}
+
| style="background:#ffffff; padding:0 0 0 6px; text-align:center;" {{#if:{{{type|}}}{{{class|}}}||colspan="2"}} | {{#ifeq:{{{category|}}}|Support Spirit|[[File:SpiritTypeSupport.png|20px|link=|alt=]]}} {{{category|Missing category}}} {{#if:{{{type|}}}{{{class|}}}|&#32;
 +
{{!}} style="background:#ffffff; padding:0 0 0 6px; text-align:center;" {{!}} {{#if:{{{type|}}}|[[File:SpiritType{{{type|}}}.png|20px|link=|alt=]] {{{type|}}}|{{#switch:{{{class|}}}|★ = Novice|★★ = Advanced|★★★ = Ace|★★★★ = Legend}} ({{{class|}}})}}
 +
{{!}} style="background:#ffffff; padding:0 0 0 6px; text-align:center;" {{!}} {{#if:{{{type|}}}|{{#switch:{{{class|}}}|★ = Novice|★★ = Advanced|★★★ = Ace|★★★★ = Legend}} ({{{class|}}})|{{{cost|}}} ({{#switch:{{{cost|}}}|1=|2=⬢⬢|3=⬢⬢⬢|N/A}})}}}}
 +
|- {{#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:{{{stats|}}}|
 +
{{!-}}
 +
! style="background: #e6cda8; text-align:center;" {{!}} '''Stats'''
 +
{{!}} colspan="2" style="background:#ffffff; padding:0 0 0 6px;" {{!}} [[File:Equipment Icon Power Badge.png|20px|link=|alt=]] '''Power:''' {{{stats|}}}{{#if:{{{attack|}}}|<br>[[File:Equipment Icon Brawn Badge.png|20px|link=|alt=]] '''Attack power:''' {{{attack|}}}}}{{#if:{{{defense|}}}|<br>[[File:Equipment Icon Protection Badge.png|20px|link=|alt=]] '''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;" {{!}} '''Acquisition'''
 +
{{!}} colspan="2" style="background:#ffffff; padding:0 0 0 6px; {{#if:{{{battle-enemy1|}}}||{{roundybr|9px}}}}" {{!}} {{#if:{{{acquisition1|}}}|{{#if:{{{acquisition1-display|}}}|{{#if:{{{acquisition2|}}}|<li style="list-style-position: inside; padding-left: 5px">}}{{{acquisition1-display|}}}{{#if:{{{acquisition2|}}}|</li>}}|{{#if:{{{acquisition2|}}}|<li style="list-style-position: inside; padding-left: 5px">}}{{{acquisition1|}}}}}{{#if:{{{acquisition2|}}}|</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 fighter{{#if:{{{battle-enemy2|}}}|s}}'''
 +
{{!}} colspan="2" style="background:#ffffff; padding:0 0 0 6px;" {{!}} {{#forargs: battle-enemy
 +
| key
 +
| value
 +
| <nowiki /> {{#if: {{{battle-enemy2|}}} |<li style="list-style-position: inside; padding-left: 5px">}}{{#if:{{{b{{#var: key }}-enemycondition|}}}|{{{b{{#var: key }}-enemycondition|}}}&#32;}}{{#if:{{{b{{#var: key }}-enemyvariant|}}}|{{{b{{#var: key }}-enemyvariant|}}}&#32;}}{{#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 }}|}}}]]}}{{#if: {{{battle-enemy2|}}} |</li>}}}}
 +
{{!-}}
 +
{{!-}}
 +
! style="background: #e6cda8; text-align:center;" {{!}} '''Type'''
 +
{{!}} colspan="2" style="background:#ffffff; padding:0 0 0 6px;" {{!}} [[File:SpiritType{{{battle-type|}}}.png|20px|link=|alt=]] {{{battle-type|}}}
 +
{{!-}}
 +
{{!-}}
 +
! style="background: #e6cda8; text-align:center;" {{!}} '''Power'''
 +
{{!}} colspan="2" style="background:#ffffff; padding:0 0 0 6px;" {{!}} [[File:Equipment Icon Power Badge.png|20px|link=|alt=]] {{#invoke:formatnum|main|lang=en|{{{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)|Tortimer Island]]|Smashville|Town and City=[[{{{battle-stage|}}}]]|#default=[[smashwiki:{{{battle-stage|}}}|{{{battle-stage|}}}]]}} {{#if:{{{battle-stage-form|}}}|({{#switch:{{{battle-stage-form|}}}|Battlefield=[[smashwiki:Battlefield form|Battlefield form]]|Ω|Omega=[[smashwiki:Ω form|Ω form]]|#default={{{battle-stage-form|}}}}})}}
 +
{{!-}}
 +
{{!-}}
 +
! style="background: #e6cda8; text-align:center;" {{!}} '''Rules'''
 +
{{!}} colspan="2" style="background:#ffffff; padding:0 0 0 6px;" {{!}} {{#forargs: battle-rules
 +
| key
 +
| value
 +
| <nowiki /> {{#if: {{{battle-rules2|}}} |<li style="list-style-position: inside; padding-left: 5px">}}{{{battle-rules{{#var: key }}|}}}{{#if: {{{battle-rules2|}}} |</li>}}}}
 +
{{!-}}
 +
{{!-}}
 +
! style="background: #e6cda8; text-align:center;" {{!}} '''Conditions'''
 +
{{!}} colspan="2" style="background:#ffffff; padding:0 0 0 6px;" {{!}} {{#forargs: battle-conditions
 +
| key
 +
| value
 +
| <nowiki /> {{#if: {{{battle-conditions2|}}} |<li style="list-style-position: inside; padding-left: 5px">}}{{{battle-conditions{{#var: key }}|}}}{{#if: {{{battle-conditions2|}}} |</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:Templates]][[Category:Cargo templates]]</noinclude>
+
</div>
 +
</div>
 +
</div>{{clear}}<noinclude>{{Documentation}}[[Category:Super Smash Bros. templates]][[Category:Cargo templates]]</noinclude>

Latest revision as of 23:35, November 8, 2022

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

#

SpiritInfo
SpiritInfo

Category
Missing category
Acquisition

Template documentation (view)


More Cargo templates