Template:Infobox chip: Difference between revisions

Template page
No edit summary
No edit summary
Line 22: Line 22:
  |Chip name (Japanese)={{{name_ja|}}}
  |Chip name (Japanese)={{{name_ja|}}}
  |Chip description (Japanese)={{{description_ja|}}}
  |Chip description (Japanese)={{{description_ja|}}}
}}{{Infobox chip/body
}}{{Infobox
|gamenumber={{{gamenumber|}}}
|bodyclass = {{#ifeq:{{{class}}}|Program advance||mw-collapsible}} floatright chip-class-{{#switch:{{{class}}}|Standard=standard|Mega=mega|Giga=giga|Link Navi signature=linknavi}} {{#ifeq:{{{dark|false}}}|true|chip-dark||}}
|gamevariant={{{gamevariant|}}}
|bodystyle = width:{{#switch:{{{gamenumber|}}}|1=256px|2=256px|3=256px|224px}}
|number={{{number|}}}
|image1 = {{#ifeq:{{{class}}}|Program advance||[[File:Chip_{{{gamenumber|}}} {{{librarysection|}}}_{{padleft:{{{number}}}|3|0}}{{#if:{{{gamevariant|}}}|_{{{gamevariant|}}}|}}.png|{{#switch:{{{gamenumber|}}}|1=256px|2=256px|3=256px|224px}}]]}}
|name={{{name|}}}
|imagerowclass1 = infobox-image {{#if:{{{imagebg|}}}|{{#switch:{{{imagebg}}}|light=infobox-image--light|dark=infobox-image--dark|}}}}
|fullname={{{fullname|}}}
|class={{{class|}}}
|header2 = {{Chip icon|gamenumber={{{gamenumber|}}}|librarysection={{{librarysection|}}}|number={{{number|}}}|gamevariant={{{gamevariant|}}}|size=28px}} {{{name|}}}
|karmarequirement={{{karmarequirement|}}}
|rowclass2 = infobox-title data-name
|librarysection={{{librarysection|}}}
|description={{{description|}}}
|label3 = Description
|code={{{codes|}}}
|data3 = {{{description|}}}
|damage={{{damage|}}}
|rowclass3 = data-description infobox-subtitle infobox-data infobox-col1
|mb={{{mb|}}}
|element={{{element|}}}
|label4 = Full name
|delay={{{delay|}}}
|data4 = {{{fullname|}}}
|}}[[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>
|rowclass4 = data-fullname infobox-data infobox-col1
|label5 = Class
|data5 = {{#switch:{{{gamenumber|}}}|4.5=[[List of chips (BN4)#4.5-exclusive|{{{librarysection|}}}]]|[[List of chips (BN{{{gamenumber|}}})#{{{librarysection|}}}|{{{librarysection|}}}]]{{#ifeq:{{{class|}}}|{{{librarysection|}}}||<span> </span><small>{{{class|}}}</small>}}}}
|rowclass5 = data-class infobox-data infobox-col2
|label6 = Library #
|data6 = {{{number|}}}{{#switch:{{{gamevariant|}}}|Gregar=G|Falzar=F}}
|rowclass6 = data-number infobox-data infobox-col2
|label7 = Element
|data7 = {{#if:{{{element|}}}|[[File:Element {{#switch:{{{gamenumber|}}}|4.5=4|{{{gamenumber|}}}}} {{{element}}}.png|14px|link=|{{{element}}}|link=List of chips by element (BN{{#switch:{{{gamenumber|}}}|4.5=4|{{{gamenumber|}}}}})#{{{element|}}}]] [[List of chips by element (BN{{#switch:{{{gamenumber|}}}|4.5=4|{{{gamenumber|}}}}})#{{{element|}}}|{{{element|}}}]]|}}
|rowclass7 = data-element infobox-data infobox-col2
|label8 = Damage
|data8 = {{#ifeq:{{{damage|}}}|0|—|{{{damage|}}}}}
|rowclass8 = data-damage infobox-data infobox-col2
|label9 = Codes
|data9 = {{#arraymap:{{{codes|}}}|,|PLACEHOLDER|[[List of chips by code (BN{{#switch:{{{gamenumber|}}}|4.5=4|{{{gamenumber|}}}}})#PLACEHOLDER|PLACEHOLDER]] |\s}}
|rowclass9 = data-codes infobox-data infobox-col1
|label10 = MB
|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-mb infobox-data infobox-col1
|label11 = Chip lockout
|data11 = {{#ifeq:{{{delay|0}}}|0||{{{delay}}} frames}}
|rowclass11 = data-delay infobox-data infobox-col1
|label12 = Karma
|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=name
| ?Chip full name=fullname
| ?Game number=gamenumber
| ?-Has subobject=pagename
|link=none
|format=template
|template=Infobox chip/Program advance list item
|named args=yes
|limit=999999
|sep=<span>, </span>
|sort=Library sort order
|order=asc
}}
|rowclass13 = data-pa infobox-data infobox-col1
|header15 = <span></span>
|rowclass15 = 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>

Revision as of 19:39, 1 November 2022