Status: | effective |
Progress: | 100% |
Version: | 2.5.3+ |
$smwgQMaxInlineLimit
Configuration parameter details: | |
Name | $smwgQMaxInlineLimit |
Description | Sets the maximal number of rows ever printed by queries |
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 |
__NOBREADCRUMBLINKS__
$smwgQMaxInlineLimit
is a configuration parameter that sets the maximal number of rows ever printed by a single embedded query on a single page or a query on special page "Ask"Provides an interface that assists users with creating and executing semantic queries, even if a value for the limit parameter was specified explicitly. The configuration parameter was introduced in Semantic MediaWiki 1.0Released on an unknown date unknown versions of MediaWiki.
Note that the limit set with this configuration parameter does not apply to result format "Count"Returns just the number of results, instead of the results themselves..
250
" as a default value for the limit parameter.
500
" if the limit set for it surpassed the limit which was set with this configuration parameter.2
Default setting
$smwgQMaxInlineLimit = 500;
This means that a maximum of "500" results will be displayed even if one specifies a higher value for the limit parameter of queries.
Changing the default setting
To modify the setting to this configuration parameter, add one of the following lines to your "LocalSettings.php" file after the enableSemantics()
call:
- Reduce the maximum limit
$smwgQMaxInlineLimit = 250;
This means that a maximum of "250" results will be displayed for embedded queries or on special page "Ask"Provides an interface that assists users with creating and executing semantic queries even if one specifies a higher value for the limit parameter of queries.
- Increase the maximum limit
$smwgQMaxInlineLimit = 1000;
This means that a maximum of "1000" results will be displayed for embedded queries or on special page "Ask"Provides an interface that assists users with creating and executing semantic queries even if one specifies a higher value for the limit parameter of queries.