Index: trunk/extensions/SemanticMediaWiki/includes/queryprinters/SMW_QueryPrinter.php |
— | — | @@ -609,6 +609,10 @@ |
610 | 610 | $params['limit']->setDescription( wfMsg( 'smw_paramdesc_limit' ) ); |
611 | 611 | $params['limit']->setDefault( 20 ); |
612 | 612 | |
| 613 | + $params['offset'] = new Parameter( 'offset', Parameter::TYPE_INTEGER ); |
| 614 | + $params['offset']->setDescription( wfMsg( 'smw_paramdesc_offset' ) ); |
| 615 | + $params['offset']->setDefault( 0 ); |
| 616 | + |
613 | 617 | $params['headers'] = new Parameter( 'headers' ); |
614 | 618 | $params['headers']->setDescription( wfMsg( 'smw_paramdesc_headers' ) ); |
615 | 619 | $params['headers']->addCriteria( new CriterionInArray( 'show', 'hide', 'plain' ) ); |
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_Messages.php |
— | — | @@ -67,6 +67,7 @@ |
68 | 68 | |
69 | 69 | // Messages for query parameter descriptions |
70 | 70 | 'smw_paramdesc_limit' => 'The maximum number of results to return', |
| 71 | + 'smw_paramdesc_offset' => 'The offset of the first result', |
71 | 72 | 'smw_paramdesc_headers' => 'Display the headers/property names', |
72 | 73 | 'smw_paramdesc_mainlabel' => 'The label to give to the main page name', |
73 | 74 | 'smw_paramdesc_link' => 'Show values as links', |