Template:SMW display release-oneline: Difference between revisions

From OLPC
Jump to navigation Jump to search
(tweak span)
m (fixes)
Line 39: Line 39:
|-
|-
| {{{1}}} <span style="font-size:80%">([[{{{1}}}|rel. notes]])</span>
| {{{1}}} <span style="font-size:80%">([[{{{1}}}|rel. notes]])</span>
| [{{{4}}} 3])
| [{{{4}}} {{{3}}}]
| {{{5}}}
| {{{5}}}
| [[{{{6}}}]]
| [[{{{6}}}]]
| {{#arraymap:{{{7|}}}|,|x|[[7]]}}
| {{#arraymap:{{{7|}}}|,|x|[[x]]}}
| <ul>{{#arraymap:{{{8|}}}|,|x|<li>x</li>|}}</ul>
| <ul>{{#arraymap:{{{8|}}}|,|x|<li>x</li>|}}</ul>

Revision as of 22:39, 10 October 2008

In development You can use this template in a semantic query to display 'release' semantic information, e.g. the info from 7.1.2.

The reason for this is to

Usage

The query that calls it needs to request display of these fields in the same order.

{{#ask:
  [[Category:Releases]] [[ some more criteria]] ...
  | format=template
  | template=SMW display release-oneline
  | link=none
  | ?Release notes
  | ?Build number
  | ?Download URL
  | ?Also called
  | ?Firmware
  | ?Lead customer
  | ?Has objective
  | default=Message alerting when query returns nothing for criteria!
}}

Notes

Unfortunately, to make pages link to something else you have to pass link=none which makes nothing a link, so for now release notes is separate.

See query at Releases-test.


|- | {{{1}}} ([[{{{1}}}|rel. notes]]) | [{{{4}}} {{{3}}}] | {{{5}}} | [[{{{6}}}]] | {{#arraymap:|,|x|x}}

|

    {{#arraymap:|,|x|
  • x
  • |}}