Help:Adding specific pages to an inline query

From Linux Web Expert

File:OOjs UI icon lightbulb-yellow.svg <translate> Note:</translate>

This is a draft.

1. Use OR

{{#ask: [[Category:…]] [[<Property name>::<Property value>]] OR [[<Page A>]] OR [[<Page B>]]
|…

Note, however, that too many pages separated by OR will result in an error, as it simply throws up a long list of pages.

2. Use Semantic Compound Query (SCQ)

See extension "Semantic_Compound_Queries"No description was provided.

Note that SCQ can work with parser functions in the following manner, making it fit for use in templates:

{{#if: {{{A|}}} {{{B|}}} {{{C|}}}|<br/>{{
#compound_query: {{#if: {{{A|}}}|[[{{{A|}}}]]}} …
|  {{#if: {{{B|}}}|[[{{{B|}}}]]}} …
|  {{#if: {{{C|}}}|[[{{{C|}}}]]}} ….
   |format=template
   |template=<…>
}}}}

The query will work fine if A, B or C is empty).

See also