Template:Version/doc: Difference between revisions

no edit summary
(Created page with "==Description== This template is used to create a link to the update specific subpages of Version History in-line with text. ==Usage== This template can be used by entering the following onto a relevant page. <pre>{{Version|''version number''}}</pre> ===Examples=== <pre>{{Version|1.2}}</pre> results in... {{Version|1.2}} <pre>This change was implemented in update {{Version|1.3.1}}</pre> results in... This change was implemented in update {{Version|1.3.1}}. <pr...")
 
No edit summary
Line 28: Line 28:
Major update pages are numbered Update 1, Update 2, etc., and the template will link to the article and display with the version number (e.g. '''1.3''' not '''Update 3'''). Hotfixes and minor update subpages are named 1.2.1, 1.2.2, etc and will display as such.
Major update pages are numbered Update 1, Update 2, etc., and the template will link to the article and display with the version number (e.g. '''1.3''' not '''Update 3'''). Hotfixes and minor update subpages are named 1.2.1, 1.2.2, etc and will display as such.


===Mapped Values===
If the version entered is a value not mapped it will default to the [[Version History]] main page.
If the version entered is a value not mapped it will default to the [[Version History]] main page.
{| class=wikitable
!Input
!Output
|-
|1.0||{{version|1.0}}
|-
|1.0.5||{{version|1.0.5}}
|-
|1.1
| rowspan=3 | {{version|1.1}}
|-
|1.1.0
|-
|1.1.5
|-
|1.1.20||{{version|1.1.20}}
|-
|1.1.30||{{version|1.1.30}}
|-
|1.2
| rowspan=2 | {{version|1.2}}
|-
|1.2.0
|-
|1.2.2||{{version|1.2.2}}
|-
|1.2.3||{{version|1.2.3}}
|-
|1.3
| rowspan=2 | {{version|1.3}}
|-
|1.3.0
|-
|1.3.1||{{version|1.3.1}}
|-
|Other value
|{{version|Other value}}
|}


<includeonly>[[Category:General wiki templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>
<includeonly>[[Category:General wiki templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>