On Donnerstag, 21. Mai 2009, Dan Bolser wrote:
> 2009/5/17 Markus Krötzsch <mar...@semantic-mediawiki.org>:
> > On Samstag, 9. Mai 2009, Dan Bolser wrote:
> >> Hi,
> >>
> >> I'm using the "intro=" and "outro=" query parameters to provide the
> >> table header and footer to get tabular output with the
> >> "format=template" in an ask query:
> >>
> >> http://smw.referata.com/wiki/Talk:Use_the_ask_template_format_to_create_
> >>tab ular_output
> >>
> >>
> >> This is working great with a couple of caveats:
> >>
> >> 1) the "... further result" link appears at the top of the table for
> >> some reason. I'd expect it to appear after the end of the table... how
> >> is this text interacting with the various "format=" settings?
> >
> > The link is put to the top by MediaWiki since it does not understand how
> > to otherwise treat this text within a table context. The best workaround
> > might be to have "searchlabel=" (empty) as a parameter to completely hide
> > this part. You can give the quer another time with the same parameters
> > but "limit=-1" to get a "further results" label anywhere you want ("-1"
> > skips any checks so that the link is displayed even for 0 results, saving
> > resources, but it might be good to change text to "show all results" or
> > something similar). You can also include this additional query into the
> > "outro=" part to make sure it is only displayed if there are any results
> > at all.
> >
> >> 2) the "... further results" link takes you to a "Special:Ask" page
> >> that ignores the ""intro=" and "outro=" query parameters (leading to a
> >> very messy result). Is it possible to get Special:Ask to respect these
> >> and other settings?
> >
> > This would require some extension of the SMW code. It is not possible in
> > the current SMW-version. Using the above method for creating the "further
> > results" link, a possible workaround would be to use another format in
> > this "limit=-1" query. Then it would at least be usable.
> >
> >> With regard to 2, there appears to be at least one related bug for
> >> "Special:Ask". Click on "... further results" for any
> >> "format=template" query -> Click on "[Edit query]" -> Click "Find
> >> results" -> You see the error "Provide a value for the parameter
> >> "template" for this query format to work.", i.e. the template
> >> parameter is lost when you click edit query, and has to be manually
> >> added (along with intro and outro if necessary).
> >
> > Interesting. This might indeed be the case.
> >
> > In general, it would be very helpful if you could file your bug reports
> > and feature requests at MediaZilla, since we may otherwise forget about
> > them ...
>
> hehe - sorry about that ... sometimes even I forget about them too!
>
> Did you log this one already, 
No.

> or would you like me to go do that?
Yes, please.

> actually I found that even if you do pass a template you get the same
> error.
Yes, we need to adjust some internal parameter handling in Special_Ask, I 
guess.

Markus

>
>
> Thanks for the reply,
> Dan.
>
> > Thanks,
> >
> > Markus
> >
> >> Cheers,
> >> Dan.
> >>
> >> ------------------------------------------------------------------------
> >>--- --- The NEW KODAK i700 Series Scanners deliver under ANY
> >> circumstances! Your production scanning environment may not be a perfect
> >> world - but thanks to Kodak, there's a perfect scanner to get the job
> >> done! With the NEW KODAK i700 Series Scanner you'll get full speed at
> >> 300 dpi even with all image processing features enabled.
> >> http://p.sf.net/sfu/kodak-com
> >> _______________________________________________
> >> Semediawiki-devel mailing list
> >> Semediawiki-devel@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
> >
> > --
> > Markus Krötzsch
> > Semantic MediaWiki    http://semantic-mediawiki.org
> > http://korrekt.org    mar...@semantic-mediawiki.org


-- 
Markus Krötzsch
Semantic MediaWiki    http://semantic-mediawiki.org
http://korrekt.org    mar...@semantic-mediawiki.org

Attachment: signature.asc
Description: This is a digitally signed message part.

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to