Template:Infobox chip: Difference between revisions

Template page
No edit summary
No edit summary
Line 6: Line 6:
  |Chip class={{{class|}}}
  |Chip class={{{class|}}}
  |Chip description={{{description|}}}
  |Chip description={{{description|}}}
  |Chip code={{#vardefine: i|0}}{{#while:
  |Chip code={{{codes|}}}|+sep=,
  | {{#ifexpr: {{#var: i}} < {{#len: {{{codes|}}}}} | true }}
  | {{#sub: {{{codes|}}}|{{#var: i}}|1}},{{#vardefine: i | {{#expr: {{#var: i }} + 1 }} }}
}}|+sep=,
  |Chip damage={{{damage|}}}
  |Chip damage={{{damage|}}}
  |Chip MB={{{mb|}}}
  |Chip MB={{{mb|}}}
Line 47: Line 44:


|label8 = Codes
|label8 = Codes
|data8 = {{#vardefine: i|0}}{{#while:
|data8 = {{{codes|}}}
  | {{#ifexpr: {{#var: i}} < {{#len: {{{codes|}}}}} | true }}
  | [[List of chips by code#{{trim|{{#sub: {{{codes|}}}|{{#var: i}}|1}}}}|{{trim|{{#sub: {{{codes|}}}|{{#var: i}}|1}}}}]]{{#vardefine: i | {{#expr: {{#var: i }} + 1 }} }}
}}
|rowclass8 = data-codes infobox-data infobox-col1
|rowclass8 = data-codes infobox-data infobox-col1


Line 78: Line 72:
|header15 = <span></span>
|header15 = <span></span>
|rowclass15 = infobox-button-bar
|rowclass15 = 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]]|}}}}{{#vardefine: i|0}}{{#while:
}}[[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]]|}}}}</includeonly><noinclude>{{/doc}}</noinclude>
  | {{#ifexpr: {{#var: i}} < {{#len: {{{codes|}}}}} | true }}
  | [[Category:{{trim|{{#sub: {{{codes|}}}|{{#var: i}}|1}}}} code chips]]{{#vardefine: i | {{#expr: {{#var: i }} + 1 }} }}
}}</includeonly><noinclude>{{/doc}}</noinclude>

Revision as of 20:57, 18 October 2022