Hard coded property values
- syntax
{{#ask:
[[Category:Song]]
[[Is performer::David Bowie||Queen]]
|format=broadtable
}}
- result
Queried property values
Wrong separator
- syntax
{{#show: Under Pressure |?Is performer }}
- result
David Bowie
; syntax
{{#ask:
[[Category:Song]]
[[Is performer::{{#show: Under Pressure |?Is performer }}]]
|format=broadtable
}}
- result
- → This does not work since the separator is "," while you need a "||" as separator. Thus you get nothing in return:
<ul><li>The part "|David Bowie" of the query was not understood.Results might not be as expected.</li> <!--br--><li>The part "]]" of the query was not understood.Results might not be as expected.</li></ul>
Correct separator
Syntax using #ask without specifying a result format
#ask defaults to the "list" 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
- → This does not work since the "list" format adds extra formatting to the resulting data values. Specify the "plainlist" format for best results.
Syntax using #show without specifying a result format
#show defaults to the "plainlist" format.
{{#show: Under Pressure |?Is performer |valuesep={{!!}} }}
- result
David Bowie
- syntax
{{#ask:
[[Category:Song]]
[[Is performer::{{#show: Under Pressure |?Is performer |valuesep={{!!}} }}]]
|format=broadtable
}}
- result
<ul><li>The part "|David Bowie" of the query was not understood.Results might not be as expected.</li> <!--br--><li>The part "]]" of the query was not understood.Results might not be as expected.</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
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
<ul><li>The part "|David Bowie" of the query was not understood.Results might not be as expected.</li> <!--br--><li>The part "]]" of the query was not understood.Results might not be as expected.</li></ul>