Template:Version info/doc

From Vintage Story Wiki
Lua-Logo.png

This template uses Module:Infobox, a script written in Lua.


Infobox template that presents information relating to a Vintage Story game version, and provides links to the immediate versions surrounding it.

Usage

Template parameters
ParameterDescriptionTypeStatus
NamenameThe patchs' version numberStringoptional
Patch namepatchnameThe patchs' cosmetic name, use 'Hotfixes' if nothing else appliesStringoptional
ImageimageAn image that represents this versionFileoptional
Release datedateThe date this version was releasedDaterequired
Patch typetypeThe type of patch, should be 'Release candidate' or 'Pre-release'Stringsuggested
Hide dev versionsHide devHides the development versions row for use with game versions that had none.Booleanoptional
Parent versionparentThe parent version this patch belongs to eg. 1.17.0-pre.5's parent version would be 1.17.0Versionsuggested
Previous versionprevThe immediate previous version relative to this patchVersionoptional
Previous parent versionprevparentThe immediate previous parent version relative to this patchVersionoptional
Next versionnextThe immediate next version relative to this patchVersionoptional
Next parent versionnextparentThe immediate next parent version relative to this patchVersionoptional

Assigning a value to type will disable the development versions row, as the former is only used on development version pages.

prev, prevparent, next, nextparent should be altered relative to the version depth of the patch in question. i.e. 1.16.4 would have prev=1.16.4|prevparent=1.15.0|next=1.16.5|nextparent=1.17.0, while 1.16.4-rc.2 would have prev=1.16.4-rc.1|prevparent=1.16.3|next=1.16.4-rc.3|nextparent=1.16.5.

The Development versions row autofills with any development version pages that have been created.

Examples

Code Result
{{Version info
|patchname=De-Jank and Game Juice Update
|image=1.17.0_Image.jpg
|date=TBD
|prev=1.16.5
|prevparent=1.16.0}}
Version info
"De-Jank and Game Juice Update"1.17.0 Image.jpg
Release dateTBD
Development versions
    Version chronology
    ◄ 1.16.0
    ◄ 1.16.5
    {{Version info
    |date=July 26, 2022
    |type=Pre-release
    |parent=1.17.0
    |prev=1.16.5-rc.1
    |prevparent=1.16.5
    |next=1.17.0-rc.1
    }}
    Version info
    Release dateJuly 26, 2022
    TypePre-release
    Pre-release for1.17.0
    Version chronology
    ◄ 1.16.5
    ◄ 1.16.5-rc.1
    rc.1 ►

    See also

    Module:CategoryList
    Module:Version