GVI – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Add font-size limit (24px))
(change A3 stable version)
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}
<includeonly>{{#if:{{{1|}}}
| <span class="gvi2{{#if:{{#pos:{{{2|}}}|.}} |
| <span class="gvi2 gvi-{{Name|{{{1|}}}|id}}{{#switch:{{lc:{{{1}}}}}
{{#ifexpr:{{{2}}} < 0.7|<nowiki/> gvi-alpha}}
|arma3= {{#if:{{#pos:{{{2|}}}|.}}
{{#ifexpr:{{{2}}} >= 0.7 and {{{2}}} < 1|<nowiki/> gvi-beta}}
|
{{#ifeq:{{Name|{{{1}}}|id}} | arma3
{{#ifexpr:{{{2}}} < 0.7|<nowiki/> gvi-alpha}}
| {{#ifexpr: {{{2}}} > 2.02 or ({{{2}}} > 1 and {{#replace:{{{2}}}|.}} mod 2)|<nowiki/> gvi-dev}}
{{#ifexpr:{{{2}}} >= 0.7 and {{{2}}} < 1|<nowiki/> gvi-beta}}
}}
{{#ifexpr:{{{2}}} > 2.18|<nowiki/> gvi-dev}} <!-- Arma 3 latest stable version is set here -->
}}{{#if:{{#pos:{{lc:{{{1}}}{{{2|}}}}}|dev}}|<nowiki/> gvi-dev}}{{#if:{{#pos:{{lc:{{{1}}}{{{2|}}}}}|diag}}|<nowiki/> gvi-diag}}"{{#if:{{{size|}}}|<nowiki/> style="font-size: {{#ifexpr:({{{size}}}/2+0.5)*12<24|{{#expr:({{{size}}}/2+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:{{{size}}}*32-2}}|30}}}}</span><span class="version">[[:Category:Introduced with {{Name|{{{1}}}}} version {{lc:{{{2|}}}}}|{{#if:{{{2|}}}|{{uc:{{{2}}}}}|?}}]]</span></span>
|<!-- not a x.yy version -->
| -no game provided-
{{#if:{{#pos:{{lc:{{{branch|}}}{{{2|}}}}}|dev}}|<nowiki/> gvi-dev}}
}}</includeonly><noinclude>Template '''''GVI''''' standing for '''''G'''ame '''V'''ersion '''I'''con'' - should appear inline {{{{FULLPAGENAME}}|arma3|1.00}} when in a paragraph.
{{#if:{{#pos:{{lc:{{{branch|}}}{{{2|}}}}}|diag}}|<nowiki/> gvi-diag}}
 
}}
== Usage ==
|armar= {{#ifeq:{{#sub:{{{2|}}}|0|3}}|0.9|<nowiki/> gvi-alpha}}
{{<nowiki/>GVI|'''''game'''''|'''''version'''''|'''''size='''''}}
}}"{{#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"
* game: identical to [[Template:Name|Name Identifiers]]
}}><!--
* version: (Optional, default <tt>1.00</tt>) game version such as "1.75", '''two digits''' after the period
--><span class="icon">{{Icon|{{Name|{{{1}}}|id}}|{{#if:{{{size|}}}|{{#expr:floor({{{size}}}*32-2)}}|30}}|link=:Category:Introduced with {{Name|{{{1}}}}} version {{lc:{{{2|}}}}}|{{#if:{{{2|}}}|{{uc:{{{2}}}}}|?}}}}</span><!--
* size: (Optional, default <tt>1</tt>) ratio size, ratio &times; 32px
--><span class="version"{{#ifexpr:{{#len:{{{2|}}}}} > 4|<nowiki/> style="font-size: 0.9em"}}>[[:Category:Introduced with {{Name|{{{1}}}}} version {{lc:{{{2|}}}}}|{{#if:{{{2|}}}|{{uc:{{{2}}}}}|?}}]]</span><!--
 
--></span>
{| class="wikitable"
| -no game provided- {{TemplateCase||[[Category:GVI template usage error]]}}
|+ Examples
}}</includeonly><noinclude>{{GVI/doc}}</noinclude>
! Code
! Result
|-
| <tt><nowiki>{{GVI}}</nowiki></tt>
| {{ {{FULLPAGENAME}} }}
|-
| <tt><nowiki>{{GVI|ofp}}</nowiki></tt>
| {{{{FULLPAGENAME}}|ofp}}
|-
| <tt><nowiki>{{GVI|ofp|1.30}}</nowiki></tt>
| {{{{FULLPAGENAME}}|ofp|1.30}}
|-
| <tt><nowiki>{{GVI|ofp|1.30|size=1}}</nowiki></tt>
| {{{{FULLPAGENAME}}|ofp|1.30|size=1}}
|-
| <tt><nowiki>{{GVI|ofp|1.30|size=.75}}</nowiki></tt>
| {{{{FULLPAGENAME}}|ofp|1.30|size=.75}}
|-
| <tt><nowiki>{{GVI|ofp|1.30|size=2}}</nowiki></tt>
| {{{{FULLPAGENAME}}|ofp|1.30|size=2}}
|-
| <tt><nowiki>{{GVI|ofpr|1.80}}</nowiki></tt>
| {{{{FULLPAGENAME}}|ofpr|1.80}}
|-
| <tt><nowiki>{{GVI|ofpe|1.00}}</nowiki></tt>
| {{{{FULLPAGENAME}}|ofpe|1.00}}
|-
| <tt><nowiki>{{GVI|arma1|?}}</nowiki></tt>
| {{{{FULLPAGENAME}}|arma1|?}}
|-
| <tt><nowiki>{{GVI|arma1|1}}</nowiki></tt>
| {{{{FULLPAGENAME}}|arma1|1}}
|-
| <tt><nowiki>{{GVI|arma1|1.1}}</nowiki></tt>
| {{{{FULLPAGENAME}}|arma1|1.1}}
|-
| <tt><nowiki>{{GVI|arma2|1.05}}</nowiki></tt>
| {{{{FULLPAGENAME}}|arma2|1.05}}
|-
| <tt><nowiki>{{GVI|arma2oa|1.60}}</nowiki></tt>
| {{{{FULLPAGENAME}}|arma2oa|1.60}}
|-
| <tt><nowiki>{{GVI|arma3|0.05}}</nowiki></tt>
| {{{{FULLPAGENAME}}|arma3|0.05}}
|-
| <tt><nowiki>{{GVI|arma3|0.50}}</nowiki></tt>
| {{{{FULLPAGENAME}}|arma3|0.50}}
|-
| <tt><nowiki>{{GVI|arma3|0.58}}</nowiki></tt>
| {{{{FULLPAGENAME}}|arma3|0.58}}
|-
| <tt><nowiki>{{GVI|arma3|0.70}}</nowiki></tt>
| {{{{FULLPAGENAME}}|arma3|0.70}}
|-
| <tt><nowiki>{{GVI|arma3|0.76}}</nowiki></tt>
| {{{{FULLPAGENAME}}|arma3|0.76}}
|-
| <tt><nowiki>{{GVI|arma3|1.14}}</nowiki></tt>
| {{{{FULLPAGENAME}}|arma3|1.14}}
|-
| <tt><nowiki>{{GVI|arma3|1.99}}</nowiki></tt>
| {{{{FULLPAGENAME}}|arma3|1.99}}
|-
| <tt><nowiki>{{GVI|arma3|2.00}}</nowiki></tt>
| {{{{FULLPAGENAME}}|arma3|2.00}}
|-
| <tt><nowiki>{{GVI|arma3|2.49}}</nowiki></tt>
| {{{{FULLPAGENAME}}|arma3|2.49}}
|-
| <tt><nowiki>{{GVI|arma3|2.50}}</nowiki></tt>
| {{{{FULLPAGENAME}}|arma3|2.50}}
|-
| <tt><nowiki>{{GVI|arma3dev|1.00}}</nowiki></tt>
| {{{{FULLPAGENAME}}|arma3dev|1.00}}
|-
| <tt><nowiki>{{GVI|arma3|dev}}</nowiki></tt>
| {{{{FULLPAGENAME}}|arma3|dev}}
|-
| <tt><nowiki>{{GVI|arma3dev}}</nowiki></tt>
| {{{{FULLPAGENAME}}|arma3dev}}
|-
| <tt><nowiki>{{GVI|arma3diag|1.00}}</nowiki></tt>
| {{{{FULLPAGENAME}}|arma3diag|1.00}}
|-
| <tt><nowiki>{{GVI|arma3|diag}}</nowiki></tt>
| {{{{FULLPAGENAME}}|arma3|diag}}
|-
| <tt><nowiki>{{GVI|carriercommand|1.00}}</nowiki></tt>
| {{{{FULLPAGENAME}}|carriercommand|1.00}}
|-
| <tt><nowiki>{{GVI|dayz|1.00}}</nowiki></tt>
| {{{{FULLPAGENAME}}|dayz|1.00}}
|-
| <tt><nowiki>{{GVI|tkoh|1.00}}</nowiki></tt>
| {{{{FULLPAGENAME}}|tkoh|1.00}}
|-
| <tt><nowiki>{{GVI|tkom|1.00}}</nowiki></tt>
| {{{{FULLPAGENAME}}|tkom|1.00}}
|}
 
[[Category:Templates|{{uc:{{PAGENAME}}}}]]</noinclude>

Latest revision as of 16:06, 8 October 2024

Template GVI standing for Game Version Icon - must appear inline Arma 3 logo black.png1.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, default 1.00) game version such as "1.75", two digits after the period
  • 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
Examples
Code Result
{{GVI}} -no game provided-
{{GVI|ofp}} Logo A0.png?
{{GVI|ofp|1.30}} Logo A0.png1.30
{{GVI|ofp|1.30|size=1}} Logo A0.png1.30
{{GVI|ofp|1.30|size=.75}} Logo A0.png1.30
{{GVI|ofp|1.30|size=2}} Logo A0.png1.30
{{GVI|ofpr|1.80}} ofpr version.gif1.80
{{GVI|ofpe|1.00}} ofpe logo.png1.00
{{GVI|arma1|?}} Logo A1 black.png?
{{GVI|arma1|1}} Logo A1 black.png1
{{GVI|arma1|1.1}} Logo A1 black.png1.1
{{GVI|arma2|1.05}} Logo A2.png1.05
{{GVI|arma2oa|1.60}} A2 OA Logo.png1.60
{{GVI|arma3|0.05}} Arma 3 logo black.png0.05
{{GVI|arma3|0.50}} Arma 3 logo black.png0.50
{{GVI|arma3|0.58}} Arma 3 logo black.png0.58
{{GVI|arma3|0.70}} Arma 3 logo black.png0.70
{{GVI|arma3|0.76}} Arma 3 logo black.png0.76
{{GVI|arma3|1.14}} Arma 3 logo black.png1.14
{{GVI|arma3|1.99}} Arma 3 logo black.png1.99
{{GVI|arma3|2.00}} Arma 3 logo black.png2.00
{{GVI|arma3|2.49}} Arma 3 logo black.png2.49
{{GVI|arma3|2.50}} Arma 3 logo black.png2.50
{{GVI|arma3|dev}} Arma 3 logo black.pngDEV
{{GVI|arma3|1.55|branch=dev}} Arma 3 logo black.png1.55
{{GVI|arma3|diag}} Arma 3 logo black.pngDIAG
{{GVI|arma3|1.55|branch=diag}} Arma 3 logo black.png1.55
{{GVI|carriercommand|1.00}} CC Logo.png1.00
{{GVI|dayz|1.00}} dayzlogoinv.png1.00
{{GVI|tkoh|1.00}} tkoh logo small.png1.00
{{GVI|tkom|1.00}} tkom logo small v2.png1.00
{{GVI|armaR|0.9.5}} armareforger-symbol black.png0.9.5
{{GVI|armaR|1.0.0}} armareforger-symbol black.png1.0.0
{{GVI|arma4|1.0.0}} arma4-symbol black.png1.0.0