GVI – Template
Fred Gandt (talk | contribs) m (Protected "Template:GVI": High traffic page: Used by pivotal Templates Command and Function ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite))) |
Lou Montana (talk | contribs) (Add unreleased (and long) version support for AR/A4) |
||
(35 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>< | <includeonly>{{#if:{{{1|}}} | ||
| <span class="gvi2 gvi-{{Name|{{{1|}}}|id}}{{#switch:{{lc:{{{1}}}}} | |||
|arma3= {{#if:{{#pos:{{{2|}}}|.}} | |||
| | |||
{{#ifexpr:{{{2}}} < 0.7|<nowiki/> gvi-alpha}} | |||
{{#ifexpr:{{{2}}} >= 0.7 and {{{2}}} < 1|<nowiki/> gvi-beta}} | |||
{{#ifexpr:{{{2}}} > 2.20|<nowiki/> gvi-dev}} <!-- Arma 3 latest stable version is set here --> | |||
{{#if:{{#pos:{{lc:{{{branch|}}}{{{2|}}}}}|dev}}|<nowiki/> gvi-dev}} | |||
{{#if:{{#pos:{{lc:{{{branch|}}}{{{2|}}}}}|diag}}|<nowiki/> gvi-diag}} | |||
| <!-- not an x.yy version --> | |||
{{#if:{{#pos:{{lc:{{{branch|}}}{{{2|}}}}}|dev}}|<nowiki/> gvi-dev}} | |||
{{#if:{{#pos:{{lc:{{{branch|}}}{{{2|}}}}}|diag}}|<nowiki/> gvi-diag}} | |||
}} | |||
|armar | |||
|arma4= {{#if:{{#pos:{{{2|}}}|.}} | |||
| | |||
{{#ifeq:{{#sub:{{{2|}}}|0|2}}|0. | |||
| <nowiki/> gvi-alpha | |||
| {{#ifexpr: {{#explode:{{{2|}}}|.|0}} > 1 or {{#explode:{{{2|}}}|.|1}} > 4|<nowiki/> gvi-dev}} <!-- 1 . 4 --> | |||
}} | |||
}} | |||
= | }}"{{#if:{{{size|}}}|<nowiki/> style="font-size: {{#ifexpr:({{{size}}}*0.5+0.5)*12<24|{{#expr:({{{size}}}*0.5+0.5)*12}}|24}}px; height: {{#expr:{{{size}}}*32}}px; width: {{#expr:{{{size}}}*32}}px" | ||
}}><!-- | |||
{| | --><span class="icon">{{Icon|{{Name|{{{1}}}|id}}|{{#if:{{{size|}}}|{{#expr:floor({{{size}}}*32-2)}}|30}}|link={{#switch:{{lc:{{{1}}}}} | ||
| | |armar | ||
|arma4= :Category:{{Name|{{{1}}}}}/Version {{{2|1.0.0}}} | |||
|#default= :Category:Introduced with {{Name|{{{1}}}}} version {{lc:{{{2|1.00}}}}} | |||
}}}}</span><!-- | |||
--><span class="version"{{#ifexpr:{{#len:{{{2|}}}}} > 4|<nowiki/> style="font-size: 0.9em"}}>{{#switch:{{lc:{{{1}}}}} | |||
|armar | |||
|arma4= {{Link|:Category:{{Name|{{{1}}}}}/Version {{{2|1.0.0}}}|{{{2|1.0.0}}}}} | |||
|#default= {{Link|:Category:Introduced with {{Name|{{{1}}}}} version {{lc:{{{2|}}}}}|{{#if:{{{2|}}}|{{uc:{{{2}}}}}|?}}}} | |||
}}</span><!-- | |||
--></span> | |||
| -no game provided- {{TemplateCase||[[Category:GVI template usage error]]}} | |||
| | }}</includeonly><noinclude>{{GVI/doc}}</noinclude> | ||
| | |||
< | |||
</noinclude> |
Latest revision as of 14:28, 29 September 2025
Template GVI standing for Game Version Icon - must appear inline 1.00 when in a paragraph.
It places the page in the GVI template usage error category if no game is provided.
Usage
{{GVI|game|version|size=}}
- game: identical to Name Identifiers
- version: (Optional) game version such as "1.75", "1.5.0", etc
- default 1.00 for games from Operation Flashpoint up until Arma 3/DayZ - two digits after the period
- default 1.0.0 since Arma Reforger
- branch: (Optional, named parameter, default empty) can be dev or diag for Development or Diagnostic Branch
- size: (Optional, named parameter, default 1) ratio size, ratio × 32px
Code | Result |
---|---|
{{GVI}} | -no game provided- |
{{GVI|ofp}} | ![]() |
{{GVI|ofp|1.30}} | ![]() |
{{GVI|ofp|1.30|size=1}} | ![]() |
{{GVI|ofp|1.30|size=.75}} | ![]() |
{{GVI|ofp|1.30|size=2}} | ![]() |
{{GVI|ofpr|1.80}} | ![]() |
{{GVI|ofpe|1.00}} | ![]() |
{{GVI|arma1|?}} | ![]() |
{{GVI|arma1|1}} | ![]() |
{{GVI|arma1|1.1}} | ![]() |
{{GVI|arma2|1.05}} | ![]() |
{{GVI|arma2oa|1.60}} | ![]() |
{{GVI|arma3|0.05}} | ![]() |
{{GVI|arma3|0.50}} | ![]() |
{{GVI|arma3|0.58}} | ![]() |
{{GVI|arma3|0.70}} | ![]() |
{{GVI|arma3|0.76}} | ![]() |
{{GVI|arma3|1.14}} | ![]() |
{{GVI|arma3|1.99}} | ![]() |
{{GVI|arma3|2.00}} | ![]() |
{{GVI|arma3|2.49}} | ![]() |
{{GVI|arma3|2.50}} | ![]() |
{{GVI|arma3|dev}} | ![]() |
{{GVI|arma3|1.55|branch=dev}} | ![]() |
{{GVI|arma3|diag}} | ![]() |
{{GVI|arma3|1.55|branch=diag}} | ![]() |
{{GVI|carriercommand|1.00}} | ![]() |
{{GVI|dayz|1.00}} | ![]() |
{{GVI|tkoh|1.00}} | ![]() |
{{GVI|tkom|1.00}} | ![]() |
{{GVI|armaR|0.9.5}} | ![]() |
{{GVI|armaR|1.0.0}} | ![]() |
{{GVI|armaR|1.42.0}} | ![]() |
{{GVI|arma4|1.0.0}} | ![]() |
{{GVI|arma4|1.42.0}} | ![]() |