Template:GameVersion/doc: Difference between revisions

From Vintage Story Wiki
m (replace msgbox with Messagebox)
No edit summary
Line 1: Line 1:
;Description
<languages />
:This template is used to signal when a page, or a section of a page, applies to a specific game version. It uses the {{tl|Messagebox}} template for formatting.
 
;Syntax
This template is used to signal when a page, or a section of a page, applies to a specific game version. It uses the {{tl|Messagebox}} template for formatting.
:Type <code><nowiki>{{GameVersion|Version number|Section}}</nowiki></code> at the top of the section to which it applies.
 
;Parameters
<templatedata>
:
{
{| class="wikitable"
"params": {
|-
"1": {
! Parameter !! Description !! Type !! Required
"label": "Version number",
|-
"example": "1.18.0",
| Version number || The relevant version number || String || Suggested
"type": "string",
|-
"required": true,
| Section || Whether or not the messagebox applies to a section || Any || No
"description": "The relevant version number"
|}
},
;Sample output
"2": {
"label": "Section",
"description": "Whether or not the messagebox applies to a section",
"example": "true",
"type": "boolean"
}
},
"paramOrder": [
"1",
"2"
],
"description": ""
}
</templatedata>
 
== Usage ==
 
Type <code><nowiki>{{GameVersion|Version number|Section}}</nowiki></code> at the top of the section to which it applies.
 
=== Examples ===
 
:<code><nowiki>{{GameVersion|1.17}}</nowiki></code> gives...
:<code><nowiki>{{GameVersion|1.17}}</nowiki></code> gives...



Revision as of 21:29, 8 December 2023

Other languages:

This template is used to signal when a page, or a section of a page, applies to a specific game version. It uses the {{Messagebox}} template for formatting.

Template parameters

ParameterDescriptionTypeStatus
Version number1

The relevant version number

Example
1.18.0
Stringrequired
Section2

Whether or not the messagebox applies to a section

Example
true
Booleanoptional

Usage

Type {{GameVersion|Version number|Section}} at the top of the section to which it applies.

Examples

{{GameVersion|1.17}} gives...

This page was last verified for Vintage Story version 1.17.


{{GameVersion|1.17|true}} gives...

This section was last verified for Vintage Story version 1.17.