Module:CargoQuery/doc: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
(add compound example)
mNo edit summary
Line 32: Line 32:


== Compound Queries ==
== Compound Queries ==
You can also run compound queries using <code>compound</code>. It has the same synatax as <code>#cargo_compound_query</code>, but with a few exceptions:
You can also run compound queries using <code>compound</code>. It has the same syntax as <code>#cargo_compound_query</code> but with a few exceptions:
* <code>default</code> for each individual query is disabled; default must be specified outside as an additional argument, which is then applied if both queries do not return.
* <code>default</code> for each individual query is disabled; default must be specified outside as an additional argument, which is then applied if both queries do not return any results.
* Each query must be numbered as in <code>1=(query1)</code>, etc.
* Each query must be numbered as in <code>1=(query1)</code>, etc.


Navigation menu