Test Subobject 0001

De Semantic MediaWiki - Sandbox

This page contains to subobjects as defined by the template Modèle:Test_Subobject_0001.

Then there is an inline query with

[[Has subobject::{{{FULLPAGENAME}}}]]

No Subobject found

Followed by an inline query with

[[Has subobject::+]] [[Has name::+]]  [[Has Status::+]]

No Subobject found

Notes[modifier | modifier le wikicode]

There are several issues in how you use/apply subobjects (and the #ask) query.

First of all, the template Modèle:Test_Subobject_0001 uses `::` as notation which is not supported, please see the documentation (e.g. Has number=...).

{{#subobject:Test Subobject 0001 with {{{SO-ID|}}}
            |Has number::{{{SO-ID|}}}
            |Has name::{{{SO-Name|}}}
            |Has status::{{{SO-Status|}}}
}}

Secondly, {{#ask: [[Has subobject::{{{FULLPAGENAME}}}]] is not going to work because the subobject is not identified as `Test_Subobject_0001`. If you insist on using {{{FULLPAGENAME}}} you have to use the inverted form as in [[-Has subobject::{{{FULLPAGENAME}}}]].

Thanks for the advice[modifier | modifier le wikicode]

Your are right and I wonder why I did not see this when comparing my working definition and query with the not working ones. I belive that one gets sometimes somehow blind for the code one has written.

Les cookies nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de cookies.