User:Cavila

=Currently working on...= At first, it looked like this was going to be quite a puzzle. The fictional scenario is this:


 * Imagine that you have pages about crime novels, with information about street names being stored on the page and/or in subobjects that describe different book chapters.


 * You want to create a query form that returns the novels in which a given street is named. It should list all the relevant novels and as part of those results, you want to have the first five relevant book chapters together with a brief description.

The trick is to introduce a subquery in the template for subobjects (step 2). Although the value required by this subquery ("High Street") is not normally passed to the template, we are fortunate in having "userparam"!


 * Step 1 - the query

Template:StreetCrime should include
 * Step 2 - the template

{{#if:{{{?Has subobject|}}}| {{#ask: }}} }}} }}
 * ?printout parameters, etc.

Quite simple really, though I haven't tested this yet, let alone the more complex situation in which multiple values from multiple properties are included in the argument.

=Todo= Since SMW 1.8.0.4, data refresh is taking a lot longer than before - not one day but more than five so far (80%). Meannwhile, memory issues are being reported, especially

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 8208 bytes) in .../extensions/SemanticMediaWiki/includes/storage/SQLStore/SMW_Sql3SmwIds.php on line 835

=SIO vs subobject= somewhat outdated

Autonumbering
Define the variable:

and add the variable at the appropriate place in the syntax: