Template:Infobox chip: Difference between revisions

Template page
No edit summary
No edit summary
 
(87 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{SHORTDESC:Chip series}}{{#subobject:{{{name|}}}
<includeonly>{{SHORTDESC:Chip series (BN{{{gamenumber|}}})}}{{#subobject:{{#replace:{{{gamenumber|}}}|.|}}-{{Chip ID|gamenumber={{{gamenumber|}}}|gamevariant={{{gamevariant|}}}|librarysection={{{librarysection|}}}|number={{{number|}}}}}
|@sortkey={{#switch:{{{class}}}|Standard=0|Mega=1|Giga=2|Link Navi signature=3}}{{padleft:{{{number}}}|3|0}}{{#switch:{{{game|}}}|Gregar=1|Falzar=2|0}}
|Game number={{{gamenumber|}}}
  |Chip ID={{#switch:{{{class}}}|Standard=S|Mega=M|Giga=G|Link Navi signature=L}}{{padleft:{{{number}}}|3|0}}{{#switch:{{{game|}}}|Gregar=G|Falzar=F}}
|Game variant={{{gamevariant|}}}
  |Chip series={{PAGENAME}}
  |Chip internal ID={{{internalid|}}}
|Library sort order={{{sortorder|}}}
|Chip ID={{Chip ID|gamenumber={{{gamenumber|}}}|gamevariant={{{gamevariant|}}}|librarysection={{{librarysection|}}}|number={{{number|}}}}}
  |Chip number={{{number|}}}
  |Chip name={{{name|}}}
  |Chip name={{{name|}}}
|Chip full name={{{fullname|}}}
|Chip series={{{series|}}}
  |Chip class={{{class|}}}
  |Chip class={{{class|}}}
|Chip karma requirement={{{karmarequirement|}}}
|Chip library section={{{librarysection|}}}
  |Chip description={{{description|}}}
  |Chip description={{{description|}}}
  |Chip code={{{codes|}}}|+sep=,
  |Chip code={{{codes|}}}|+sep=,
Line 12: Line 19:
  |Chip lockout={{{delay|}}}
  |Chip lockout={{{delay|}}}
  |Chip is Japan only={{{jponly|false}}}
  |Chip is Japan only={{{jponly|false}}}
|Chip is dark={{{dark|false}}}
  |Chip name (Japanese)={{{name_ja|}}}
  |Chip name (Japanese)={{{name_ja|}}}
  |Chip description (Japanese)={{{description_ja|}}}
  |Chip description (Japanese)={{{description_ja|}}}
}}{{Infobox
}}{{Infobox
|bodyclass = mw-collapsible floatright chip-class-{{#switch:{{{class}}}|Standard=standard|Mega=mega|Giga=giga|Link Navi signature=linknavi}}
|bodyclass = {{#ifeq:{{{class}}}|Program advance||mw-collapsible}} floatright chip-class-{{#switch:{{{class}}}|Standard=standard|Mega=mega|Giga=giga|Special=special}} {{#ifeq:{{{dark|false}}}|true|chip-dark||}}
|bodystyle = width:224px
|bodystyle = width:{{#switch:{{{gamenumber|}}}|1=256px|2=256px|3=256px|224px}}
|image1 = [[File:Chip{{#switch:{{{class}}}|Standard=S|Mega=M|Giga=G|Link Navi signature=L}}{{padleft:{{{number}}}|3|0}}{{#switch:{{{game|}}}|Gregar=G|Falzar=F}}.png|224px]]
|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}}]]}}
|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 = [[File:ChipIcon{{#switch:{{{class}}}|Standard=S|Mega=M|Giga=G|Link Navi signature=L}}{{padleft:{{{number}}}|3|0}}{{#switch:{{{game|}}}|Gregar=G|Falzar=F}}.png|28px|link=]] {{{name|}}}
|header2 = {{Chip icon|gamenumber={{{gamenumber|}}}|librarysection={{{librarysection|}}}|number={{{number|}}}|gamevariant={{{gamevariant|}}}|size=28px}} {{{name|}}}
|rowclass2 = infobox-title
|rowclass2 = infobox-title data-name
 
|label3 = Description
|label3 = Description
|data3 = {{{description|}}}
|data3 = {{{description|}}}
|rowclass3 = data-description infobox-subtitle infobox-data infobox-col1
|rowclass3 = data-description infobox-subtitle infobox-data infobox-col1
 
|label4 = Class
|label4 = Full name
|data4 = [[List of chips#{{#switch:{{{class|}}}|Link Navi signature=Link Navi signature|{{{class|}}} class}}|{{{class|}}}]]
|data4 = {{{fullname|}}}
|rowclass4 = data-class infobox-data infobox-col2
|rowclass4 = data-fullname infobox-data infobox-col1
 
|label5 = Library #
|label5 = Class
|data5 = {{{number|}}}
|data5 = {{#switch:{{{gamenumber|}}}|4.5=[[Chips (BN4)#4.5-exclusive|{{{librarysection|}}}]]|[[Chips (BN{{{gamenumber|}}})#{{{librarysection|}}}|{{{librarysection|}}}]]{{#ifeq:{{{class|}}}|{{{librarysection|}}}||<span> </span><small>{{{class|}}}</small>}}}}
|rowclass5 = data-number infobox-data infobox-col2
|rowclass5 = data-class infobox-data infobox-col2
 
|label6 = Element
|label6 = Library #
|data6 = {{#if:{{{element|}}}|[[File:Element{{{element}}}.png|14px|link=|{{{element}}}|link=List of chips by element#{{{element|}}}]] [[List of chips by element#{{{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 {{#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-damage infobox-data infobox-col2
|rowclass7 = data-element infobox-data infobox-col2
 
|label8 = Codes
|label8 = Attack power
|data8 = {{#arraymap:{{{codes|}}}|,|PLACEHOLDER|[[List of chips by code#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 = {{{mb|}}}
|data9 = {{#arraymap:{{{codes|}}}|,|PLACEHOLDER|[[List of chips by code (BN{{#switch:{{{gamenumber|}}}|4.5=4|{{{gamenumber|}}}}})#PLACEHOLDER|PLACEHOLDER]] |\s}}
|rowclass9 = data-mb infobox-data infobox-col2
|rowclass9 = data-codes infobox-data infobox-col1
 
|label10 = Max #
|label10 = MB
|data10 = {{#switch:{{#expr:floor({{{mb|0}}}/10)}}|0=5|1=5|2=4|3=3|4=2|1}}
|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-max infobox-data infobox-col2
|rowclass10 = data-mb infobox-data infobox-col1
 
|label11 = Chip lockout
|label11 = Chip lockout
|data11 = {{{delay|}}} frames
|data11 = {{#ifeq:{{{delay|0}}}|0||{{{delay}}} frames}}
|rowclass11 = data-delay infobox-data infobox-col1
|rowclass11 = data-delay infobox-data infobox-col1
 
|label12 = Part of program advance
|label12 = Karma
|data12 = {{#ask: [[Program advance uses chip::{{{name|}}}]] |
|data12 = {{{karmarequirement|}}}
?Chip name
|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
  |format=template
  |template=Infobox chip/Program advance list item
  |template=Infobox chip/Program advance list item
|named args=yes
  |limit=999999
  |limit=999999
|sep=<span>, </span>
|sort=Library sort order
|order=asc
}}
}}
|rowclass12 = data-pa infobox-data infobox-col1
|rowclass13 = data-pa infobox-data infobox-col1
 
|header13 = <abbr title="Japanese" lang="ja">日本語</abbr>
|header15 = <span></span>
|rowclass13 = infobox-header
|rowclass15 = infobox-button-bar
 
}}[[Category:Chips (BN{{{gamenumber|}}})]][[Category:{{#switch:{{{class|}}}|Fixed=Fixed 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>
|label14 = <abbr title="Name" lang="ja">名</abbr>
|data14 = {{{name_ja|}}}
|rowclass14 = data-name-ja infobox-data infobox-col1
 
|label15 = <abbr title="Description" lang="ja">説明</abbr>
|data15 = {{{description_ja|}}}
|rowclass15 = data-description-ja infobox-data infobox-col1
 
|header16 = <span></span>
|rowclass16 = infobox-button-bar
}}[[Category:Chips]][[Category:{{#switch:{{{class|}}}|Link Navi signature=Link Navi signature chips|{{{class|}}} class chips}}]][[Category:{{{element|}}} element chips]]{{#if:{{{jponly|}}}|[[Category:Japan-exclusive chips]]|}}{{#ifeq:{{{class|}}}|Mega||{{#if:{{{game|}}}|[[Category:{{{game}}}-exclusive chips]]|}}}}{{#arraymap:{{{codes|}}}|,|PLACEHOLDER|[[Category:PLACEHOLDER code chips]]|\s}}</includeonly><noinclude>{{/doc}}</noinclude>

Latest revision as of 16:09, 31 March 2023