This wiki has been moved to https://github.com/SuperTux/wiki into the mediawiki branch.

Difference between revisions of "Template:Version to status cell"

From SuperTux
Jump to: navigation, search
(Added documentation.)
(Added "Milestone 2" and "Milestone 3".)
 
Line 4: Line 4:
 
  | 0.3 = style="background: #ffffd0; color: #303000;" {{!}} {{#if: {{{2|}}} | {{{2}}} | unstable}}
 
  | 0.3 = style="background: #ffffd0; color: #303000;" {{!}} {{#if: {{{2|}}} | {{{2}}} | unstable}}
 
  | 0.4 = style="background: #ffe0e0; color: #600000;" {{!}} {{#if: {{{2|}}} | {{{2}}} | development}}
 
  | 0.4 = style="background: #ffe0e0; color: #600000;" {{!}} {{#if: {{{2|}}} | {{{2}}} | development}}
  | default {{#if: {{{2|}}} | {{{2}}} | unknown}} [[Category:Version unknown]]
+
  | Milestone 2 = style="background: #ffffd0; color: #303000;" {{!}} {{#if: {{{2|}}} | {{{2}}} | in development}}
 +
| Milestone 3 = style="background: #ffe0e0; color: #600000;" {{!}} {{#if: {{{2|}}} | {{{2}}} | future}}
 +
| {{#if: {{{2|}}} | {{{2}}} | unknown}} [[Category:Version unknown]]
 
}}</includeonly><noinclude>The '''Version to status cell''' template adds a tinted table cell to a table, based on the version specified as the only argument.
 
}}</includeonly><noinclude>The '''Version to status cell''' template adds a tinted table cell to a table, based on the version specified as the only argument.
  

Latest revision as of 02:08, 28 January 2010

The Version to status cell template adds a tinted table cell to a table, based on the version specified as the only argument.

Example usage

This template must be used inside tables as follows:

{|
! Key
! Value
|-
| Status
| {{Version to status cell|0.3}}
|}