That just totally confused me.
First off, there are no multiple instance templates. This isn't a form.
You were attempting to query in the secondary template for OrderID which you will never get because it isn't associated with a Mod page. It is associated with all of the subobjects on the ModList page for the version of STEP you are querying, but the query doesn't pass that in (mainlabel=-). It is available to you in the primary query of the subojects by requesting it:
|?OrderId
A template format for a query is only necessary for one of two things (or both):
- Formatting results in a custom manner that isn't provided by SMW
- Chaining queries for additional information on related pages, as you can't place a query inside a query
As for querying of subobjects versus properties, they are mostly the same. All properties are tied to a Wiki page (not templates), so you are requesting pages that match the query conditions, and then proceed to ask for Properties that exist on those resultant pages. Subobjects are slightly different as they reference the page in which they are used, so it's a reverse mapping. When asking for mods in a STEP version, the query condition is the subobject-property "Version", which returns the sub-object, which is mapped to the ModList page, and since each suboject has a unique ID (random ID which we care nothing about), you get all subobjects back instead of the actual page. No template is required for either scenario to get at the data. The only time you need a template is for the 2 reasons above.
Instead of having the if parser function couldn't you do this or no...
{{#ask:[[Concept:ModsInSTEP]] [[Property:IsCore]]
No, that won't work because the data isn't in the suboject which is what is being queried. The purpose of the subobjects for the STEP installation order is to record the Mod and it's order. Any additional information can then be queried from the Mod page itself using a template format. It is also always better to use {{#show}} when needing access to a single property in downstream queries.