Template:Version info/doc
From Vintage Story Wiki
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
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name | The patchs' version number | String | optional |
Patch name | patchname | The patchs' cosmetic name, use 'Hotfixes' if nothing else applies | String | optional |
Image | image | An image that represents this version | File | optional |
Release date | date | The date this version was released | Date | required |
Patch type | type | The type of patch, should be 'Release candidate' or 'Pre-release' | String | suggested |
Hide dev versions | Hide dev | Hides the development versions row for use with game versions that had none. | Boolean | optional |
Parent version | parent | The parent version this patch belongs to eg. 1.17.0-pre.5's parent version would be 1.17.0 | Version | suggested |
Previous version | prev | The immediate previous version relative to this patch | Version | optional |
Previous parent version | prevparent | The immediate previous parent version relative to this patch | Version | optional |
Next version | next | The immediate next version relative to this patch | Version | optional |
Next parent version | nextparent | The immediate next parent version relative to this patch | Version | optional |
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 |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 }} |
|