[04:25:48] New patchset: Nischayn22; "Use i18n for error messages" [mediawiki/extensions/SemanticMaps] (nischayn) - https://gerrit.wikimedia.org/r/31725 [08:01:53] aha! [08:01:55] 'Phone number' => '_tel' [08:02:04] '_tel' => 'Telephone number' [08:03:08] magic aliases - and that might just explain why during an upgrade sometimes the property "Phone number" becomes "Telephone number" for no obvious reason [08:12:44] so - if I create a property that exists as an internal property, which one has precedence? [09:44:17] haha. if I remove the internal mappings for _tel it works again [09:44:32] so that's a really funny easter egg [10:16:45] Change merged: Jeroen De Dauw; [mediawiki/extensions/SemanticMaps] (nischayn) - https://gerrit.wikimedia.org/r/31725 [10:24:36] bonsaikitten: depends on your definition of "funny" :-) [10:38:05] New patchset: Mwjames; "SMW 1.9 Clean-up" [mediawiki/extensions/SemanticMediaWiki] (1.9.x) - https://gerrit.wikimedia.org/r/33320 [10:46:17] New review: Jeroen De Dauw; "Please do document the removal of the old entry point in rel notes. If it's not already there in som..." [mediawiki/extensions/SemanticMediaWiki] (1.9.x); V: 0 C: 0; - https://gerrit.wikimedia.org/r/33320 [10:51:17] New review: Mwjames; "I have the 1.9 release notes in another commit, will make a note about it." [mediawiki/extensions/SemanticMediaWiki] (1.9.x); V: 1 C: 0; - https://gerrit.wikimedia.org/r/33320 [11:05:10] Change merged: Jeroen De Dauw; [mediawiki/extensions/SemanticMediaWiki] (1.9.x) - https://gerrit.wikimedia.org/r/33320 [11:05:44] New patchset: Mwjames; "Update SMW 1.9 release notes" [mediawiki/extensions/SemanticMediaWiki] (1.9.x) - https://gerrit.wikimedia.org/r/32348 [11:07:46] good morning :) [11:08:45] what does this code do? [11:09:02] {{{info|page name= |create title=Create new contact}}} [11:09:16] does it send data to a template called "info"? [11:10:31] Change merged: Mwjames; [mediawiki/extensions/SemanticMediaWiki] (1.9.x) - https://gerrit.wikimedia.org/r/32348 [11:14:01] Domerich: yes [11:16:18] that's weird because that template doesnt exist [11:16:54] I'm trying to adapt some code sven provided but Im stuck [11:17:28] thats what ive got so far http://pastebin.com/aGTxbp14 [11:18:06] Now the user should be able to enter data so a new wiki articel will be created with that information [11:20:33] to make it easy every article looks the same and I used a template [11:21:00] so the code for every article is like this {{Actresses|Britt Robertson|Charlotte|North Carolina|1.59m|1990}} [11:21:33] so the form should forward that information somehow into a newly created article but I dont know how [11:39:09] Domerich: no, it's an info tag [11:39:19] what does it do? [11:39:36] http://www.mediawiki.org/wiki/Extension:Semantic_Forms/Defining_forms#.27info.27_tag [11:40:09] it creates a pagename according to the 2 values surname and lastname [11:40:16] uh, that's a bug, I need to fix that [11:40:29] ok, it should be Contact[firstname] and Contact[lastname] [11:40:56] so if you enter John as firstname and Miller as lastname, it creates a page called "John Miller" [11:41:25] ah nice thats what I want right? [11:41:31] if that page already exists, it adds a unique number to it. So if you create another John Miller-page, it will be called John Miller2 [11:42:11] good to know [11:42:19] dunno what you want ;) [11:43:28] okay I want to create a new page for a new actress, and the page name should be the same name as is inputted later ^^ in {{{field|Has_name}}} [11:43:45] one time you use surname and the other firstname [11:43:48] it's not 100% perfect. e.g. when John Miller marries and is called John Peterson afterwards, you still got the page called John Miller [11:44:04] so you'll have to move it manually [11:44:18] well it will do for now but good to know [11:44:32] you should call the field only "name" [11:44:38] the property is "Has name" [11:44:41] the field is name [11:44:46] ah okay [11:45:13] how do I get the user input up there like, {{{info|page name={name} [11:45:30] I want the the field value from below [11:46:55] [11:47:06] like I did with [11:47:22] but you also use [surname] [11:47:28] where does that come from [11:47:35] http://www.mediawiki.org/wiki/Extension:Semantic_Forms/Linking_to_forms#The_one-step_process [11:47:35] when the field is called firstname [11:47:39] surname is wrong [11:47:43] I just changed it [11:47:45] ;P [11:47:46] okay [11:49:49] you should really read http://www.mediawiki.org/wiki/Extension:Semantic_Forms/Defining_forms [11:50:05] I know it's a lot, but it covers everything you need to know (almost) [11:50:45] haha someone should translate all that ^^ [11:58:53] Okay I think "for template" is all I need right now [12:00:20] great now my browser crashed [12:01:43] I dont understand what the Form needs the Template for? [12:02:02] The Form has all the information it needs to create a new page I understand [12:02:26] for some reason it forwards the information to a Template [12:03:19] and yes I read the templates article [12:05:05] also what do these {{#set:firstname={{{firstname|}}}}} etc. mean? [12:05:16] Saruman: well, it took me about 3 days of reverse-engineering to see how that messed up [12:05:36] Saruman: it'd be quite nice if there was more of a, how to say this, error output on errors :) [12:06:26] hehe [12:06:40] but what if your error reporting error is screwed up? [12:09:10] I want my template to use a different template [12:09:19] I guess that's hard [12:10:22] Domerich: it's not [12:10:37] just put the new template in the mother template [12:10:55] well I dont understand the mother template yet :) [12:11:17] it receives Information from a form [12:11:58] it looks like this http://pastebin.com/9LAtu66Z [12:12:03] sounds like you need some time with MW and a sandbox [12:12:44] the template I want to use to create that page only uses that information received here [12:13:05] e.g. {{actresses|name|city|etc.}} [12:13:38] and the Form conveying the info should create a new page [12:14:04] you use a form to create a page. The resulting page should be something like {{actress|name=foo|city=bar|...}} [12:14:17] now you need a template to display that information in a nice way [12:14:53] well I already have a template that will do the displaying thing [12:15:04] its called {actresses|}} [12:15:30] Can I do with just this preexisting template? [12:15:44] No I cannot [12:15:55] :S [12:16:16] ? [12:16:20] what do you mean [12:16:45] you can create a template called Template:Foobar and just put some text in it [12:17:06] yah I know [12:17:06] whereever you put {{Foobar}} in a pake then, it displays that text [12:17:10] *page [12:17:10] yap [12:17:30] using variables/values is just the next step [12:17:41] so I have one template that creates a whole page [12:18:01] or it can only be part of a page [12:18:04] the article for Britt Robertson is generated by {{Actresses|Britt Robertson|Charlotte|North Carolina|1.59m|1990}} [12:18:14] and it will output some text with that information [12:18:30] she is small :P [12:18:34] I know :D [12:18:48] I usually found it much easier to maintain if you use named variables [12:18:52] I can also sort them by their height [12:19:06] you'll have to work with {{{1}}} {{{2}}} etc. in your template [12:19:10] that's easy to mess up [12:19:23] well that's the only way I know it and it works for now ^^ [12:19:42] it's easier to use {{Actresses|name=Britt Robertson|city=Charlotte|...}} [12:19:51] then you can use {{{name}}} in the template [12:19:57] cool [12:19:57] or {{{city}}} [12:20:15] okay next time I will do it that way [12:20:33] but for now name={{{1}}} [12:20:43] and I want to finish that Form :) [12:20:50] please help me :) [12:21:28] a) I don't really get where the problem is b) you should maybe just read a bit more and finish it yourself ;) [12:21:48] okay I try to explain [12:22:53] stupid opera x( [12:23:27] this is the Form I set up with your help http://pastebin.com/9RZQ5A2A [12:24:20] what else do I need to create an atricle with the template:actresses that goes like this http://pastebin.com/DEuV49R9 [12:28:00] :( [12:30:21] Don't call it createactress [12:30:34] what should I call it? [12:30:38] and {{#forminput:Contact}} there should be the form's name [12:31:06] okay [12:31:31] that command allows you to enter a pagename and click "Create or edit" when you go to Form:Yourformname [12:31:49] ah that is what it is [12:32:00] the {{for template|FOO}} defines how the pagetext looks later [12:32:42] fix those 2 and then just use the form to enter some dummy data [12:33:06] is that correct? [12:34:10] yep [12:34:18] as I dont have named parameters will it go like this? {{{for template|CreateActress|name|city ... ? [12:34:31] you do have named parameters [12:34:35] at least in the form you pasted [12:34:55] really? [12:35:01] ah [12:35:03] | {{{field|name}}} [12:35:04] sure [12:35:21] so should it be field|1 ? for name? [12:35:23] if you want numbered parameters you'll have to do it without the "name" [12:35:32] why would you want to do that? ;) [12:35:36] it's cleaner this way [12:35:58] just use the form now to create a page and look at the resulting pagetext [12:36:11] im stillt unclear with the parameters [12:37:18] what do I enter in the "create or edit" form? [12:37:48] Create. ok. that works [12:39:01] the pagename [12:39:35] ohh [12:39:46] now I have a Page "Create" ^^ [12:40:22] ok it created something but its very bad ^^ [12:40:24] it created a table too := [12:40:46] {| class="formtable" has to go [12:41:41] that was a bad idea [12:43:11] look at the pagesource now and check if it's ok [12:43:26] then just create a template doing the stuff you like [12:43:40] well it's all wrong ^^ [12:44:02] aah [12:44:05] wrong template [12:44:50] lol I better delete all that and start over [12:45:44] okay so my template doesnt receive the parameters from the form [12:46:09] paste the pagetext you have in the "Create" page now [12:46:31] http://pastebin.com/71pLSety [12:46:37] hold on [12:46:40] this is wrong [12:47:48] it didnt save it the last time, now here it is http://pastebin.com/dkbTsx6L [12:49:25] no, not the form [12:49:29] create a page using the form [12:50:28] achso [12:50:45] btw, to get proper page names using the stuff in the info tag, you'll have to navigate to Special:FormEdit/CreateActress [12:51:09] okay [12:51:11] {{{1}}} is an actress born in {{{2}}}, {{{3}}}?{{{3}}}? kann nicht als Seitenname in diesem Wiki verwendet werden., U.S. Her height is {{{4}}}. She was born in {{{5}}}Das Datum ?{{{5}}}? wurde nicht verstanden.. [12:51:11] Find further information on imdb.com [12:51:12] oh [12:51:24] and the {{template|... part is wrong [12:51:39] in the form [12:51:43] wrong how? [12:51:52] you just need {{for template|Actresses}} [12:52:04] mh no parameters? ok [12:52:43] now it says {{{1}}} is an actress born in {{{2}}}, {{{3}}}, U.S. Her height is {{{4}}}. She was born in {{{5}}}. [12:52:54] and now click edit source [12:53:10] okay [12:54:10] {{Actresses [12:54:10] |name=Hayden Panettiere [12:54:23] thats wrong, I dont want "name=" there [12:55:13] ok i have an idea, maybe field|} will do [12:55:38] nah :( [12:56:18] why no name? [12:56:23] trust me, it's easier [12:56:40] now adjust your template [12:57:02] [[Has name::{{{1}}}]] has to be [[Has name::{{{name}}}]] [12:57:04] and it will work [12:57:18] just rename all the numbers to the field names you used in the form [12:57:29] and you are done [12:58:59] http://pastebin.com/vQFTYXg1 [15:36:24] Change merged: Jeroen De Dauw; [mediawiki/extensions/SemanticMaps] (nischayn) - https://gerrit.wikimedia.org/r/32882 [16:05:39] New patchset: Nischayn22; "New form input type Polygons" [mediawiki/extensions/SemanticMaps] (master) - https://gerrit.wikimedia.org/r/33362 [16:05:39] New patchset: Nischayn22; "Base class and hooks for Polgyons" [mediawiki/extensions/SemanticMaps] (master) - https://gerrit.wikimedia.org/r/33363 [16:05:39] New patchset: Nischayn22; "Added Validation class." [mediawiki/extensions/SemanticMaps] (master) - https://gerrit.wikimedia.org/r/33364 [16:05:39] New patchset: Nischayn22; "Using the map editor library from Maps" [mediawiki/extensions/SemanticMaps] (master) - https://gerrit.wikimedia.org/r/33365 [16:05:40] New patchset: Nischayn22; "Handling of extra parameters in polygons,etc." [mediawiki/extensions/SemanticMaps] (master) - https://gerrit.wikimedia.org/r/33366 [16:05:40] New patchset: Nischayn22; "Using BLOB instead of String which breaks with Store3." [mediawiki/extensions/SemanticMaps] (master) - https://gerrit.wikimedia.org/r/33367 [16:05:40] New patchset: Nischayn22; "Fixed tags to 2.1" [mediawiki/extensions/SemanticMaps] (master) - https://gerrit.wikimedia.org/r/33368 [16:05:41] New patchset: Nischayn22; "Not using parameter manipulations anymore." [mediawiki/extensions/SemanticMaps] (master) - https://gerrit.wikimedia.org/r/33369 [16:05:41] New patchset: Nischayn22; "Using MapEditor from Maps" [mediawiki/extensions/SemanticMaps] (master) - https://gerrit.wikimedia.org/r/33370 [16:05:41] New patchset: Nischayn22; "Fix dependency with Maps" [mediawiki/extensions/SemanticMaps] (master) - https://gerrit.wikimedia.org/r/33371 [16:05:42] New patchset: Nischayn22; "Use i18n for error messages" [mediawiki/extensions/SemanticMaps] (master) - https://gerrit.wikimedia.org/r/33372 [16:05:42] New patchset: Nischayn22; "Added missing text area." [mediawiki/extensions/SemanticMaps] (master) - https://gerrit.wikimedia.org/r/33373 [16:09:02] sorry I had to run earlier [16:11:38] thank you Steve, everything works fine now :) [16:12:05] *Sven [16:26:31] Yaron: Hey have you ever had this problem where on editing a page using a form it redirects to the main page? [16:27:04] I don't think so... you mean, when you hit "Save"? [16:27:19] I embedded this: *[[Special:FormEdit/CreateActress| Neuer Eintrag / Eintrag editieren]] [16:27:30] Yaron: Yes when hitting save [16:27:45] No, I don't think so. Does it happen every time? [16:27:54] now it skips the create or edit button from {{#forminput:CreateActress}} [16:28:30] Yaron: No, recently I did a MW upgrade and then this started happening with one of the forms [16:28:55] Strange. [16:29:20] Nischayn22: so it happens with only one of your forms, but it always happens with that one form? [16:30:36] Yaron: try this http://openurbandev.com/index.php?title=Special:FormEdit/Address/NITK [16:30:47] Ah, OpenUrban. [16:30:52] heh [16:31:25] Domerich: that's not surprising... why not just use #forminput. [16:31:26] ? [16:32:38] Nischayn22: I can't create an account, to try out the form. [16:33:49] Yaron: I see the captcha problem.. you make one extension work and the other breaks somehow [16:34:04] That's how it goes. :) [16:36:33] Yaron: I see http://robbieabed.com/programming-isnt-hard-its-just-frustrating-this-is-why-there-is-a-shortage-of-programmers/ ;) [16:37:52] That's a good one. [16:39:08] I know [16:39:22] Yaron: how about your book? [16:39:57] It's coming out very soon... either this week or next. [16:40:12] Although having it this week is starting to look a little unlikely. [16:40:33] ah, I thought it was today [16:40:44] That's what I had thought too. :) [16:41:00] So many last-minute details... it's ridiculous. [16:41:54] As they say, the first 90% takes 90% of the time, and the last 10% takes the other 90% of the time. [16:42:17] Haha, that is true for many things [16:42:55] including writing code, where deployment eats up the 90% time [16:43:25] Yes. [16:43:54] *[[Special:FormInput/CreateActress| Neuer Eintrag / Eintrag editieren]] doesnt work [16:44:41] Domerich: there's no page called "Special:FormInput". [16:45:34] You might be thinking of Special:FormStart. [16:48:14] New patchset: Nischayn22; "Not using parameter manipulations anymore." [mediawiki/extensions/SemanticMaps] (master) - https://gerrit.wikimedia.org/r/33369 [16:48:14] New patchset: Nischayn22; "Fixed tags to 2.1" [mediawiki/extensions/SemanticMaps] (master) - https://gerrit.wikimedia.org/r/33368 [16:48:14] New patchset: Nischayn22; "Fix dependency with Maps" [mediawiki/extensions/SemanticMaps] (master) - https://gerrit.wikimedia.org/r/33371 [16:48:15] New patchset: Nischayn22; "Using MapEditor from Maps" [mediawiki/extensions/SemanticMaps] (master) - https://gerrit.wikimedia.org/r/33370 [16:48:15] New patchset: Nischayn22; "Added missing text area." [mediawiki/extensions/SemanticMaps] (master) - https://gerrit.wikimedia.org/r/33373 [16:48:15] New patchset: Nischayn22; "Use i18n for error messages" [mediawiki/extensions/SemanticMaps] (master) - https://gerrit.wikimedia.org/r/33372 [16:48:16] New patchset: Nischayn22; "Base class and hooks for Polgyons" [mediawiki/extensions/SemanticMaps] (master) - https://gerrit.wikimedia.org/r/33363 [16:48:16] New patchset: Nischayn22; "Using the map editor library from Maps" [mediawiki/extensions/SemanticMaps] (master) - https://gerrit.wikimedia.org/r/33365 [16:48:16] New patchset: Nischayn22; "Added Validation class." [mediawiki/extensions/SemanticMaps] (master) - https://gerrit.wikimedia.org/r/33364 [16:48:17] New patchset: Nischayn22; "Using BLOB instead of String which breaks with Store3." [mediawiki/extensions/SemanticMaps] (master) - https://gerrit.wikimedia.org/r/33367 [16:48:17] New patchset: Nischayn22; "Handling of extra parameters in polygons,etc." [mediawiki/extensions/SemanticMaps] (master) - https://gerrit.wikimedia.org/r/33366 [16:48:35] JeroenDeDauw: ^ did that not happen with you ;) [17:02:07] Special:FormStart works like a charm :) [17:29:13] nice :) [17:29:43] I was wondering if I could edit the name of a query form [17:29:50] I tried info tag but I guess thats wrong [17:35:27] Yaron: what's the difference between FormStart and FormEdit? [17:36:17] Special:FormStart is basically just a helper page, that sends people on to the right URL (Special:FormEdit or &action=formedit). It really shouldn't be accessed directly by users. [17:36:51] You'd have to ask Domerich why he's using that and not, say, #forminput. [17:37:28] Yaron: I am using that, too [17:37:55] Well, I can ask you, then. :) [17:38:08] I just want a link that says "add a page with that form". [17:38:14] how do you do that? [17:39:11] Use #formlink. [17:43:46] What's the difference? I mean it creates the same link [17:44:44] (and link type=button doesn't work for some reason. It just creates a button and nothing happens on click) [17:48:14] sven^: when that happens, you can use "post button" instead. [17:48:27] It's probably due to some unconventional URL configuration. [17:48:50] uh, it's the default install of MW [17:49:32] yeah, post button works [17:49:59] so the main difference is that in one case I create the link and in the other case the parser does, right? [17:52:26] #formlink has more options. [17:53:53] let's see what happens if I create a post button in the sidebar ;) [18:29:11] Im confused here [18:29:26] its funny because just one of them would work with what I want [18:29:37] Can I upload my wiki to someplace? [18:31:14] I created a domain on zymic.com but it's giving me shit when I try to import mySQL from wiki [19:59:06] sorry my pc crashed [20:12:10] so what's wrong with *[[Spezial:Abfrage_ausf�hren/ActressQuery| Suche]]? [20:12:28] Why is this stuff still in German even if I switched wiki to english? [22:43:52] Nischayn22: are you still there? [22:45:12] I finally looked into that page-save-leads-to-main-page thing. [22:45:29] It looks like the issue is with some weird URL handling in Apache, on that server. [22:45:36] Though I could be wrong.