Template:Latest Releases: Difference between revisions
(reorder, stable - release candidate - devel is more logical order) |
(improve explanation, emphasize usage) |
||
Line 19: | Line 19: | ||
| server = inline |
| server = inline |
||
| extra = inline }} |
| extra = inline }} |
||
This template |
This template shows the latest releases available, displayed in an "infobox". |
||
You can control which lines appear in the infobox (except for the header and ''Stable:'' lines which will always show). |
|||
The actual links |
The actual links and strings for each line are separate from the template to simplify maintenance. '''To update a line in the infobox''' follow the links below: |
||
<span class="plainlinks"> |
<span class="plainlinks"> |
||
Line 31: | Line 32: | ||
<td> {{:Template:Latest Releases/stable}} </td><td> [{{fullurl:Template:Latest Releases/stable|action=edit}} edit] </td></tr> |
<td> {{:Template:Latest Releases/stable}} </td><td> [{{fullurl:Template:Latest Releases/stable|action=edit}} edit] </td></tr> |
||
<tr><td> Stable flavors </td> |
<tr><td> Stable flavors </td> |
||
<td> {{:Template:Latest Releases/flavors}} </td><td> [{{fullurl:Template:Latest Releases/flavors|action=edit}} edit] </td></tr> |
<td> {{:Template:Latest Releases/flavors}} ''currently disabled'' </td><td> [{{fullurl:Template:Latest Releases/flavors|action=edit}} edit] </td></tr> |
||
<tr><td> Devel </td> |
<tr><td> Devel </td> |
||
<td> {{:Template:Latest Releases/devel}} </td><td> [{{fullurl:Template:Latest Releases/devel|action=edit}} edit] </td></tr> |
<td> {{:Template:Latest Releases/devel}} </td><td> [{{fullurl:Template:Latest Releases/devel|action=edit}} edit] </td></tr> |
||
Line 47: | Line 48: | ||
== Usage == |
== Usage == |
||
'''Don't hardcode build and release information in pages.''' |
|||
Unless a page is obviously historical (e.g. "April 2007 test results") never say "the current release is 708". |
|||
Instead, invoke this template to present latest release information. |
|||
<nowiki>{{</nowiki> Latest Releases |
<nowiki>{{</nowiki> Latest Releases |
||
Line 59: | Line 63: | ||
'<nowiki><center>[[Autoreinstallation image|how to update...]]</center></nowiki>' --> |
'<nowiki><center>[[Autoreinstallation image|how to update...]]</center></nowiki>' --> |
||
<nowiki>}}</nowiki> |
<nowiki>}}</nowiki> |
||
If you just want to display a particular latest build within a paragraph, you can invoke one of the sub-templates: |
|||
<nowiki>The current release candidate is {{Latest Releases/rc}}</nowiki> |
|||
== Samples == |
== Samples == |
||
Line 78: | Line 86: | ||
<nowiki>{{</nowiki> Latest Releases | firmware = inline | extra = inline <nowiki>}}</nowiki> |
<nowiki>{{</nowiki> Latest Releases | firmware = inline | extra = inline <nowiki>}}</nowiki> |
||
<br clear="all"> |
<br clear="all"> |
||
{{ Latest Releases | stable = inline | rc = inline | devel = inline | livecd = inline | firmware = inline | extra = inline | extra_text = <center>possibly |
{{ Latest Releases | stable = inline | rc = inline | devel = inline | livecd = inline | firmware = inline | extra = inline | extra_text = <center>possibly |
||
a [[The OLPC Wiki|link]] or text</center>}} |
|||
<nowiki>{{</nowiki> Latest Releases |
<nowiki>{{</nowiki> Latest Releases |
||
| stable = inline |
| stable = inline |
||
Line 86: | Line 95: | ||
| firmware = inline |
| firmware = inline |
||
| extra = inline |
| extra = inline |
||
| extra_text = <nowiki><center>possibly |
| extra_text = <nowiki><center>possibly |
||
a [[The OLPC Wiki|link]] or text</center> }}</nowiki> |
|||
<br clear="all"> |
|||
<nowiki>The current release candidate is {{Latest Releases/rc}}</nowiki> |
|||
''produces''<br /> |
|||
The current release candidate is {{Latest Releases/rc}} |
|||
[[Category:Template]] |
[[Category:Template]] |
||
</noinclude> |
</noinclude> |
Revision as of 20:59, 3 August 2008
Stable: 13.2.11 || 2020-01-29
Release candidate: disabled
Devel: 13.2.0 || upcoming
LiveCD: LiveCD (2008-11-06)
Firmware: Q2E48 || 2011-10-13
Server: OLPC_XS_xs-0.7 || 2012-02-20
This template shows the latest releases available, displayed in an "infobox". You can control which lines appear in the infobox (except for the header and Stable: lines which will always show).
The actual links and strings for each line are separate from the template to simplify maintenance. To update a line in the infobox follow the links below:
Line | Current text | |
RC | disabled | edit |
Stable | 13.2.11 || 2020-01-29 | edit |
Stable flavors | currently disabled | edit |
Devel | 13.2.0 || upcoming | edit |
Live-CD | LiveCD (2008-11-06) | edit |
Firmware | Q2E48 || 2011-10-13 | edit |
Server | xs-0.7 || 2012-02-20 | edit |
Extra Text |
| edit |
Usage
Don't hardcode build and release information in pages. Unless a page is obviously historical (e.g. "April 2007 test results") never say "the current release is 708". Instead, invoke this template to present latest release information.
{{ Latest Releases | stable = inline <!-- OPTIONAL -- shows the stable flavors --> | rc = inline <!-- OPTIONAL -- shows the release candidate info --> | devel = inline <!-- OPTIONAL -- shows the devel-build info --> | livecd = inline <!-- OPTIONAL -- shows the live-cd info --> | firmware = inline <!-- OPTIONAL -- shows the firmware info --> | server = inline <!-- OPTIONAL -- shows the server info --> | extra = inline <!-- OPTIONAL -- shows the (optional) extra text --> | extra_text = whatever <!-- OPTIONAL -- comment text (if enabled by extra) if none defined: '<center>[[Autoreinstallation image|how to update...]]</center>' --> }}
If you just want to display a particular latest build within a paragraph, you can invoke one of the sub-templates:
The current release candidate is {{Latest Releases/rc}}
Samples
{{ Latest Releases | stable = inline }}
{{ Latest Releases | devel = inline }}
{{ Latest Releases | livecd = inline }}
{{ Latest Releases | firmware = inline }}
Stable: 13.2.11 || 2020-01-29
Firmware: Q2E48 || 2011-10-13
Server: OLPC_XS_xs-0.7 || 2012-02-20
{{ Latest Releases | firmware = inline | extra = inline }}
Stable: 13.2.11 || 2020-01-29
Release candidate: disabled
Devel: 13.2.0 || upcoming
LiveCD: LiveCD (2008-11-06)
Firmware: Q2E48 || 2011-10-13
Server: OLPC_XS_xs-0.7 || 2012-02-20
{{ Latest Releases | stable = inline | rc = inline | devel = inline | livecd = inline | firmware = inline | extra = inline | extra_text = <center>possibly a [[The OLPC Wiki|link]] or text</center> }}
The current release candidate is {{Latest Releases/rc}}
produces
The current release candidate is disabled