Template talk:Array

Latest comment: 5 months ago by Bungle in topic Newline bug

Newline bug

edit

@Mathglot brought my attention to a bug in a template that uses this (see Template talk:For loop delimited) which we tracked down to here. I just fixed the bug (adding a newline after output) and wanted a record here in case anybody was relying on it.

Given input: {{Array|get|My,wiki,test,array|,|3}}{{Array|get|My,wiki,test,array|,|2}}

Previous behavior:

test
wiki

Expected/fixed behavior:

testwiki

Your Friendly Neighborhood Sociologist ⚧ Ⓐ (talk) 17:40, 25 July 2024 (UTC)Reply

@Your Friendly Neighborhood Sociologist, I just observed your amendment. I can't recall if there was a particular reason I wrote it like this, or if it were just an oversight. It probably makes more sense "correcting" this, as it's easier to retrospectively add a line break if desired, than trying to remove one. Bungle (talkcontribs) 18:14, 25 July 2024 (UTC)Reply
Much appreciated; I think this is the more natural behavior. Thanks! Mathglot (talk) 19:32, 25 July 2024 (UTC)Reply
@Your Friendly Neighborhood Sociologist, @Mathglot: I have migrated this to use Lua, as it's cleaner and allows for better expansion of new functions when required. There are some minor behaviour differences but nothing that affects previous function. Just as a heads up! Bungle (talkcontribs) 14:31, 26 July 2024 (UTC)Reply