Template:GameVersion: Difference between revisions

From Vintage Story Wiki
(Changed the class to messagebox, now it's more highlighted on the page)
Tags: Mobile edit Mobile web edit
No edit summary
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{| class="messagebox" style="width:75%; margin-left:auto; margin-right:auto;"
<includeonly>{{Msgbox
|<div style="text-align:center;">This page was last verified for Vintage Story version <b>{{{1}}}</b></div>
|bgcol= #eee
|}</includeonly><noinclude>
|linecol= #88acf5
 
|text= This {{#if: {{{2|}}} |section|page}} was last verified for Vintage Story version '''{{{1}}}'''.
Takes one anon parameter that's the game version.
|mini = {{#if: {{{2|}}} | true}}
 
|css= box-shadow: 5px 5px 1px #787878;
Example: <code><nowiki>{{GameVersion|1.12}}</nowiki></code>
}}</includeonly><noinclude>
 
{{doc}}
Output:
{{GameVersion|1.12}}
</noinclude>
</noinclude>

Revision as of 20:16, 6 August 2022


[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.