Différences entre les versions de « Issue/3387 »
De Semantic MediaWiki - Sandbox
(chg) |
(form) |
||
Ligne 67 : | Ligne 67 : | ||
; result | ; result | ||
{{#show: Under Pressure |?Is performer |valuesep={{!!}} }} | {{#show: Under Pressure |?Is performer |valuesep={{!!}} }} | ||
+ | |||
+ | ; syntax | ||
<pre> | <pre> | ||
− | |||
{{#ask: | {{#ask: | ||
[[Category:Song]] | [[Category:Song]] | ||
Ligne 82 : | Ligne 83 : | ||
}} | }} | ||
− | + | ==== syntax using #ask and specifying a result format ==== | |
− | + | ; syntax | |
<pre> | <pre> | ||
{{#ask: | {{#ask: | ||
[[Category:Song]] | [[Category:Song]] | ||
− | [[Is performer::{{#ask: [[Under Pressure]] |?Is performer |format= | + | [[Is performer::{{#ask: [[Under Pressure]] |?Is performer |format=plainlist |headers=hide |link=none |mainlabel=- |valuesep={{!!}} }}]] |
|format=broadtable | |format=broadtable | ||
}} | }} | ||
</pre> | </pre> | ||
− | + | ; result | |
{{#ask: | {{#ask: | ||
[[Category:Song]] | [[Category:Song]] | ||
− | [[Is performer::{{#ask: [[Under Pressure]] |?Is performer |format= | + | [[Is performer::{{#ask: [[Under Pressure]] |?Is performer |format=plainlist |headers=hide |link=none |mainlabel=- |valuesep={{!!}} }}]] |
|format=broadtable | |format=broadtable | ||
}} | }} | ||
− | + | ==== syntax using #show and specifying a result format ==== | |
+ | ; syntax | ||
<pre> | <pre> | ||
{{#ask: | {{#ask: | ||
[[Category:Song]] | [[Category:Song]] | ||
− | [[Is performer::{{#show: Under Pressure |?Is performer |valuesep={{!!}} }}]] | + | [[Is performer::{{#show: Under Pressure |?Is performer |format=plainlist |valuesep={{!!}} }}]] |
|format=broadtable | |format=broadtable | ||
}} | }} | ||
</pre> | </pre> | ||
− | + | ; result | |
{{#ask: | {{#ask: | ||
[[Category:Song]] | [[Category:Song]] | ||
− | [[Is performer::{{#show: Under Pressure |?Is performer |valuesep={{!!}} }}]] | + | [[Is performer::{{#show: Under Pressure |?Is performer |format=plainlist |valuesep={{!!}} }}]] |
|format=broadtable | |format=broadtable | ||
}} | }} | ||
[[Category:Issue]] | [[Category:Issue]] |
Version du 2 septembre 2018 à 20:02
Hard coded property values
- syntax
{{#ask: [[Category:Song]] [[Is performer::David Bowie||Queen]] |format=broadtable }}
- result
000003 |
000023 |
000078 |
000126 |
Queried property values
wrong separator
- syntax
{{#show: Under Pressure |?Is performer }}
- result
- → This does not work since the separator is "," while you need a "||" as separator. Thus you get nothing in return:
; syntax {{#ask: [[Category:Song]] [[Is performer::{{#show: Under Pressure |?Is performer }}]] |format=broadtable }}
- result
000003 |
000023 |
000078 |
000126 |
<ul><li>La partie « |David Bowie » de la requête n’a pas été comprise. Les résultats peuvent être inattendus.</li> <!--br--><li>La partie « ]] » de la requête n’a pas été comprise. Les résultats peuvent être inattendus.</li></ul>
correct separator
syntax with #ask without specifying a result format
{{#ask: [[Under Pressure]] |?Is performer |headers=hide |link=none |mainlabel=- |valuesep={{!!}} }}
- result
David Bowie
; syntax {{#ask: [[Category:Song]] [[Is performer::{{#ask: [[Under Pressure]] |?Is performer |headers=hide |link=none |mainlabel=- |valuesep={{!!}} }}]] |format=broadtable }}
- result
000003 |
000023 |
000078 |
000126 |
syntax with #show without specifying a result format
{{#show: Under Pressure |?Is performer |valuesep={{!!}} }}
- result
- syntax
{{#ask: [[Category:Song]] [[Is performer::{{#show: Under Pressure |?Is performer |valuesep={{!!}} }}]] |format=broadtable }}
- result
000003 |
000023 |
000078 |
000126 |
<ul><li>La partie « |David Bowie » de la requête n’a pas été comprise. Les résultats peuvent être inattendus.</li> <!--br--><li>La partie « ]] » de la requête n’a pas été comprise. Les résultats peuvent être inattendus.</li></ul>
syntax using #ask and specifying a result format
- syntax
{{#ask: [[Category:Song]] [[Is performer::{{#ask: [[Under Pressure]] |?Is performer |format=plainlist |headers=hide |link=none |mainlabel=- |valuesep={{!!}} }}]] |format=broadtable }}
- result
000003 |
000023 |
000078 |
000126 |
syntax using #show and specifying a result format
- syntax
{{#ask: [[Category:Song]] [[Is performer::{{#show: Under Pressure |?Is performer |format=plainlist |valuesep={{!!}} }}]] |format=broadtable }}
- result
000003 |
000023 |
000078 |
000126 |
<ul><li>La partie « |David Bowie » de la requête n’a pas été comprise. Les résultats peuvent être inattendus.</li> <!--br--><li>La partie « ]] » de la requête n’a pas été comprise. Les résultats peuvent être inattendus.</li></ul>