$smwgQMaxInlineLimit

From semantic-mediawiki.org


Configuration parameter details:
Name $smwgQMaxInlineLimit
Description Sets the maximal number of rows ever printed by an embedded query on a page
Default setting
500
Software Semantic MediaWiki
Since version
Until version still available
Configuration Query settings · inline queries · Query features · Query performance
Keyword number of rows


$smwgQMaxInlineLimit is a configuration parameter that sets the maximal number of rows ever printed by a single embedded query on a single page, even if even if a value for the limit parameter was specified explicitly. The configuration parameter was introduced in Semantic MediaWiki 1.0Released on 31 December 2007 and compatible with MW 1.9.x - 1.12.x..

Until Semantic MediaWiki 2.5.3Released on 8 July 2017 and compatible with MW 1.23.0 - 1.29.x.1 there was a bug which resulted in embedded queries to fall back to the limit "500" if the limit set for it surpassed the limit which was set with this configuration parameter.2

Default setting[edit]

$smwgQMaxInlineLimit = 500;

This means that embedded queries will use "500" as a value for the limit parameter if no other value was specified for it explicitly.

Changing the default setting[edit]

To modify the setting to this configuration parameter, add one of the following lines to your "LocalSettings.php" file after the enableSemantics() call:

Increase the maximum limit
$smwgQMaxInlineLimit = 1000;

This means that embedded queries will use "1000" as a value for the limit parameter if no other value was specified for it explicitly.

See also[edit]

References

  1. ^  Semantic MediaWiki: GitHub pull request gh:smw:2474
  2. ^  Semantic MediaWiki: GitHub pull request gh:smw:242