Template:SMW display release-oneline: Difference between revisions

From OLPC
Jump to navigation Jump to search
(just make release link to release notes)
(don't show the "OLPC firmware " part of e.g. OLPC Firmware q2e12)
 
(3 intermediate revisions by the same user not shown)
Line 24: Line 24:
| ?Also called
| ?Also called
| ?Firmware
| ?Firmware
| ?Is part of <!-- (this is "ECO")-->
| ?Lead customer
| ?Lead customer
| ?Has objective
| ?Has objective
Line 38: Line 39:
</noinclude>
</noinclude>
|-
|-
| [[{{{2}}}| {{{1}}}]])
| [[{{{2}}}| {{{1}}}]]
| [{{{4}}} {{{3}}}]
| [{{{4}}} {{{3}}}]
| {{{5}}}
| {{{5}}}
| [[{{{6}}}]]
| {{#arraymap:{{{6|}}}|,|x|[[x]]}}
| [[{{{7}}}|{{#replace:{{{7}}}|OLPC Firmware |}}]] <!-- TODO: replace "OLPC Firmware" -->
| {{#arraymap:{{{7|}}}|,|x|[[x]]}}
| <ul>{{#arraymap:{{{8|}}}|,|x|<li>x</li>|}}</ul>
| {{#arraymap:{{{8|}}}|,|x|[[x]]}}
| <ul>{{#arraymap:{{{9|}}}|,|x|<li>x</li>|}}</ul>

Latest revision as of 00:21, 11 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
  | ?Is part of <!-- (this is "ECO")-->
  | ?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.


|- | [[{{{2}}}| {{{1}}}]] | [{{{4}}} {{{3}}}] | {{{5}}} | {{#arraymap:|,|x|x}} | [[{{{7}}}|{{#replace:{{{7}}}|OLPC Firmware |}}]] | {{#arraymap:|,|x|x}}

|

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