Template:GameVersion/doc: Difference between revisions

From Vintage Story Wiki
no edit summary
No edit summary
No edit summary
Line 1: Line 1:
;Description
;Description
:This template is used to signal when a page, or a section of a page, applies to a specific game version.
: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|msgbox}} template for formatting.
;Syntax
;Syntax
:Type <code><nowiki>{{GameVersion|version number|mini}}</nowiki></code> at the top of the section to which it applies.
:Type <code><nowiki>{{GameVersion|Version number|Section}}</nowiki></code> at the top of the section to which it applies.
;Parameters
;Parameters
: Version number '''(required)''': String. This is the version number that is displayed in the text.
:  
: mini (optional): Any. If this parameter is included, the box will be displayed as a mini version (per {{tl|msgbox}}).
{| class="wikitable"
|-
! Parameter !! Description !! Type !! Required
|-
| Version number || The relevant version number || String || Suggested
|-
| Section || Set this to anything if the messagebox applies to a section || Any || No
|}
;Sample output
;Sample output
:<code><nowiki>{{GameVersion|1.17}}</nowiki></code> gives...
:<code><nowiki>{{GameVersion|1.17}}</nowiki></code> gives...
Confirmedusers, editor
2,831

edits