« Issue/4317 » : différence entre les versions

De Semantic MediaWiki - Sandbox
(testing if it is a name thing)
Balise : Éditeur de wikicode 2017
(testing anonymous subobject (not sure if #show ever suported this type of query))
Balise : Éditeur de wikicode 2017
Ligne 8 : Ligne 8 :
===Query===
===Query===
====ask====
====ask====
<code><nowiki>{{#ask:[[{{FULLPAGENAME}}]]|?Has text=|mainlabel=-}}</nowiki></code>
<code><nowiki>{{#ask:[[-Has subobject::{{FULLPAGENAME}}]]|?Has text=|mainlabel=-}}</nowiki></code>


Result: {{#ask:[[{{FULLPAGENAME}}]]|?Has text=|mainlabel=-}}
Result: {{#ask:[[-Has subobject::{{FULLPAGENAME}}]]|?Has text=|mainlabel=-}}
====show====
====show====
<code><nowiki>{{#show:{{FULLPAGENAME}}|?Has text}}</nowiki></code>
<code><nowiki>{{#show:-Has subobject::{{FULLPAGENAME}}|?Has text}}</nowiki></code>


Result: {{#show:{{FULLPAGENAME}}|?Has text}}
Result: {{#show:-Has subobject::{{FULLPAGENAME}}|?Has text}}

Version du 1 octobre 2019 à 15:47

Annotation

subobject

{{#subobject: |Has text=Some text}}


Query

ask

{{#ask:[[-Has subobject::{{FULLPAGENAME}}]]|?Has text=|mainlabel=-}}

Result: Some text

show

{{#show:-Has subobject::{{FULLPAGENAME}}|?Has text}}

Result:

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