Module:CargoQuery/doc: Difference between revisions

Jump to navigation Jump to search
m
→‎Compound Queries: reword to not imply that there can only be two compound queries
mNo edit summary
m (→‎Compound Queries: reword to not imply that there can only be two compound queries)
Line 33: Line 33:
== Compound Queries ==
== Compound Queries ==
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:
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 any results.
* <code>default</code> for each individual query is disabled; default must be specified outside as an additional argument, which is then applied if no queries return results.
* Each query must be numbered as in <code>1=(query1)</code>, etc.
* Each query must be numbered as in <code>|1=(query1)|2=(query2)|3=...</code>, etc.


=== Example ===
=== Example ===

Navigation menu