Template:GameVersion: Difference between revisions

From Vintage Story Wiki
(Makes more clear what the version means and fills out the example)
(More flexible for other languages)
 
(12 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly><div class="informationbox">This page was last verified for Vintage Story version {{{1}}}</div></includeonly><noinclude>
<noinclude><languages/></noinclude><includeonly>{{Messagebox
Takes one anon parameter that's the game version.
|bgcol= #eee
 
|linecol= #88acf5
Example: <code><nowiki>{{GameVersion|1.12}}</nowiki></code>
|text={{#if: {{{2|}}} |<translate><!--T:1--> This section was last verified</translate>|<translate><!--T:2--> This page was last verified</translate>}} <translate><!--T:3--> for Vintage Story version</translate> '''{{{1}}}'''.
 
|mini = {{#if: {{{2|}}} | true}}
Output:
|css = margin-left:0px;
{{GameVersion|1.12}}
}}</includeonly><noinclude>
{{doc}}
</noinclude>
</noinclude>

Latest revision as of 10:48, 6 December 2023

[view | edit | history | purge this page]Documentation

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.

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