« Test Subobject 0001 » : différence entre les versions
De Semantic MediaWiki - Sandbox
Aucun résumé des modifications Balise : Éditeur de wikicode 2017 |
Aucun résumé des modifications |
||
Ligne 1 : | Ligne 1 : | ||
'''This page contains to subobjects as defined by the template [[Modèle:Test_Subobject_0001]].''' | '''This page contains to subobjects as defined by the template [[Modèle:Test_Subobject_0001]].''' | ||
{{Test Subobject 0001 | {{Test Subobject 0001 | ||
|SO-ID=1 | |SO-ID=1 | ||
|SO-Name=ABC | |SO-Name=ABC | ||
Ligne 7 : | Ligne 7 : | ||
}} | }} | ||
{{Test Subobject 0001 | {{Test Subobject 0001 | ||
|SO-ID=2 | |SO-ID=2 | ||
|SO-Name=DEF | |SO-Name=DEF |
Version du 12 juillet 2018 à 14:08
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
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}}}]].