On Mittwoch, 7. November 2007, Sergey Chernyshev wrote:
> Great news that other formats support templates as well. I wonder if you
> have templated formatting for tables in plans - I had a use case where
> selected property was a URL and all looked very good except for this URL
> stretching the table badly while it was fine to have the same link text for
> all of the rows.

Yes, I could use this as well. But this feature comes only after the 
implementation of {{#ask...}} (since this change will change the interaction 
of inline queries with MediaWiki's table creation).

Markus

>
> On Nov 7, 2007 1:43 PM, Markus Krötzsch <[EMAIL PROTECTED]> wrote:
> > Yes, this appears to be a bug. For a quick workaround, consider using the
> > formats "list", "ul" or "ol", all of which also support the
> > template-parameter for formatting (and this one certainly works with
> > SMW1.0).
> > Note that with list, you can also choose the separator between items
> > (parameter sep), so as to simulate "template" quite well.
> >
> > Markus
> >
> > On Mittwoch, 7. November 2007, cnit wrote:
> > > Hi!
> > > After adding additional priviledges to database (CREATE TEMPORARILY
> > > TABLES and DROP), my upgrade seems to work. I wonder, whether these
> > > additional priviledges are mentioned in INSTALL file, because older
> > > SMW's were happy with just ALTER.
> > >
> > > But there's some disappointment, my query templates don't work
> > > anymore. I've used to display custom HTML layout with such query:
> > >
> > > <div class="tbl-yarsu">
> > > <!-- {{newshead}} -->
> > > <ask sort="Date" order="descending" limit="20" format="template"
> > > template="newsrow" default="There is no news" searchlabel="Browse all
> >
> > news
> >
> > > ..."> [[Date:=*]]
> > > [[Category:News]]
> > > </ask></div>
> > >
> > > and a such simple Template:newsrow
> > >
> > > <div class="tr-yarsu">
> > > <div class="td-yarsu yarsu-date">{{{2}}}</div>
> > > <div class="td-yarsu yarsu-article">{{{1}}}</div>
> > > <div class="space-line-yarsu"></div>
> > > </div>
> > >
> > >
> > > The query works, yet the value of {{{2}}} is omitted. it's empty,
> > > none.. :-(
> > >
> > > {{{1}}} expands just fine..
> > >
> > > Dmitriy
> >
> > -------------------------------------------------------------------------
> >
> > > This SF.net email is sponsored by: Splunk Inc.
> > > Still grepping through log files to find problems?  Stop.
> > > Now Search log events and configuration files using AJAX and a browser.
> > > Download your FREE copy of Splunk now >> http://get.splunk.com/
> > > _______________________________________________
> > > Semediawiki-devel mailing list
> > > Semediawiki-devel@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
> >
> > --
> > Markus Krötzsch
> > Institut AIFB, Universät Karlsruhe (TH), 76128 Karlsruhe
> > phone +49 (0)721 608 7362        fax +49 (0)721 608 5998
> > [EMAIL PROTECTED]        www  http://korrekt.org
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?  Stop.
> > Now Search log events and configuration files using AJAX and a browser.
> > Download your FREE copy of Splunk now >> http://get.splunk.com/
> > _______________________________________________
> > Semediawiki-devel mailing list
> > Semediawiki-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/semediawiki-devel



-- 
Markus Krötzsch
Institut AIFB, Universät Karlsruhe (TH), 76128 Karlsruhe
phone +49 (0)721 608 7362        fax +49 (0)721 608 5998
[EMAIL PROTECTED]        www  http://korrekt.org

Attachment: pgp7z1kbPqrMW.pgp
Description: PGP signature

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to