From: Yaron K. <ya...@gm...> - 2009-02-22 23:52:01
|
It's true that the Calendar format doesn't support the 'template' parameter, and it's also true that such support would be very useful. No need to create a separate Calendar format; if you were to add in handling of templates to the existing code, and send your new version to this list, I (or someone else) would be very happy to add that in to the official code. Such a project might be a good introduction to PHP (and MediaWiki and SMW) programming, since it seems like it would be pretty straightforward; mostly a matter of copying existing code from SMW and adding it in to the Calendar format. -Yaron On Sun, Feb 22, 2009 at 3:58 PM, David Loomer <dl...@gm...> wrote: > > I'm having a hard time getting a handle of the options available in using > the > Calendar and Timeline result formats for an inline query. As far as I can > tell, the Calendar format for example has a "limit" parameter option -- and > that's it. That's all that seems documented at > http://semantic-mediawiki.org/wiki/Help:Calendar_format, at least. > > What I'm getting at is: by default, the Calendar format shows each result > simply as the name of the page (namespace included) corresponding to the > given result for the text linking to the page. I'd like to have more > control over this display, per the "|template=" option I have with other > display formats (such as "ul", for instance). However, when I insert > "|template=MyTemplate" nothing is changed, and the list of templates used > shown during Edit mode does not list MyTemplate as one of the templates > used. > > At the very least I'd like the option of showing the text of the link > without the namespace, which in my particular case creates clutter, but > ideally I'd have much more than that, i.e., I would like to build my own > test for display using properties on the page itself, using a template. > > Is this possible? Or should I just learn PHP (not a stretch for me) and > build my own custom Calendar format? > -- > View this message in context: > http://www.nabble.com/Use-templates-for-formatting-of-results-in-Calendar-and-Timeline--tp22150785p22150785.html > Sent from the Semantic Mediawiki - User mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Semediawiki-user mailing list > Sem...@li... > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > |