Difference between revisions of "Template:SpiritInfo"
From Nookipedia, the Animal Crossing wiki
PanchamBro (talk | contribs) |
PanchamBro (talk | contribs) (Using the new tabber system) |
||
(47 intermediate revisions by 4 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 | ||
|image_url = String | |image_url = String | ||
+ | |image2 = String | ||
+ | |image2_url = String | ||
|category = String | |category = String | ||
|type = String | |type = String | ||
|class = String | |class = String | ||
|stats = String | |stats = String | ||
+ | |attack = String | ||
+ | |defense = String | ||
+ | |slots = Integer | ||
+ | |cost = Integer | ||
|ability = String | |ability = String | ||
|dojo = String | |dojo = String | ||
|shop = String | |shop = String | ||
− | | | + | |acquisition1 = String |
+ | |acquisition2 = String | ||
+ | |acquisition3 = 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|}}} | ||
|image_url = {{filepath:{{{image|}}}}} | |image_url = {{filepath:{{{image|}}}}} | ||
+ | |image2 = {{{image2|}}} | ||
+ | |image2_url = {{filepath:{{{image2|}}}}} | ||
|category = {{{category|}}} | |category = {{{category|}}} | ||
|type = {{{type|}}} | |type = {{{type|}}} | ||
− | |class = {{{class|}}} | + | |class = {{#switch:{{{class|}}}|★ = Novice|★★ = Advanced|★★★ = Ace|★★★★ = Legend|N/A}} |
|stats = {{{stats|}}} | |stats = {{{stats|}}} | ||
+ | |attack = {{{attack|}}} | ||
+ | |defense = {{{defense|}}} | ||
+ | |slots = {{{slots|}}} | ||
+ | |cost = {{{cost|}}} | ||
|ability = {{{ability|}}} | |ability = {{{ability|}}} | ||
|dojo = {{{dojo|}}} | |dojo = {{{dojo|}}} | ||
|shop = {{{shop|}}} | |shop = {{{shop|}}} | ||
− | | | + | |acquisition1 = {{{acquisition1|}}} |
− | }}}}</includeonly> | + | |acquisition2 = {{{acquisition2|}}} |
− | {| align | + | |acquisition3 = {{{acquisition3|}}} |
+ | |acquisition4 = {{{acquisition4|}}} | ||
+ | |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|}}}"}} } }} ]}} | ||
+ | |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; {{roundytl|9px}}; text-align:center; width:40%" {{#if:{{{type|}}}{{{class|}}}||colspan="2"}} | '''Category''' {{#if:{{{type|}}}{{{class|}}}|  | |
− | + | {{!}} 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: # | + | | 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|}}}|  |
+ | {{!}} 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: # | + | {{!-}} |
− | {{{ | + | ! 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|}}} }}{{#if:{{{b{{#var: key }}-enemyvariant|}}}|{{{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 }}|}}}]]}}{{#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}} | + | </div> |
− | <noinclude>[[Category: | + | </div> |
− | + | </div>{{clear}}<noinclude>{{Documentation}}[[Category:Super Smash Bros. templates]][[Category:Cargo templates]]</noinclude> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | </noinclude> |
Latest revision as of 23:35, November 8, 2022
This template defines the table "ssbu_spirit". View table.
Template documentation (view)
More Cargo templates |
---|
- For query instructions see our Cargo documentation.