« SubobjectTemplateLinkNone » : différence entre les versions

De Semantic MediaWiki - Sandbox

Aucun résumé des modifications
Aucun résumé des modifications
Ligne 3 : Ligne 3 :
== Data ==
== Data ==
<pre>
<pre>
[[YourSubobjectProperty1::123]]
[[YourParentProperty1::123]]
[[YourSubobjectProperty2::abc]]
[[YourParentProperty1::abc]]


{{#subobject:
{{#subobject:
  |YourSubobjectProperty=Foo
  |YourSubobjectProperty=Foo
|YourSubobjectProperty1=1
|YourSubobjectProperty2=2
}}
}}
</pre>
</pre>
[[YourSubobjectProperty1::123]]
[[YourParentProperty1::123]]
[[YourSubobjectProperty2::abc]]
[[YourParentProperty1::abc]]


{{#subobject:
{{#subobject:
  |YourSubobjectProperty=Foo
  |YourSubobjectProperty=Foo
|YourSubobjectProperty1=1
|YourSubobjectProperty2=2
}}
}}
== Output with link=none ==
== Output with link=none ==

Version du 5 novembre 2016 à 07:29

http://wikimedia.7.x6.nabble.com/Show-properties-of-a-subobject-s-parent-page-td5068922.html

Data

[[YourParentProperty1::123]]
[[YourParentProperty1::abc]]

{{#subobject:
 |YourSubobjectProperty=Foo
 |YourSubobjectProperty1=1
 |YourSubobjectProperty2=2
}}

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
}}
 YourParentProperty1YourParentProperty2
SubobjectTemplateLinkNone123abc


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.

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