« SubobjectTemplateLinkNone » : différence entre les versions
De Semantic MediaWiki - Sandbox
Aucun résumé des modifications |
Aucun résumé des modifications |
||
Ligne 1 : | Ligne 1 : | ||
http://wikimedia.7.x6.nabble.com/Show-properties-of-a-subobject-s-parent-page-td5068922.html | http://wikimedia.7.x6.nabble.com/Show-properties-of-a-subobject-s-parent-page-td5068922.html | ||
== Data == | |||
<pre> | |||
[[YourSubobjectProperty1::123]] | |||
[[YourSubobjectProperty2::abc]] | |||
{{#subobject: | |||
|YourSubobjectProperty=Foo | |||
}} | |||
</pre> | |||
[[YourSubobjectProperty1::123]] | |||
[[YourSubobjectProperty2::abc]] | |||
{{#subobject: | {{#subobject: | ||
|YourSubobjectProperty=Foo | |YourSubobjectProperty=Foo | ||
}} | }} | ||
== Output == | == Output with link=none == | ||
<pre> | <pre> | ||
{{#ask: [[YourSubobjectProperty::Foo]] | {{#ask: [[YourSubobjectProperty::Foo]] | ||
Ligne 22 : | Ligne 32 : | ||
|template=SubobjectTemplateLinkNone | |template=SubobjectTemplateLinkNone | ||
|link=none | |link=none | ||
}} | |||
== Output without link=none == | |||
<pre> | |||
{{#ask: [[YourSubobjectProperty::Foo]] | |||
|?YourSubobjectProperty1 | |||
|?YourSubobjectProperty2 | |||
|format=template | |||
|template=SubobjectTemplateLinkNone | |||
}} | |||
</pre> | |||
{{#ask: [[YourSubobjectProperty::Foo]] | |||
|?YourSubobjectProperty1 | |||
|?YourSubobjectProperty2 | |||
|format=template | |||
|template=SubobjectTemplateLinkNone | |||
}} | }} |
Version du 5 novembre 2016 à 07:28
http://wikimedia.7.x6.nabble.com/Show-properties-of-a-subobject-s-parent-page-td5068922.html
Data
[[YourSubobjectProperty1::123]] [[YourSubobjectProperty2::abc]] {{#subobject: |YourSubobjectProperty=Foo }}
123 abc
Output with link=none
{{#ask: [[YourSubobjectProperty::Foo]] |?YourSubobjectProperty1 |?YourSubobjectProperty2 |format=template |template=SubobjectTemplateLinkNone |link=none }}
{{{1}}}:SubobjectTemplateLinkNone#_8fadb850772cb09ca46de3e30ba7c743
{{#ask: [[Has subobject::{{{1}}}]] |?YourParentProperty1 |?YourParentProperty2 }}
YourParentProperty1 | YourParentProperty2 | |
---|---|---|
SubobjectTemplateLinkNone | 123 | abc |
Output without link=none
{{#ask: [[YourSubobjectProperty::Foo]] |?YourSubobjectProperty1 |?YourSubobjectProperty2 |format=template |template=SubobjectTemplateLinkNone }}
{{{1}}}:SubobjectTemplateLinkNone
{{#ask: [[Has subobject::{{{1}}}]] |?YourParentProperty1 |?YourParentProperty2 }}
La description de la requête contient une condition vide.