Template:Infobox chip: Difference between revisions

Template page
No edit summary
No edit summary
Line 8: Line 8:
  |Chip code={{#vardefine: i|0}}{{#while:
  |Chip code={{#vardefine: i|0}}{{#while:
   | {{#ifexpr: {{#var: i}} < {{#len: {{{codes|}}}}} | true }}
   | {{#ifexpr: {{#var: i}} < {{#len: {{{codes|}}}}} | true }}
   | {{#sub: {{{codes|}}}|{{#var: i}}|1}}{{#vardefine: i | {{#expr: {{#var: i }} + 1 }} }}
   | {{#sub: {{{codes|}}}|{{#var: i}}|1}},{{#vardefine: i | {{#expr: {{#var: i }} + 1 }} }}
}}|+sep=
}}|+sep=,
  |Chip damage={{{damage|}}}
  |Chip damage={{{damage|}}}
  |Chip MB={{{mb|}}}
  |Chip MB={{{mb|}}}
Line 49: Line 49:
|data8 = {{#vardefine: i|0}}{{#while:
|data8 = {{#vardefine: i|0}}{{#while:
   | {{#ifexpr: {{#var: i}} < {{#len: {{{codes|}}}}} | true }}
   | {{#ifexpr: {{#var: i}} < {{#len: {{{codes|}}}}} | true }}
   | [[List of chips by code#{{#sub: {{{codes|}}}|{{#var: i}}|1}}|{{#sub: {{{codes|}}}|{{#var: i}}|1}}]]{{#vardefine: i | {{#expr: {{#var: i }} + 1 }} }}
   | [[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

Revision as of 20:53, 18 October 2022