[16:08:29] hello! [16:08:36] Hey Yaron [16:08:50] Hi, what's up! [16:10:01] Nothing much, found out that images don't display in checkboxes so I have to reprogram it. [16:10:19] Ah, yes. [16:12:48] so what do you suggest me ? [16:18:18] Yaron can I edit the way that the data from is displayed? [16:18:59] bierepedia: well, there's this hack... http://smw.referata.com/wiki/Display_instructions_for_each_option_on_a_form [16:19:13] It requires hardcoded knowledge of all the values, though. [16:19:53] ok [16:20:03] Being able to display images, and alternate text, for each option is something I'm hoping to add directly to SF in the next, say, six months. [16:20:23] Great ! [16:23:50] let's say I have 40 checkbox or options to change, can I make an iteration ? [16:24:07] What do you mean? [16:26:07] I want to display my 40 colors [16:27:02] in that checkbox or radio [16:27:47] but your method is for editing each individually [16:28:16] I want to make a loop to make it simple [16:28:49] since my files are called 01 to 40.png [16:48:55] Yaron did you found if I can use adresses to add markers in semantic maps [16:49:54] Ah - to answer your first question, however you can get the Javascript working, it's fine - I'm sure a loop is possible. [16:50:14] What was the issue with addresses in SM? [17:00:54] I can't seem to make it work [17:15:19] be back later [20:21:06] hey... I am having problems with some #ask statements... [20:22:18] I have a page representing a mainboard. The mainboard has no model (since the api that provides the information didn't return a model string) and the following #ask: ! Has the same model as: : [20:22:18] | {{#ask: [[Category:Hardware]] [[Model::{{{Model|BOGUSPROPERTYVALUE}}}]]|headers=plain|default=none}} [20:23:13] as a result I get loads of pages with quite different "model" properties. For example one of them has Model 256MB ATI Radeon X1300PRO 256 MB + when I do Browse Properties [20:23:20] it's the same for most of the others [20:23:34] I guess it's another stupid mistake, so what am I missing? [20:25:10] (I get that the property and the template field name having the name "Model" is a bit confusing, but that's what I was told to name them and it shouldn't be a real problem (?) ) [20:36:31] sven^: you have an #ask within an #ask? If so, what does that inner #ask return? [20:36:44] no [20:36:59] the first #ask: was part of my problem description ;) [20:37:32] https://dpaste.de/iHCq [20:37:34] here [20:37:44] that's a part of the template [20:38:02] Does the same problem happen when the "Model" field is, and isn't, set? [20:38:27] no. The moment I edit the page and add "a" or something in the model field, it says "none" [20:38:51] Ah. [20:39:05] the funny thing is that the Manufacturer-#ask works fine [20:39:27] it's stupid, I have to talk to my boss about renaming the fields/properties [20:39:49] You mean, it works fine when the "HasManufacturer" field is empty? [20:39:59] yes [20:40:21] Is there a difference between the two properties? [20:41:02] wait a minute... [20:41:24] dafuck. It works now. I reedited the page and removed Model=a from the page source [20:41:26] ... [20:41:28] I hate it [20:41:32] I did runJobs like 10 times [20:41:38] *runJobs.php [20:42:05] I edited the template and broke the #ask so nothing was displayed. I fixed it again and got wrong results again [20:42:16] I ran runJobs.php again and it was still broken [20:42:17] ... [20:42:24] too many caches in this software ;) [20:42:48] well, thanks [20:43:05] Yay! [20:43:06] I hope this kind of shit doesn't happen during the evaluation next week [20:43:15] sometimes mediawiki is just stupid [20:43:40] are there any other ways to refresh stuff/empty caches than running runJobs.php? [20:43:52] (or touching LocalSettings.php) [20:44:25] Yeah, SMW_refreshData.php. [20:44:37] Although, if works now, maybe you shouldn't touch it... [20:44:56] well... it's a test vm anyways [20:45:03] it has to work out of the box in the future [20:45:12] Oh, I see. [20:45:36] I don't know... there are different idiosyncracies in different SMW versions. [20:45:41] I create about 10.000 pages via a script. I cannot edit all of them by hand to fix #ask [20:46:42] let's hope for the best, thanks [20:50:14] is there any way to use #arraymap in a safe way? [20:50:40] I mean, I enclose #ask in #arraymap so I don't know which chacters are used in the results [20:51:35] hmm, or maybe it doesn't matter? [20:51:40] I am a bit confused ;) [20:52:23] {{#arraymap:{{#ask: [[Category:Host]] [[HasInstalledHardware::{{PAGENAME}}]]|link=none}}|,|a|[[IsUsedInHost::a]]}} <= shouldn't that break if any of the results contain the letter 'a'? [20:53:36] oh, sorry, it's alright ;) [22:25:19] [travis-ci] SemanticMediaWiki/SemanticMediaWiki#956 (store - 525d858 : mwjames): The build was broken. [22:25:19] [travis-ci] Change view : https://github.com/SemanticMediaWiki/SemanticMediaWiki/commit/525d8588b044 [22:25:19] [travis-ci] Build details : http://travis-ci.org/SemanticMediaWiki/SemanticMediaWiki/builds/18763292