Template:Version info/doc: Difference between revisions
From Vintage Story Wiki
(Created page with "Infobox template that presents information relating to a ''Vintage Story'' game version, and provides links to the immediate versions surrounding it. == Usage == <table class...") |
m (Added hidedev param) |
||
Line 11: | Line 11: | ||
<tr><th style="font-weight: normal;">Release date</th><td><code>date</code></td><td>The date this version was released</td><td>Date</td><td><b>required</b></td></tr> | <tr><th style="font-weight: normal;">Release date</th><td><code>date</code></td><td>The date this version was released</td><td>Date</td><td><b>required</b></td></tr> | ||
<tr><th style="font-weight: normal;">Patch type</th><td><code>type</code></td><td>The type of patch, should be 'Release candidate' or 'Pre-release'</td><td>String</td><td>suggested</td></tr> | <tr><th style="font-weight: normal;">Patch type</th><td><code>type</code></td><td>The type of patch, should be 'Release candidate' or 'Pre-release'</td><td>String</td><td>suggested</td></tr> | ||
<tr><th style="font-weight: normal;">Hide dev versions</th><td><code>Hide dev</code></td><td>Hides the development versions row for use with game versions that had none.</td><td>Boolean</td><td>optional</td></tr> | |||
<tr><th style="font-weight: normal;">Parent version</th><td><code>parent</code></td><td>The parent version this patch belongs to eg. <code>1.17.0-pre.5's parent version would be 1.17.0</code></td><td>Version</td><td>suggested</td></tr> | <tr><th style="font-weight: normal;">Parent version</th><td><code>parent</code></td><td>The parent version this patch belongs to eg. <code>1.17.0-pre.5's parent version would be 1.17.0</code></td><td>Version</td><td>suggested</td></tr> | ||
<tr><th style="font-weight: normal;">Previous version</th><td><code>prev</code></td><td>The immediate previous version relative to this patch</td><td>Version</td><td>optional</td></tr> | <tr><th style="font-weight: normal;">Previous version</th><td><code>prev</code></td><td>The immediate previous version relative to this patch</td><td>Version</td><td>optional</td></tr> |
Revision as of 12:01, 1 September 2022
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 }} |
|