Template:GameVersion/doc

This script takes the passed-in version number and determines the correct version number which it then uses to retrieve the link to the History page for the version and, depending on the optional parameters specified, returns one of the following
 * Version Number (as a link to the History page)
 * Version Name (as a link to the History page)     DEFAULT
 * History Link (as a link to the History page)

Syntax

Optional Parameters

The default values are Parameter values are case-insensitive so Num, NUM and num all work fine.
 * Version or first/only unnamed parameter   = Version Number
 * The Version Number will be corrected to a standard value
 * If not a recognised value it will be replaced with ? which allows the calling script to check for a valid version number, see examples below
 * Link = Y to make the Output into a link, N = just return the Output
 * Output = What to output!
 * NUM = the corrected Version Number (to be displayed as the link)
 * TEXT = the nicely formatted Version (Link) Name (to be displayed as the link)
 * LINK = the unformatted Version Link (to be displayed as the link)
 * Version Number relevant parameters, only relevant if |Output=NUM
 * BR = Y (actually, anything will do!) to wrap Version Number in brackets
 * V = value ... precede Version Number with value ... normally "v" (case-sensitive)
 * Style = font styling e.g. font-size:12px or color:white
 * Parameter names are case-sensitive so Output= is ok but output= and OUTPUT= are not.
 * Link = Y
 * Output = TEXT
 * No brackets and no styling

No Optional Parameters

The current release is. The current release is.

Racing School Advanced is a time-limited event that allows players to win the BMW Z4 sDrive35is. Since the event has been a part of the Amateur category. Racing School Advanced is a time-limited event that allows players to win the BMW Z4 sDrive35is. Since the event has been a part of the Amateur category.

Link Parameter Set

Output Parameter Set

{{GameVersion|Version=2.6|Output=num}

{{GameVersion|Version=3.5|Output=TEXT}

{{GameVersion|Version=4.2|Output=link}

{{GameVersion|Version=3.7|Output=wibble}

Both Parameters Set

{{GameVersion|Version=2.6|Link=N|Output=num}

{{GameVersion|Version=2.6|Link=N|Output=TEXT}

{{GameVersion|Version=2.6|Link=N|Output=link}

{{GameVersion|Version=2.6|Link=N|Output=wibble}

{{GameVersion|Version=2.6|Link=Y|Output=NUM}

{{GameVersion|Version=2.6|Link=Y|Output=text}

{{GameVersion|Version=2.6|Link=Y|Output=LINK}

{{GameVersion|Version=2.6|Link=Y|Output=wibble}

{{GameVersion|Version=2.6|Link=wibble|Output=wobble}

Invalid Version Number The function of this script is to return a corrected version (number, name or link text) (as a link to the History page). Invalid values will not be returned, nor will they be highlighted in red, it is up to the calling script to check for errors and deal with them accordingly.

Checking in a script

- - - - - -

Version Number is.

Version Number 6.0.5 is.

Version Number 6.0.7 is.

Version Number 7 is.

More Parameters!

Wrapping the Version Number in brackets and/or preceding it with v

Styling