Template:GVI/version

From Bohemia Interactive Community
< Template:GVI
Jump to navigation Jump to search

Formats the provided version for {{GVI}}.

Usage

{{GVI/version|version|category}}

  • version: the version number. if not to format <Major>.<Minor> (with two decimals), returns <version>?. e.g 1.0?
  • category: if defined, an unknown/invalid version would only return ?.
Examples
Examples
Code Result
{{GVI/version}} ?
{{GVI/version|?}} ?
{{GVI/version|!}} !?
{{GVI/version|1}} 1?
{{GVI/version|1.5}} 1.5?
{{GVI/version|1.00}} 1.00
{{GVI/version|1.00.54}} 1.00
Examples
Code Result
{{GVI/version||category}} ?
{{GVI/version|?|category}} ?
{{GVI/version|!|category}} ?
{{GVI/version|1|category}} ?
{{GVI/version|1.5|category}} ?
{{GVI/version|1.00|category}} 1.00
{{GVI/version|1.00.54|category}} 1.00.54