GVI/version – Template

From Bohemia Interactive Community
< Template:GVI
Revision as of 10:33, 16 November 2021 by Lou Montana (talk | contribs) (Text replacement - "<tt>([^ =]+)<\/tt>" to "{{hl|$1}}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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