GVI/version – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
(Template creation)
 
m (Fix template categorisation)
Line 82: Line 82:
|}
|}


[[Category:Templates|{{uc:PAGENAME}}]]
[[Category:Templates|{{uc:{{PAGENAME}}}}]]
</noinclude>
</noinclude>

Revision as of 21:50, 19 July 2020

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