Template:History/doc: Difference between revisions

From Vintage Story Wiki
(Created page with "{{Lua|History}} This template creates a table that formats appropriately depending on the number of versions and sub-versions it's given. Changes presented through this templa...")
 
mNo edit summary
 
Line 29: Line 29:
}}
}}
|}
|}
<includeonly>[[Category:Infobox templates]]</includeonly>

Latest revision as of 20:32, 27 August 2022

Lua-Logo.png

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


This template creates a table that formats appropriately depending on the number of versions and sub-versions it's given. Changes presented through this template should only be functional in nature - do not list bug fixes here.

Usage

{{History
|<param>
}}

Any number of parameters can be given, though they must follow a precise format:

|<version>-<devVersion>;<changeNotes>

where <version> is any game version in version history, <devVersion> is any development version such as pre.5 or rc.2 or stable, and <changeNotes> is any relevant change made that patch.

Example

Code Result
{{History
|1.17.0-pre.1;Berry bushes now have surface leaves
|1.16.0-rc.1;A sound now plays when picking berries
|1.13.0;Berry bushes now also get the greenhouse temperature bonus 
}}
History
1.17.0 pre.1 Berry bushes now have surface leaves
1.16.0 rc.1 A sound now plays when picking berries
1.13.0 Berry bushes now also get the greenhouse temperature bonus