« SubobjectSet » : différence entre les versions
De Semantic MediaWiki - Sandbox
Aucun résumé des modifications |
(show output on article) |
||
Ligne 13 : | Ligne 13 : | ||
Here's a subobject specified directly: {{#subobject: | Here's a subobject specified directly: {{#subobject: | ||
|Text=some text manually set. | |Text=some text manually set. | ||
}} | |||
Show the [[Property:Text]] of all subobjects on this article (expecting 6 results): | |||
{{#ask: [[-Has subobject::SubobjectSet]] | |||
|?Text | |||
}} | }} |
Version du 23 septembre 2019 à 16:08
Trying to set subobjects using the template format of an ask query where Template:SubobjectSet takes the query output and sets a subobject with it.
Output:
Set object with Property:Text as: Entry 1
Set object with Property:Text as: Entry 3
Set object with Property:Text as: Entry 4
Set object with Property:Text as: Utilisateur:Krabina
Set object with Property:Text as: Subobject User Property Test/1#_f353aa9e2bb3506026114ae77b76161e
Here's a subobject specified directly:
Show the Property:Text of all subobjects on this article (expecting 6 results):
Text« Text » est une propriété prédéfinie fournie par MediaWiki Sémantique et qui représente un texte de longueur quelconque. | |
---|---|
SubobjectSet | some text manually set. |