VOOZH about

URL: https://en.wikipedia.org/wiki/Template:Version

⇱ Template:Version - Wikipedia


Jump to content
From Wikipedia, the free encyclopedia
Legend:
Unsupported
Supported
Latest version
Preview version
Future version
👁 Image
Template documentation
[view] [edit] [history] [purge]
👁 Image
The accessibility of this template is in question. The specific issue is: version information conveyed by background color has no text alternative. Relevant discussion may be found on the talk page.
👁 CSS
This template uses TemplateStyles:

Usage

This template presents version history tables in a standardized format.

Many articles on Wikipedia use color-coded tables to illustrate the version or release history of software. The template has been imported from German Wikipedia, where it is used as the current standard for color-coding history tables.

This template is used within Wikitables, making use of the pipe syntax. Legends can be added flexbox or tables. As colors are not visible to blind or visually-impaired readers, this template uses replacement information when necessary to improve accessibility, e.g. using the "title" attribute. (See Wikipedia:WikiProject Accessibility.)

When creating a version history, please note that less is more: Wikipedia is not a directory or changelog. Only important or major releases should be documented in Wikipedia. See the Manual of Style for Computing topics for further guidelines.

General look

Version Year Description
Unsupported: 1.0 2023 Old versions that no longer receive updates
Supported: 2.0 2024 Old versions that still receive updates
Latest version: 3.0 2025 Latest version
Preview version: 4.0 beta 2 2026 Latest preview version
Future version: 4.0 2027 Future version
Legend:
Unsupported
Supported
Latest version
Preview version
Future version

When to avoid

Discontinued products
For a product that is neither supported nor developed, each version would have the "EOL versions" description. Since no distinction would exist between version stages, the use of this template would lack any basis. A simple sentence or a |discontinued=yes in the infobox would do admirably well.

Parameters

Legend box

Parameter Description Notes
1 Legend type Either of the following generates a legend box. Acceptable values include:
l: Horizontal legend
lv: Vertical legend
show Legend contents This parameter is optional. By default the legend box contains the following six items:
  1. Version: (appears bold)
  2. Old version, not maintained
  3. Old version, still maintained
  4. Current version (appears bold)
  5. Latest preview version
  6. Future version

This parameter allows each item to be displayed or hidden with digits. Each digit controls the state of its associated item in the above list.
Acceptable digits are "1" (displays the associated legend item) and "0" (hides the associated legend item).
The parameter is "show=XXX" where "XXX" is a six-digit number.

Additional digits on the left are ignored.

style CSS styles This parameter is optional. Use it to change the template's formatting, style and layout via CSS syntax. In combination with the legend the specified CSS applies to the entire block.

Table cells

Parameter Description Notes
1 Data type Either of the following change the background color of the cell in which it is inserted:
o: Denotes old version that is not maintained
co: Denotes old version that is maintained
c: Denotes latest stable version
cp: Denotes latest preview version
p: Denotes planned future version
2 Text Specifies the text to display on screen, usually a version number or name of a specific version.
style CSS styles This parameter is optional. Use it to change the template's formatting, style and layout via CSS syntax. This parameter can be inserted into a table cell to enforce CSS definitions in that cell.
sortKey Sorting key This parameter is optional. A sortkey is an invisible string used to change the way a certain table cell is sorted. For instance, normally, the phrase "ACME's Bow" is sorted with phrases that start with A. Affixing a sortkey of "Bow" to the phrase causes the phrase to be sorted with other phrases that start with "B" (or, to be more accurate, with "Bow"). For general information on sorting tables, see Help:Tables.

Examples

Legend box

Description What you type What it looks like
Horizontal legend
{{Version |l |show=111111}}
Legend:
Unsupported
Supported
Latest version
Preview version
Future version
Vertical legend
{{Version |lv |show=111111}}
Legend:
Unsupported
Supported
Latest version
Preview version
Future version

Table cells

Description What you type What it looks like
EOL versions
{{Version |o |1.0}}
Unsupported: 1.0
LTS versions
{{Version |co |2.0}}
Supported: 2.0
Latest stable version
{{Version |c |3.0}}
Latest version: 3.0
Preview version
{{Version |cp |4.0}}
Preview version: 4.0
Planned future version
{{Version |p |5.0}}
Future version: 5.0

Sortable tables

The template can be used in sortable tables. If the column version is sortable, the sort key defaults to the value of the version parameter. If you need differing sorting, add the sortKey parameter as follows:

What you type What it looks like
{|class="wikitable sortable"
|-
! Version !! Date !! Description
|-
| {{Version |o |1.0 |sortKey=1.0}}
| 2021-07-23 || [[end-of-life (product)|EOL]] version
|-
| {{Version |o |2.0 |sortKey=1.0}}
| 2022-04-15 || EOL version
|-
| {{Version |co |3.0 |sortKey=2.0}}
| 2024-11-27 || [[long-term support|LTS]] version
|-
| {{Version |c |3.1 |sortKey=3.1}}
| 2025-03-23 || Release to web
|-
| {{Version |cp |3.2 |sortKey=3.2}}
| 2025-03-02 || Beta version
|-
| {{Version |p |4.0 |sortKey=4.0}}
| 2025-09-06 || Future version
|}
Version Date Description
Unsupported: 1.0 2021-07-23 EOL version
Unsupported: 2.0 2022-04-15 EOL version
Supported: 3.0 2024-11-27 LTS version
Latest version: 3.1 2025-03-23 Release to web
Preview version: 3.2 2025-03-02 Beta version
Future version: 4.0 2025-09-06 Future version

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for in articles based on its TemplateData.

TemplateData for Version

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Type1

For a table cell, this is "o", "co", "c", "cp", or "p", meaning old unmaintained version, old maintained version, current, preview, and future version respectively. To create a legend instead, use "l" or "lv", meaning horizontal or vertical legend, respectively.

Example
c
Stringrequired
Text (for cells)2

If this is a cell (see parameter 1), this is required. It is the text to display.

Example
1.0-alpha
Auto value
Contentsuggested
Custom CSSstyle

Custom CSS to apply to the template

Example
text-align: center;
Unknownoptional
Legend components shownshow

If this is a legend, a series of ones (on) and zeros (off) denoting the components of the legend in the order: Legend; EOL versions; LTS versions; Current version; Latest preview version; Future release. If displaying as a table, the text "Legend" must be shown and so the first digit should be omitted.

Default
All parts displayed. (111111)
Example
110110
Stringsuggested
Sort key (for cells)sortKey

When the cells of a table are sorted, this cell would normally be positioned by the visible cell content. If you set this parameter, this cell will be positioned when sorted as if this was its content.

Default
Normally the cell is sorted by its visible content.
Stringoptional

Limitations

  • The current version of the template is known to fail creating correct cell contents when combined with the "colspan" keyword for table cell joining - except for the legend item.
  • The current version of the template doesn't apply styles correctly if only the table cells are used without the legend.

See also