Help:Adding specific pages to an inline query
From semantic-mediawiki.org
Semantic extension(s): | Semantic MediaWiki · Semantic Compound Queries |
Further extension(s): | -/- |
Keyword(s): | selecting pages · page selection · inline queries · pages |
Description:
Note: This is a draft.
1. Use OR[edit]
{{#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)[edit]
See extension "Semantic_Compound_Queries"Provides a parser function that displays multiple semantic queries at the same time
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).