Template:Infobox chip: Difference between revisions

Template page
No edit summary
No edit summary
Line 27: Line 27:
|imagerowclass1 = infobox-image {{#if:{{{imagebg|}}}|{{#switch:{{{imagebg}}}|light=infobox-image--light|dark=infobox-image--dark|}}}}
|imagerowclass1 = infobox-image {{#if:{{{imagebg|}}}|{{#switch:{{{imagebg}}}|light=infobox-image--light|dark=infobox-image--dark|}}}}


|header2 = {{Chip icon|gamenumber={{{gamenumber|}}}|librarysection={{{librarysection|}}}|number={{{number|}}}|gamevariant={{{gamevariant|}}}|size=28px}} {{{name|}}}
|header2 = {{Chip icon|gamenumber={{{gamenumber|}}}|librarysection={{{librarysection|}}}|number={{{number|}}}|gamevariant={{{gamevariant|}}}|size=28px}} {{{fullname|}}}
|rowclass2 = infobox-title
|rowclass2 = infobox-title data-fullname


|label3 = Description
|label3 = Description
Line 34: Line 34:
|rowclass3 = data-description infobox-subtitle infobox-data infobox-col1
|rowclass3 = data-description infobox-subtitle infobox-data infobox-col1


|label4 = Class
|label4 = In-game name
|data4 = [[List of chips (BN{{{gamenumber|}}})#{{{librarysection|}}}|{{{librarysection|}}}]]{{#ifeq:{{{class|}}}|{{{librarysection|}}}||<span> </span>({{{class|}}})}}
|data4 = {{{name|}}}
|rowclass4 = data-class infobox-data infobox-col2
|rowclass4 = data-name infobox-data infobox-col1


|label5 = Library #
|label5 = Class
|data5 = {{{number|}}}{{#switch:{{{gamevariant|}}}|Gregar=G|Falzar=F}}
|data5 = [[List of chips (BN{{{gamenumber|}}})#{{{librarysection|}}}|{{{librarysection|}}}]]{{#ifeq:{{{class|}}}|{{{librarysection|}}}||<span> </span>({{{class|}}})}}
|rowclass5 = data-number infobox-data infobox-col2
|rowclass5 = data-class infobox-data infobox-col2


|label6 = Element
|label6 = Library #
|data6 = {{#if:{{{element|}}}|[[File:Element {{{gamenumber|}}} {{{element}}}.png|14px|link=|{{{element}}}|link=List of chips by element (BN{{{gamenumber|}}})#{{{element|}}}]] [[List of chips by element (BN{{{gamenumber|}}})#{{{element|}}}|{{{element|}}}]]|}}
|data6 = {{{number|}}}{{#switch:{{{gamevariant|}}}|Gregar=G|Falzar=F}}
|rowclass6 = data-element infobox-data infobox-col2
|rowclass6 = data-number infobox-data infobox-col2


|label7 = Damage
|label7 = Element
|data7 = {{#ifeq:{{{damage|}}}|0||{{{damage|}}}}}
|data7 = {{#if:{{{element|}}}|[[File:Element {{{gamenumber|}}} {{{element}}}.png|14px|link=|{{{element}}}|link=List of chips by element (BN{{{gamenumber|}}})#{{{element|}}}]] [[List of chips by element (BN{{{gamenumber|}}})#{{{element|}}}|{{{element|}}}]]|}}
|rowclass7 = data-damage infobox-data infobox-col2
|rowclass7 = data-element infobox-data infobox-col2


|label8 = Codes
|label8 = Damage
|data8 = {{#arraymap:{{{codes|}}}|,|PLACEHOLDER|[[List of chips by code (BN{{{gamenumber|}}})#PLACEHOLDER|PLACEHOLDER]] |\s}}
|data8 = {{#ifeq:{{{damage|}}}|0||{{{damage|}}}}}
|rowclass8 = data-codes infobox-data infobox-col1
|rowclass8 = data-damage infobox-data infobox-col2


|label9 = MB
|label9 = Codes
|data9 = {{#if:{{{mb|}}}|{{{mb|}}}{{#ifeq:{{{gamenumber|}}}|6|<span> </span>(max {{#switch:{{#expr:floor({{{mb|0}}}/10)}}|0=5 copies|1=5 copies|2=4 copies|3=3 copies|4=2 copies|1 copy}})|}}|}}
|data9 = {{#arraymap:{{{codes|}}}|,|PLACEHOLDER|[[List of chips by code (BN{{{gamenumber|}}})#PLACEHOLDER|PLACEHOLDER]] |\s}}
|rowclass9 = data-mb infobox-data infobox-col1
|rowclass9 = data-codes infobox-data infobox-col1


|label10 = Chip lockout
|label10 = MB
|data10 = {{#ifeq:{{{delay|0}}}|0||{{{delay}}} frames}}
|data10 = {{#if:{{{mb|}}}|{{{mb|}}}{{#ifeq:{{{gamenumber|}}}|6|<span> </span>(max {{#switch:{{#expr:floor({{{mb|0}}}/10)}}|0=5 copies|1=5 copies|2=4 copies|3=3 copies|4=2 copies|1 copy}})|}}|}}
|rowclass10 = data-delay infobox-data infobox-col1
|rowclass10 = data-mb infobox-data infobox-col1


|label11 = Karma
|label11 = Chip lockout
|data11 = {{{karmarequirement|}}}
|data11 = {{#ifeq:{{{delay|0}}}|0||{{{delay}}} frames}}
|rowclass11 = data-karma infobox-data infobox-col1
|rowclass11 = data-delay infobox-data infobox-col1


|label12 = Part of program advances
|label12 = Karma
|data12 = {{#ask: [[Program advance uses chip::{{{name|}}}]][[Game number::{{{gamenumber|}}}]]
|data12 = {{{karmarequirement|}}}
|rowclass12 = data-karma infobox-data infobox-col1
 
|label13 = Part of program advances
|data13 = {{#ask: [[Program advance uses chip::{{{name|}}}]][[Game number::{{{gamenumber|}}}]]
  | ?Chip name
  | ?Chip name
  | ?-Has subobject
  | ?-Has subobject
Line 79: Line 83:
  |order=asc
  |order=asc
}}
}}
|rowclass12 = data-pa infobox-data infobox-col1
|rowclass13 = data-pa infobox-data infobox-col1


|header13 = <span></span>
|header14 = <span></span>
|rowclass13 = infobox-button-bar
|rowclass14 = infobox-button-bar
}}[[Category:Chips (BN{{{gamenumber|}}})]][[Category:{{#switch:{{{class|}}}|Link Navi signature=Link Navi signature chips|{{{class|}}} class chips (BN{{{gamenumber|}}})}}]][[Category:{{{element|}}} element chips (BN{{{gamenumber|}}})]]{{#if:{{{jponly|}}}|[[Category:Japan-exclusive chips (BN{{{gamenumber|}}})]]|}}{{#ifeq:{{{class|}}}|Mega||{{#if:{{{gamevariant|}}}|[[Category:{{{gamevariant}}}-exclusive chips (BN{{{gamenumber|}}})]]|}}}}{{#arraymap:{{{codes|}}}|,|PLACEHOLDER|[[Category:PLACEHOLDER code chips (BN{{{gamenumber|}}})]]|\s}}<templatestyles src="Template:Infobox_chip/styles.css" /></includeonly><noinclude>{{/doc}}</noinclude>
}}[[Category:Chips (BN{{{gamenumber|}}})]][[Category:{{#switch:{{{class|}}}|Link Navi signature=Link Navi signature chips|{{{class|}}} class chips (BN{{{gamenumber|}}})}}]][[Category:{{{element|}}} element chips (BN{{{gamenumber|}}})]]{{#if:{{{jponly|}}}|[[Category:Japan-exclusive chips (BN{{{gamenumber|}}})]]|}}{{#ifeq:{{{class|}}}|Mega||{{#if:{{{gamevariant|}}}|[[Category:{{{gamevariant}}}-exclusive chips (BN{{{gamenumber|}}})]]|}}}}{{#arraymap:{{{codes|}}}|,|PLACEHOLDER|[[Category:PLACEHOLDER code chips (BN{{{gamenumber|}}})]]|\s}}<templatestyles src="Template:Infobox_chip/styles.css" /></includeonly><noinclude>{{/doc}}</noinclude>

Revision as of 18:52, 21 October 2022