Difference between revisions of "Template:SpiritInfo"
From Nookipedia, the Animal Crossing wiki
PanchamBro (talk | contribs) (adding stage form) |
PanchamBro (talk | contribs) (Using the new tabber system) |
||
(16 intermediate revisions by the same user not shown) | |||
Line 53: | Line 53: | ||
|acquisition3 = {{{acquisition3|}}} | |acquisition3 = {{{acquisition3|}}} | ||
|acquisition4 = {{{acquisition4|}}} | |acquisition4 = {{{acquisition4|}}} | ||
− | |battle_enemies = [ {{#forargs: battle- | + | |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_type = {{{battle-type|}}} | ||
|battle_power = {{{battle-power|}}} | |battle_power = {{{battle-power|}}} | ||
|battle_stage = {{{battle-stage|}}} | |battle_stage = {{{battle-stage|}}} | ||
|battle_stage_form = {{{battle-stage-form|}}} | |battle_stage_form = {{{battle-stage-form|}}} | ||
− | |battle_rules = [ {{#forargs: battle-rules | key | value | {{#ifexpr: {{#var: key}} > 1 | , }} { "rule | + | |battle_rules = {{#if:{{{battle-rules1|}}}|[ {{#forargs: battle-rules | key | value | {{#ifexpr: {{#var: key}} > 1 | , }} { "rule": "{{{battle-rules{{#var: key }}|}}}"} }} ]}} |
− | |battle_conditions = [ {{#forargs: battle-conditions | key | value | {{#ifexpr: {{#var: key}} > 1 | , }} { "condition | + | |battle_conditions = {{#if:{{{battle-conditions1|}}}|[ {{#forargs: battle-conditions | key | value | {{#ifexpr: {{#var: key}} > 1 | , }} { "condition": "{{{battle-conditions{{#var: key }}|}}}"} }} ]}} |
|battle_music = {{{battle-music|}}} | |battle_music = {{{battle-music|}}} | ||
− | }}}}</includeonly> | + | }}}}</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 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-container"> | ||
<div class="flex-item" style="margin: 0 auto; background: #ffffff; {{roundy|9px}}; text-align: center; padding: 10px; max-width: 250px;"> | <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="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; height: 100%; width: 100%;"> | ||
<div style="display: table-cell; vertical-align: middle;"> | <div style="display: table-cell; vertical-align: middle;"> | ||
− | [[File:{{{image|Nia.png}}}|{{{image-size|100px}}}|{{SUBPAGENAME}}]] | + | {{#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> | ||
Line 75: | Line 81: | ||
{| style="display: inline-table; width: 100%; height: 100%;" | | {| style="display: inline-table; width: 100%; height: 100%;" | | ||
|- | |- | ||
− | ! style="width:40%; background: #e6cda8; text-align:center; {{ | + | ! 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:#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|}}}| | |- {{#if:{{{slots|}}}| | ||
{{!-}} | {{!-}} | ||
! style="background: #e6cda8; text-align:center;" {{!}} '''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}})}} | {{!}} colspan="2" style="background:#ffffff; padding:0 0 0 6px;" {{!}} {{{slots|}}} ({{#switch:{{{slots|}}}|1=⬡|2=⬡⬡|3=⬡⬡⬡|N/A}})}} | ||
− | |||
− | |||
− | |||
− | |||
|- {{#if:{{{stats|}}}| | |- {{#if:{{{stats|}}}| | ||
{{!-}} | {{!-}} | ||
Line 108: | Line 107: | ||
{{!-}} | {{!-}} | ||
! style="background: #e6cda8; {{#if:{{{battle-enemy1|}}}||{{roundybl|9px}}}} text-align:center;" {{!}} '''Acquisition''' | ! 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|}}}|<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>}} | + | {{!}} 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|}}}| | |- {{#if:{{{battle-enemy1|}}}| | ||
{{!-}} | {{!-}} | ||
Line 118: | Line 117: | ||
| key | | key | ||
| value | | 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>}} | + | | <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>}}}} |
{{!-}} | {{!-}} | ||
{{!-}} | {{!-}} | ||
Line 130: | Line 129: | ||
{{!-}} | {{!-}} | ||
! style="background: #e6cda8; text-align:center;" {{!}} '''Stage''' | ! 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|}}}]] {{#switch:{{{battle-stage-form|}}}|Battlefield=[[smashwiki:Battlefield form|Battlefield form]]|Ω|Omega=[[smashwiki:Ω form|Ω form]]|#default={{{battle-stage-form|}}}}} | + | {{!}} 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|}}}}})}} |
{{!-}} | {{!-}} | ||
{{!-}} | {{!-}} | ||
Line 137: | Line 136: | ||
| key | | key | ||
| value | | value | ||
− | | <nowiki /> <li style="list-style-position: inside; padding-left: 5px">{{{battle-rules{{#var: key }}|}}}</li>}} | + | | <nowiki /> {{#if: {{{battle-rules2|}}} |<li style="list-style-position: inside; padding-left: 5px">}}{{{battle-rules{{#var: key }}|}}}{{#if: {{{battle-rules2|}}} |</li>}}}} |
{{!-}} | {{!-}} | ||
{{!-}} | {{!-}} | ||
Line 144: | Line 143: | ||
| key | | key | ||
| value | | value | ||
− | | <nowiki /> <li style="list-style-position: inside; padding-left: 5px">{{{battle-conditions{{#var: key }}|}}}</li>}} | + | | <nowiki /> {{#if: {{{battle-conditions2|}}} |<li style="list-style-position: inside; padding-left: 5px">}}{{{battle-conditions{{#var: key }}|}}}{{#if: {{{battle-conditions2|}}} |</li>}}}} |
{{!-}} | {{!-}} | ||
{{!-}} | {{!-}} |
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.