Topic on Extension talk:WSArrays

Planetenxin (talkcontribs)

Hi folks, great extension! I recently tried to create a cross reference table based on the following data:

{{#cadefine:xref|((
"A01":["G 0.19","G 0.21"],
"A02":["G 0.19","G 0.21"],
"A03":["G 0.19"]
))}}

I'd like to use the same syntax pattern, even, if only one value is added, like in "A03". It seems, that "A03" is handled in a different way, because

* {{#caprint:xref[A01]|map|@@}}
* {{#caprint:xref[A02]|map|@@}}
* {{#caprint:xref[A03]|map|@@}}

returns

  • G 0.19G 0.21
  • G 0.19G 0.21
  • Array

instead of

  • G 0.19G 0.21
  • G 0.19G 0.21
  • G 0.19

Is this something you could fix?

Xxmarijnw (talkcontribs)
Reply to "Single value arrays"