https://bugzilla.wikimedia.org/show_bug.cgi?id=47472

--- Comment #2 from Daniel Meyer <my.th...@web.de> ---
That way I will get two different subobjects - what if I want to store these
values in the same subobject? It makes the template structure easier, and
there's not exactly a good way to fill optional values in #subobjects. The
other way is conditionally leaving the value out: 
| Property = {{#if: {{{param|}}} | {{{param}}} }}
and using one giant call to #subobject, which makes the template logic so much
more complex.

This is all working as intended in the way that multiple calls to #subobject
with the same identifier will add data to the subobject, just like multiple
calls to #set will add to the properties of the page, except for when a record
is called anywhere but in the first call to #subobject, which causes a fatal
error.

Shouldn't changing the order of SMW calls in the page cause identical results?

From my example above, I want to create a subobject PAGENAME#Test with the
following data, and the records should be added in subsequent #subobject calls
from a template:
* TextProperty: Test & Test2
* RecordProperty: Testing;123 & TestingAgain;234 or more, up to 4 times.

For context: I'm storing recipes, and every record contains an ingredient name
+ its amount. There can be multiple recipes for a single page, so I'm storing a
subobject for each recipe instead of using the page directly.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to