Difference between revisions of "Template:GVI"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Fix example and description)
(Add "?" possible version)
Line 1: Line 1:
<includeonly><div class="gvi">[[File:{{Name|{{{1}}}|img}} {{GVI/branch|{{{1}}}|{{{2}}}}} version.gif|link=Category:{{GVI/intro|{{{1}}}}} {{{2|1.00}}}|alt={{GVI/intro|{{{1}}}}}]]<span class="{{GVI/branch|{{{1}}}|{{{2|1.00}}}}}">{{#explode:{{{2|1.00}}}|.|0}}.{{#explode:{{{2|1.00}}}|.|1}}</span>{{#if:{{{3|}}}|[[Category:{{GVI/intro|{{{1}}}}} {{{2|1.00}}}|{{uc:{{PAGENAME}}}}]]|}}</div></includeonly><noinclude>
+
<includeonly><div class="gvi">[[File:{{Name|{{{1}}}|img}} {{GVI/branch|{{{1}}}|{{{2|1.00}}}}} version.gif|link=Category:{{GVI/intro|{{{1}}}|{{{2|1.00}}}}}|alt={{GVI/intro
 +
|{{{1}}}}}
 +
]]<span class="{{GVI/branch|{{{1}}}|{{{2|1.00}}}}}">{{#ifexpr: {{#len:{{{2|1.00}}}}} > 3 and {{#if:{{#pos:{{{2|thereisnopoint}}}|.}}|1|0}}
 +
| {{#explode:{{{2|1.00}}}|.|0}}.{{#explode:{{{2|1.00}}}|.|1}}
 +
| {{#ifeq:{{{2|?}}}|?|?|{{{2|}}}?}}
 +
}}</span>{{#if:{{{3|}}} | [[Category:{{GVI/intro|{{{1}}}|{{{2|1.00}}}}} | {{uc:{{PAGENAME}}}}]] | }}</div></includeonly><noinclude>
 
Template '''''GVI''''' standing for '''''G'''ame '''V'''ersion '''I'''mage''.
 
Template '''''GVI''''' standing for '''''G'''ame '''V'''ersion '''I'''mage''.
  

Revision as of 00:03, 26 December 2019

Template GVI standing for Game Version Image.

Usage

{{GVI|game|version|categorise}}

  • game: identical to Template:Name Identifiers
  • version: (Optional, default 1.00) game version such as "1.75", "?" (if unknown); two digits after the period
  • categorise: (Optional) if set (usually "cat" or "category") categorises the page to [[Category:Introduced in {{Name|game}} version]]
Examples
Code Result
{{GVI|arma0}}
Introduced with Arma: Cold War Assault version ??
{{GVI|ofp|1.30}}
Introduced with Operation Flashpoint version ?1.30
{{GVI|ofpr|1.80}}
Introduced with Operation Flashpoint: Resistance version ?1.80
{{GVI|arma|?}}
{{GVI|arma|1}}
{{GVI|arma|1.1}}
{{GVI|arma2|1.11}}
Introduced with Arma 2 version ?1.11
{{GVI|a2oa|1.63}}
[[File:a2oa version.gif|link=Category:Introduced with a2oa version 1.63|alt=Introduced with a2oa version ? ]]1.63
{{GVI|arma2oa|1.60}}
Introduced with Arma 2: Operation Arrowhead version ?1.60
{{GVI|arma3|dev}}
Introduced with Arma 3 version ?dev?
{{GVI|arma3|0.50}}
Introduced with Arma 3 version ?0.50
{{GVI|arma3|0.58}}
Introduced with Arma 3 version ?0.58
{{GVI|arma3|0.76}}
Introduced with Arma 3 version ?0.76
{{GVI|arma3|1.22}}
Introduced with Arma 3 version ?1.22
{{GVI|tkoh|1.02}}
Introduced with Take On Helicopters version ?1.02
{{GVI|vbs1|2.12.14}}
[[File:vbs1 version.gif|link=Category:Introduced with vbs1 version 2.12.14|alt=Introduced with vbs1 version ? ]]2.12
{{GVI|vbs2|1.49}}
[[File:vbs2 version.gif|link=Category:Introduced with vbs2 version 1.49|alt=Introduced with vbs2 version ? ]]1.49