GVI/version – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Fix template categorisation)
m (Text replacement - "<tt>([^ =]+)<\/tt>" to "{{hl|$1}}")
 
Line 21: Line 21:
== Usage ==
== Usage ==
{{<nowiki/>GVI/version|'''''version'''''|'''''category'''''}}
{{<nowiki/>GVI/version|'''''version'''''|'''''category'''''}}
* version: the version number. if not to format '''<Major>.<Minor>''' (with '''two''' decimals), returns <tt>&lt;version&gt;?</tt>. e.g <tt>1.0?</tt>
* version: the version number. if not to format '''<Major>.<Minor>''' (with '''two''' decimals), returns {{hl|&lt;version&gt;?}}. e.g {{hl|1.0?}}
* category: if defined, an unknown/invalid version would only return <tt>?</tt>.
* category: if defined, an unknown/invalid version would only return {{hl|?}}.


{|
{|

Latest revision as of 11:33, 16 November 2021

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