« Test Subobject 0001 » : différence entre les versions
De Semantic MediaWiki - Sandbox
Aucun résumé des modifications |
Aucun résumé des modifications Balise : Éditeur de wikicode 2017 |
||
Ligne 32 : | Ligne 32 : | ||
|default = No Subobject found | |default = 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=...). | |||
<pre><nowiki> | |||
{{#subobject:Test Subobject 0001 with {{{SO-ID|}}} | |||
|Has number::{{{SO-ID|}}} | |||
|Has name::{{{SO-Name|}}} | |||
|Has status::{{{SO-Status|}}} | |||
}} | |||
</nowiki></pre> | |||
Secondly, <nowiki>{{#ask: [[Has subobject::{{{FULLPAGENAME}}}]] </nowiki> is not going to work because the subobject is not identified as `Test_Subobject_0001`. If you insist on using <nowiki>{{{FULLPAGENAME}}}</nowiki> you have to use the inverted form as in <nowiki>[[-Has subobject::{{{FULLPAGENAME}}}]]</nowiki>. |
Version du 12 juillet 2018 à 13:50
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}}}]].