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={{{code1|}}},{{{code2|}}},{{{code3|}}},{{{code4|}}}|+sep=
  |Chip code={{#vardefine: i|0}}{{#while:
  | {{#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 44: Line 47:


|label8 = Codes
|label8 = Codes
|data8 = {{#if:{{{code1|}}}|[[List of chips by code#{{{code1}}}|{{{code1}}}]]|}} {{#if:{{{code2|}}}|[[List of chips by code#{{{code2}}}|{{{code2}}}]]|}} {{#if:{{{code3|}}}|[[List of chips by code#{{{code3}}}|{{{code3}}}]]|}} {{#if:{{{code4|}}}|[[List of chips by code#{{{code4}}}|{{{code4}}}]]|}}
|data8 = {{#vardefine: i|0}}{{#while:
  | {{#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 }} }}
}}
|rowclass8 = data-codes infobox-data infobox-col1
|rowclass8 = data-codes infobox-data infobox-col1



Revision as of 20:49, 18 October 2022