Template:SMW display test result-oneline

From OLPC
Revision as of 08:04, 15 August 2008 by Skierpage (talk | contribs) (first cut)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

In development You can use this template in a semantic query to display 'Test result' semantic information, e.g. the info from Berkeley logo.

Goal is to display information in the same format as Template:Test results does on pages like Tests/Sugar Control Panel/Date & Time.

Another approach might be to just use format=embedded in the semantic query, which embeds each matching page, and keep each test result on a subpage.

This uses HTML <table> <tr> <td> syntax (copied using View > Source of Activities page, because skierpage heard that trying to use wiki table markup in a template with SMW had all kinds of problems. But should verify that.

The query that calls it needs to invoke Template:Test results begin, then request display of these fields in the same order, then invoke Test results end. Thus

{{Test results begin}}
{{#ask:
  [[ some criteria]] ...
  | format=template
  | template=SMW display test result-oneline
  | ?Software release
  | ?Build stream
  | ?Build number
  | ?PassFail
  | ?Trac bug number
  | ?Comments
}}
{{Test results end}}

See query at Test result query examples.


|- | Template:1 | Template:2 | Template:3 | Template:4 | Template:5 | {{#arraymap:|,|x|x}} | Template:7