Template:since

From Bohemia Interactive Community
Jump to navigation Jump to search

Displays a "since game version x.yy" message.

Usage

{{since|game|version|hasLeftMargin}}

  • game: game name (same format as for GVI)
  • version: (Optional) game version - usually major.minor, e.g "1.94"
  • hasLeftMargin: (Optional, default empty) n, false or empty string for no margin, anything else (usually true) to set a left margin (mostly used on a command/function page)
Examples
Code Result
{{since}} since an unknown game/version
{{since|arma2}} since Arma 2
{{since|arma2|1.11}} since Arma 2 v1.11
{{since|arma2|1.11|}} since Arma 2 v1.11
{{since|arma2|1.11|n}} since Arma 2 v1.11
{{since|arma2|1.11|false}} since Arma 2 v1.11
{{since|arma2|1.11|true}} Since Arma 2 v1.11
{{since|arma2|1.11|anything}} Since Arma 2 v1.11
{{since|arma3|1.55.133607|y}} Since Arma 3 v1.55.133607
{{since||1.55.133607|y}} Since an unknown game/version
{{since|||y}} Since an unknown game/version

Source

<span {{#switch:{{{3|}}}|n|false|=>''s|style{{=}}"margin-left: 7em">''S}}ince {{#if:{{{1|}}}|{{{{{1}}}}}{{#if:{{{2|}}}|<nowiki/> v{{{2}}}|}}|an unknown game/version}}''</span>