[13:13:53] how exactly does minimum instances= on forms work? I defined a form like this: {{{for template|Quizfrage|multiple|add button text=Frage hinzufügen|embed in field=Quizabend[Quizfragen|minimum instances=7}}} and there are still 0 instances of that field when I load the page and I can save it without adding a single instance [13:13:59] (PS1) VitaliyFilippov: Support subquery negation operator in SemanticMediaWiki queries. [extensions/SemanticMediaWiki] - https://gerrit.wikimedia.org/r/89204 [13:14:20] (SF version is 2.4, but I didn't find anything about this in the changelogs up to now, so I guess that feature already existed back then) [14:33:07] sven^: "minimum instances" was only added in version 2.5.3; it's noted in the version history (I just looked it up). [15:49:03] yaron: I must have been blind [15:49:33] woah, really. [15:49:40] Read right past it yesterday [15:49:43] Well, maybe you mistyped the search term or something. [15:50:12] Quick question, semantic properties can be exported/imported via XML without issue, right? [15:56:40] yaron: now I updated to 2.6 but it still doesn't work ;) [15:56:58] Well, that's more of a problem. :) [15:57:30] Rosencrantz: you can export semantic data in CSV and JSON - I don't know about XML. [15:58:27] Well.. not the data just the properties. I'm setting up an additional site with different data but some of the same properties. [15:58:43] ok, funny thing. If you add the minimum instances=X to {{{field|Quizfragen|holds template}}} AND to the template where it belongs, everything works, but the minimum part ;) [15:58:55] and it doesn't really do what I want. Damn [15:59:01] Rosencrantz: Oh, I see. I don't know how to export property data... [15:59:41] Well.. I'm just exporting the actual property pages. I guess I'll see if it works or not [15:59:48] yaron: is it possible to set a "default number of instances" that already exist when I start using the form? [15:59:49] Oh, I see. [16:00:12] sven^: what do you mean, "everything works, but the minimum part"? [16:00:43] the form worked fine, but the minimum instances part didn't do anything [16:01:17] it started complaining about not enough instances the moment I removed minimum instances=7 from the field definition and only had it at the template definition [16:01:34] So that's good, isn't it? [16:02:05] it's good that it works now, yeah. It's kind of strange that it stops working if you add it at too many places ;) [16:02:23] but as I said, it doesn't do what I want ;) [16:02:40] You mean, it does only half of what you want? [16:03:15] actually I do not want to restrict the user on the amount of instances he adds but I want to make life easier for him [16:03:24] usually there a 7 instances in this case [16:03:39] so I want the form to contain 7 instances when you create a new page with it [16:03:50] saves the user 7 clicks on "add another" [16:04:08] I see - so you don't want to use a "minimum instances" feature at all; you want a "default starting instances". [16:04:15] exactly [16:04:46] I am planning to add that default thing for "minimum instances" - but I guess it wouldn't help you, since you don't want the actual minimum. [16:05:31] actually the minimu is fine for me, too [16:05:41] Oh. [16:05:48] Fine, but not ideal, I guess. [16:06:00] Anyway, you can do the defaulting thing, with a little bit of a hack. [16:06:01] I mean, if you add it like you said, I would be happy ;) [16:06:05] Alright. [16:06:18] it's ok if there is a minimum, as long as there also is a default starting value ;) [16:06:30] Right. [16:06:45] and if the user really only wants to save 6 instances, he'll have to add some dummy values [16:06:53] Well, that's not good. [16:07:09] Anyway - create a page that just has blank calls to all the relevant templates, including seven (or however many it is) for that multiple-instance template. [16:07:41] ...then add "|preload=" to the #forminput call you're using for that form, assuming you're using one. [16:13:31] hum. What do you mean by "blank calls"? [16:13:41] Just "{{template name}}". [16:13:46] ah, k [16:13:48] I did that [16:13:52] it looks good [16:13:58] but the created page is wrong [16:13:58] Cool! [16:14:14] Oh. [16:15:01] uhm, the page should look like this: {{bigtemplate|foo=bar|baz={{smalltemplate|1}}{{smalltemplate|2}} }} [16:15:28] but when I do it like you said, its {{bigtemplate|foo=bar}}{{smalltemplate|1}}{{smalltemplate|2}} [16:16:01] well, but nvm [16:16:05] it's fine for now [16:16:06] Oh yeah, it's an embedded template. [16:16:24] and if you plan on adding that default starting thingy in the future, it's ok [16:16:32] You should try changing that preloaded page to fit that structure. [16:16:53] I don't want to waste your and my time for a very small cosmetic improvement [16:17:01] Alright. [16:17:13] kk, I'll give it one more try and if that doesn't work I will just leave it like it was before [16:17:15] thanks!