Hi,

that's a bit confusing for me because 'offset' is just working fine for 
my standalone inline queries.
E.g. for 4 existing  instances of 'Category:Test'

{{#ask:[[Category:Test]]
|offset=3
}}

displays only one result.
So i think it is (or maybe evolved in the meantime to) more than just a 
"helper parameter".
I think this parameter would perfectly fit in this function like this:

[...]
array( 'name' => 'offset', 'type' => 'int', 'description' => wfMsg( 
'smw_paramdesc_offset' ) ),
[...]
Of course the language key for its tooltip has to be greated.

One nice side effect of this change would be that there's automatically 
an input field at Special:Ask and all other query interfaces that lean 
on this great functionality.

So perhaps you want to think about this param again.

Kings regards,
     Benjamin

Am 15.03.2011 17:16, schrieb Yaron Koren:
> Hi,
>
> I believe that was my decision - when I populated that getParameters() 
> call, I decided not to include 'offset', even though it's an allowed 
> parameter, because it seemed to only get used by Special:Ask, to do 
> pagination, and not within standalone #ask queries. So it didn't seem 
> like a true parameter that was worth adding an input for - more like a 
> "helper parameter".
>
> -Yaron
>
> On Tue, Mar 15, 2011 at 11:44 AM, Benjamin Langguth 
> <langg...@ontoprise.de <mailto:langg...@ontoprise.de>> wrote:
>
>     Hello at all,
>
>     i was just working with different result printers and one question
>     came
>     up for me.
>
>     The abstract class SMWResultPrinter [1] is implemented by each (new)
>     result printer and contains a function called getParameters to
>     offer the
>     supported parameters.
>     I found the parameter 'limit' in it but now i'm wondering why 'offset'
>     is not listed by default here.
>     I think they are pretty familar so can anyone explain why this
>     'offset'
>     is missing here?
>
>     Thanks & regards,
>     Benjamin
>
>     [1]:
>     
> http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/SemanticMediaWiki/includes/SMW_QueryPrinter.php?revision=78625&view=markup
>     
> <http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/SemanticMediaWiki/includes/SMW_QueryPrinter.php?revision=78625&view=markup>
>
>     --
>     Benjamin Langguth
>     Halo Team
>     ontoprise GmbH – know how to use Know-how
>     - - -
>     SemanticGuide ist die "Most Wanted Solution" auf der Field Service
>     2011
>     http://www.ontoprise.de/de/news/most-wanted-solution-2011/
>     - - -
>     An der RaumFabrik 29; 76227 Karlsruhe
>     Tel.: +49 721 509809-0 <tel:%2B49%20721%20509809-0>; Fax: +49 721
>     509809-11 <tel:%2B49%20721%20509809-11>
>     mailto:i...@ontoprise.de <mailto:i...@ontoprise.de>, www:
>     http://www.ontoprise.de
>     Sitz der Gesellschaft: Karlsruhe, Amtsgericht Mannheim, HRB 109540
>     Geschäftsführer: Prof. Dr. Jürgen Angele, Dipl.Wi.-Ing. Hans-Peter
>     Schnurr
>     - - -
>
>
>     
> ------------------------------------------------------------------------------
>     Colocation vs. Managed Hosting
>     A question and answer guide to determining the best fit
>     for your organization - today and in the future.
>     http://p.sf.net/sfu/internap-sfd2d
>     _______________________________________________
>     Semediawiki-devel mailing list
>     Semediawiki-devel@lists.sourceforge.net
>     <mailto:Semediawiki-devel@lists.sourceforge.net>
>     https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
>
>
>
>
> -- 
> WikiWorks · MediaWiki Consulting · http://wikiworks.com


-- 
Benjamin Langguth
Halo Team
ontoprise GmbH – know how to use Know-how
- - -
SemanticGuide ist die "Most Wanted Solution" auf der Field Service 2011
http://www.ontoprise.de/de/news/most-wanted-solution-2011/
- - -
An der RaumFabrik 29; 76227 Karlsruhe
Tel.: +49 721 509809-0; Fax: +49 721 509809-11
mailto:i...@ontoprise.de, www: http://www.ontoprise.de
Sitz der Gesellschaft: Karlsruhe, Amtsgericht Mannheim, HRB 109540
Geschäftsführer: Prof. Dr. Jürgen Angele, Dipl.Wi.-Ing. Hans-Peter Schnurr
- - -


------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to