Template:Version info: Difference between revisions

From Vintage Story Wiki
mNo edit summary
mNo edit summary
 
Line 8: Line 8:
|label=Release date
|label=Release date
|field={{{date}}}
|field={{{date}}}
|width=50% }}{{#if: {{{type|{{{hidedev|}}}}}}||{{Infobox row|Development versions|{{#invoke: CategoryList|devVersions}}|1|width=50%}}}}<--
|width=50% }}{{#if: {{{type|{{{hidedev|}}}}}}||{{Infobox row|Development versions|{{#invoke: CategoryList|devVersions}}|1|width=50%}}}}<!--
--!>{{#if: {{{type|}}}|{{Infobox row|Type|{{{type}}}|1}}{{Infobox row|{{{type|}}} for|[[{{{parent}}}]]}} }}<--
-->{{#if: {{{type|}}}|{{Infobox row|Type|{{{type}}}|1}}{{Infobox row|{{{type|}}} for|[[{{{parent}}}]]}} }}<!--
--!>{{Infobox row|header=1|Version chronology|width=50%}}<--
-->{{Infobox row|header=1|Version chronology|width=50%}}<!--
--!>{{Infobox row|full=1|field={{#invoke: Version|prevNextLinks|ver={{{parent|}}}|prev={{{prev|}}}|next={{{next|}}}|prevParent={{{prevparent|}}}|nextParent={{{nextparent|}}}}} }}<--
-->{{Infobox row|full=1|field={{#invoke: Version|prevNextLinks|ver={{{parent|}}}|prev={{{prev|}}}|next={{{next|}}}|prevParent={{{prevparent|}}}|nextParent={{{nextparent|}}}}} }} }} {{#invoke: Version|categories}}</includeonly>
--!>}} {{#invoke: Version|categories}}</includeonly>
<noinclude>{{doc}}
<noinclude>{{doc}}
[[Category:Infoboxes]]</noinclude>
[[Category:Infoboxes]]</noinclude>

Latest revision as of 12:04, 1 September 2022


[view | edit | history | purge this page]Documentation
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

    [view | edit | history | purge this page]The above documentation is transcluded from Template:Version info/doc.