Template:SMW display release-oneline: Difference between revisions

From OLPC
Jump to navigation Jump to search
(CHECKPOINT: This version works)
(new version taking more fields)
Line 4: Line 4:


The reason for this is to
The reason for this is to
* display a link to release notes
* display the release title with a link to [[Property:release notes]]
* display a link along with the build number
* display the build number as a link to [[Property:Download URL]]
* display objectives in a bulleted list.
* display objectives in a bulleted list.

''Note: this version works for that, but now we have separate [[Property:Release note]] and [[Property:Download URL]].



[[Category:Templates that display semantic query results]]
[[Category:Templates that display semantic query results]]


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

<pre>
<pre>
{{#ask:
{{#ask:
Line 19: Line 18:
| format=template
| format=template
| template=SMW display release-oneline
| template=SMW display release-oneline
| link=none
| ?Release notes
| ?Build number
| ?Build number
| ?Download URL
| ?Also called
| ?Also called
| ?Firmware
| ?Lead customer
| ?Has objective
| ?Has objective
}}
}}
</pre>
</pre>

== 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]].
See query at [[Releases-test]].
Line 30: Line 37:
</noinclude>
</noinclude>
|-
|-
| {{{1}}} ([[Release notes/{{{1}}}]])
| {{{1}}} <span style="font-size:80%>([[{{{1}}}|rel. notes]])
| [{{{4}}} 3])
| {{{2}}}, ( [http://download.laptop.org/xo-1/os/official/656 build URL])
| {{{3}}}
| {{{5}}}
| [[{{{6}}}]]
| <ul>{{#arraymap:{{{4|}}}|,|x|<li>x</li>|}}</ul>
| {{#arraymap:{{{7|}}}|,|x|[[7]]}}
| <ul>{{#arraymap:{{{8|}}}|,|x|<li>x</li>|}}</ul>

Revision as of 22:34, 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
}}

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|7}}

|

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