Différences entre les versions de « Issue/4317 »

De Semantic MediaWiki - Sandbox
Balise : Éditeur de wikicode 2017
(+)
 
(17 versions intermédiaires par 2 utilisateurs non affichées)
Ligne 1 : Ligne 1 :
{{#set:Has text=    }}
+
===Annotation===
 +
====subobject====
 +
<code><nowiki>{{#subobject:NamedSubobject|Has text=Some text}}</nowiki></code>
 +
{{#subobject:NamedSubobject|Has text=Some text}}
  
===== Code =====
+
===Query===
 +
====ask====
 +
<code><nowiki>{{#ask:[[{{FULLPAGENAME}}#NamedSubobject]]|?Has text=|mainlabel=-}}</nowiki></code>
  
<code><nowiki>{{#set:Has text=&ampnbsp;  &ampnbsp;}}</nowiki></code>
+
Result: {{#ask:[[{{FULLPAGENAME}}#NamedSubobject]]|?Has text=|mainlabel=-}}
 +
====show====
 +
<code><nowiki>{{#show:{{FULLPAGENAME}}#NamedSubobject|?Has text}}</nowiki></code>
  
===== Plainlist format =====
+
Result: {{#show:{{FULLPAGENAME}}#NamedSubobject|?Has text}}
  
{{#ask: [[User:Jaideraf]] [[Has text::+]]
+
[[Category:Issue]]
|?Has text
 
|format=plainlist
 
|limit=50
 
|offset=0
 
|link=none
 
|sort=
 
|order=asc
 
|headers=hide
 
|mainlabel=-
 
|searchlabel=… mais resultados
 
|propsep=,
 
|valuesep=,
 
|sep=,
 
}}
 
 
 
====== Character count with plainlist format ======
 
 
 
{{#len:{{#ask: [[User:Jaideraf]] [[Has text::+]]
 
|?Has text
 
|format=plainlist
 
|limit=50
 
|offset=0
 
|link=none
 
|sort=
 
|order=asc
 
|headers=hide
 
|mainlabel=-
 
|searchlabel=… mais resultados
 
|propsep=,
 
|valuesep=,
 
|sep=,
 
}}}}
 
 
 
===== Array format =====
 
 
 
{{#ask: [[User:Jaideraf]] [[Has text::+]]
 
|?Has text
 
|format=array
 
|limit=50
 
|offset=0
 
|link=none
 
|sort=
 
|order=asc
 
|headers=hide
 
|mainlabel=-
 
|searchlabel=… mais resultados
 
|propsep=,
 
|valuesep=,
 
|sep=,
 
}}
 
 
 
====== Character count with array format ======
 
 
 
{{#len:{{#ask: [[User:Jaideraf]] [[Has text::+]]  
 
|?Has text
 
|format=array
 
|limit=50
 
|offset=0
 
|link=none
 
|sort=
 
|order=asc
 
|headers=hide
 
|mainlabel=-
 
|searchlabel=… mais resultados
 
|propsep=,
 
|valuesep=,
 
|sep=,
 
}}}}
 

Dernière version du 6 octobre 2019 à 12:08

Annotation

subobject

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


Query

ask

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

Result: Some text

show

{{#show:{{FULLPAGENAME}}#NamedSubobject|?Has text}}

Result: Some text

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