[00:48:26] sven^: hmm? how do you make sum work? [00:49:53] sven^: also, most formatters can be forced to "raw" mode if you append "-" at the end, then you get proper unmangled strings [02:05:31] Hi, I have a quick question about transcluding properties from one page to another [02:05:35] if this is the wrong place to ask please let me know [04:25:39] New review: Nischayn22; "Looks right." [mediawiki/extensions/SemanticMediaWiki] (master); V: 0 C: 1; - https://gerrit.wikimedia.org/r/46786 [13:36:37] New patchset: Mwjames; "SMW DataItem JavaScript Prototype class" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/46933 [13:41:29] New review: Mwjames; "It passes attached QUnits tests." [mediawiki/extensions/SemanticMediaWiki] (master); V: 0 C: 1; - https://gerrit.wikimedia.org/r/46933 [18:48:42] Hello all, I'm working on a semantic app that is going to feature the ability to comment on stuffs, I've got everything figured out except where to store the templates I've made. I'd include them on the page being commented on but I feel like that will end poorly if that page grows too large [18:49:56] anybody know how I intercept a parser function so it replaces with the value before the edit? [18:51:08] for example if I do {{#time: Y-m-d }} and hit save, the time will always be the current time, If I use the ~~~~~ function it will replace the tildes with the current time before the actual save [18:51:44] is there anyway to use {{#time: Y-m-d }} and make it replace to put the actual date and not keep {{#time: Y-m-d }} there all the time? [18:53:05] Demos74dx: put {{#subst:...}} around it. [18:53:21] thanks, I'll give it a shot [18:53:35] Ulfr: by "templates" do you mean "template calls". [18:53:36] ? [18:54:03] yaron: Nope, I'm talking about the actual template data. [18:54:37] Well, the actual template data is stored in the "Template:" namespace, no? [18:54:50] yaron: Oh, yeah, what you said the first time [18:54:57] Alright. [18:54:59] Sorry. Long meeting [18:55:42] Are you worried about screen clutter - is that the issue? [18:56:19] yaron: No, I'm worried about pages getting so large they lag my database [18:57:08] I don't think that's a real danger. [18:57:53] yaron: Sorry, keeping getting d/c'd. Is that likely to be an issue? I'm rather paranoid about coming back to this in a year and having a few thousand pages to clean [18:59:10] Well, I don't know what your pages look like, but again, page size shouldn't hamper your database, unless you have, I don't know, megabytes of text on there. [19:00:00] yaron: That's the fear. It likely won't become an issue, but if it does that's not a fun cleanup. Was just wondering if I was better off delving into the database API and doing it that way [19:01:17] You have a fear of megabytes of text on your pages? [19:02:18] yaron: A few pages on the wiki I worked on got that big before i started here [19:02:21] Doctors like to talk [19:02:33] Wow, okay. [19:02:44] Why not use Disqus or something for comments? [19:03:36] yaron: I need to link it into an application I already developed in AJAX [19:07:55] yaron: Sorry, still dropping. Did I miss anything? [19:08:15] No. [19:13:53] whats "{{" called? [19:14:08] im having issues with {{subst:#time: Y-m-d H:i:s}} in the field as it isn't nesting correctly [19:14:30] I just dont know what to google for with {{ nesting or something [19:14:42] yaron: You're right, it's unlikely to get that huge. What's that application you mentioned for comment stuff? [19:15:02] Article Comments is nice [19:15:08] Disqus - you can implement it via the Widgets extension. [19:15:18] Yes, there are other options too. [19:15:53] Demos74dx: "double curly brackets", I guess, though that might not help. [19:16:06] what is this for? just enabling comments on a page, or are you trying to get some sort of dynamic table going? [19:16:35] yaron, do you have a help page in mind that discusses nesting on functions? [19:17:04] I don't know of any, sorry. I mean, usually it just works... [19:17:26] yeah its being goofy about it for some reason [19:19:02] Demos74dx: Link to the page you're puttering with? [19:19:22] for your issue or mine? [19:19:33] Yours [19:20:00] oh, its a private wiki with all sorts of company restricted info. [19:20:17] so I can't as much as I'd like it [19:20:28] Demos74dx: Understood. Just not 100% on what ~~~~ is [19:21:05] well ~~~~ is a signature that saves the signature information in place of ~~~~ when the edit is saved [19:21:25] if you do 5x ~ so ~~~~~ its a time stamp, but I hate the format of that timestamp [19:21:39] Oh! [19:21:47] Use HTML chars instead of the actual ones [19:22:04] the subst: solution is working great but the nesting of {{}} inside this form is giving me grief [19:22:05] {{subst:#time: Y-m-d H:i:s}} [19:22:24] Oh, okay [19:22:32] Just put more curly braces in [19:22:47] {{subst:{{#time: Y-m-d}}}} [19:23:05] it looks like this Date: {{subst:#time: Y-m-d H:i:s }} [19:23:18] so the last 2 }} or any extra I add after that end up outside of the text box [19:23:36] this in in form creating btw [19:23:44] Oh. That's a good one. [19:23:53] Demos74dx: it might work to put the #time call into a template, and then call subst: on that - I'm not sure. [19:25:15] Ulfr___ so your {{subst:{{#time: Y-m-d}}}} looks like this in the form Date:{{subst:{{#time: Y-m-d}}}} [19:25:24] i have no idea why it puts all that extra junk outside of the text box [19:26:35] so basically everything looks as expected unitl the first closing curly, after that everything is appearing outside of the textbox...and if I add extras it seems to be pushing out code thats not intended at all [19:26:59] Demos74dx: Any reason you can just outside the call? [19:27:29] can't* [19:27:39] well and are just psudo html code to show where my textbox is beginning and ending in the form, they're not actual elements in the code [19:28:23] Oh, okay. I see now [19:28:24] in relation to the code im trying to get inside of the actual textbox element [19:29:31] Demos74dx: Yeah, I haven't tried doing anything like that before. I'd love to help if I could =/ [19:29:58] its really flippin goofy [19:30:18] Demos74dx: I'd put it on par with the hell I went through having to deal with double parsed code [19:30:21] also if you do {{{{subst:#time: Y-m-d}} it breaks the entire wiki [19:30:37] yeah and I'm blind to the other parsed code :) [19:30:49] Yeah, gives me flashbacks to that lisp class in college that gave me nightmares [19:33:25] Demos74dx: did you see my comment before? [19:34:25] well wouldnt I need to use {{subst:}} therefore the two ending }} anyways? [19:34:47] I have a feeling its just tyring to use {{anthinghere}} inside a form textbox [20:07:20] http://www.mediawiki.org/wiki/Extension_talk:Semantic_Forms/Archive_January_to_February_2012#Preloading_data_into_multiple_instance_template [20:07:31] yaron do you know if this bug you refrence is fixed? [20:08:10] I don't remember.