[00:43:29] I can't get the arraymap on http://0x10cwiki.com/wiki/Template:Glyph_text to recognize newlines and re-output them. Anyone know why (ping yaron?) [00:44:22] Ose: I haven't looked at the wikitext, but try using "\n" for the newline output, or "\n\n". [00:44:22] i'm using http://0x10cwiki.com/wiki/User:Ose as a test page, there should be a linebreak, like in the page source [00:44:39] I did that [00:45:32] Yikes! That's one heck of an #arraymap call. [00:47:43] it could probably be simplified... i'm just modifying my own old code. all it's supposed to do is to simply take any text input "abc...xyz" and return "{{glyph|a}}{{glyph|b}}{{glyph|c}}...{{glyph|x}}{{glyph|y}}{{glyph|z}}" [00:48:46] on that note, i'm not quite sure why I implemented the third level of nesting, it does seem entirely unnecessary [00:48:48] Wow, I don't know. Does any part of it work? [00:48:55] Oh. [00:49:57] it does transform the text, it just doesn't display the newlines in the text [00:50:42] Does it put "\n\n" instead, or does it not do anything? [00:53:55] not anything [00:54:46] if you reload the source, I added line numbers [00:55:04] Nice. [00:55:13] in line 2, the arraymap is supposed to find the newlines as delimeters [00:55:51] then the rest of the template seems to be doing it's thing fine, then on line 10, it's supposed to re-add the newline(s) so that they will be outputted as well [00:56:01] that's what's not working [00:56:44] Right, I understand. [01:01:19] * Ose wonders how long it will be until he can program templates in LUA like the mediawiki foundation promised [01:02:15] It actually won't be templates - it'll be modules. [01:03:26] Ose - I'd recommend simplifying this call, to find the simplest syntax that still fails. [01:03:35] you get the point :P I want a not-insane syntax [01:03:39] That will make debugging a lot easier. [01:03:45] good idea [01:10:29] oh [01:11:16] this may not be a #arraymap problem, but rather MediaWiki doing some weird whitespace-stripping on the parameters [01:16:30] or rather mediawiki behaving really really weird about me using html in the page source [01:16:48] that solves the mystery actually... [01:17:05] it was the
, not the template: http://0x10cwiki.com/wiki/User:Ose [01:17:33] although I have no idea why it would do that, doesn't make sense based on my understanding of html [01:19:28] Ose: ah; well, both MediaWiki and HTML like to ignore newlines, in various contexts. [01:19:34] So is the problem fixed now? [01:24:17] yes, I think so [01:25:02] although I need to wrap the thing in some kind of container to give it a black background... oh well, now that I know this, I should be able to figure it out [01:26:43] Cool. [02:55:27] New patchset: Jeroen De Dauw; "Some cleanup of the property statistics code" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/37656 [04:39:18] New patchset: Jeroen De Dauw; "Added MessageReporterTest" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/43676 [04:39:18] New patchset: Jeroen De Dauw; "Added PropertyStatisticsTableTest" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/43677 [04:39:55] New review: Jeroen De Dauw; "Tests in follow ups" [mediawiki/extensions/SemanticMediaWiki] (master); V: 2 C: 2; - https://gerrit.wikimedia.org/r/37656 [04:39:55] Change merged: Jeroen De Dauw; [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/43676 [04:39:55] Change merged: Jeroen De Dauw; [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/43677 [04:39:55] Change merged: Jeroen De Dauw; [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/37656 [04:41:18] yaron: ^^ [04:42:01] Nice! Things are looking very... testy. :) [04:48:03] New patchset: Jeroen De Dauw; "Up rel notes" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/43678 [04:48:03] New patchset: Jeroen De Dauw; "up gitignore" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/43679 [04:48:16] Change merged: Jeroen De Dauw; [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/43679 [04:48:16] Change merged: Jeroen De Dauw; [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/43678 [05:09:49] yaron: actually did find a bug [05:09:58] with those tets [05:10:21] That's pretty neat. [05:10:36] Would likely not have found it for a long time otherwise [05:10:45] Because it did not raise an error or anything [05:11:06] Just would have had a property usage stats that got slightly off over time for some odd reason [05:11:16] Anyway [05:11:27] * JeroenDeDauw is going to hold off the zerg invazion [12:37:52] New review: Netbrain; "What is the verdict? enabled or disabled by default? Personally i prefer enabled, but ill leave it u..." [mediawiki/extensions/SemanticResultFormats] (master) C: 0; - https://gerrit.wikimedia.org/r/43421 [13:16:07] New review: Mwjames; "I would suggest as well to have the format disabled by default because it requires additional softwa..." [mediawiki/extensions/SemanticResultFormats] (master); V: 0 C: -1; - https://gerrit.wikimedia.org/r/43421 [22:38:39] New patchset: Mwjames; "SRF\EventCalendar use of $.widget factory for ui related tasks" [mediawiki/extensions/SemanticResultFormats] (master) - https://gerrit.wikimedia.org/r/43774 [22:45:25] New patchset: Mwjames; "SRF\EventCalendar use of $.widget factory for ui related tasks" [mediawiki/extensions/SemanticResultFormats] (master) - https://gerrit.wikimedia.org/r/43774