Difference between revisions of "Template:GVI"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Remove vbs# usage)
(GVI v2 - refresh time)
Line 1: Line 1:
<includeonly><span 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}}} | {{{2|1.00}}}}}]]<span class="{{GVI/branch | {{{1}}} | {{{2|1.00}}}}}">{{GVI/version|{{{2|1.00}}}}}</span>{{#if:{{{3|}}} | [[Category:{{GVI/intro | {{{1}}} | {{{2|1.00}}}}} | {{uc:{{PAGENAME}}}}]] | }}</span></includeonly><noinclude>
+
<includeonly>{{#if:{{{1|}}}
Template '''''GVI''''' standing for '''''G'''ame '''V'''ersion '''I'''mage'' - should appear inline {{GVI|arma3|1.00}} when in a paragraph.
+
| <span class="gvi2{{#if:{{#pos:{{{2|}}}|.}} |
 
+
{{#ifexpr:{{{2}}} < 0.7|<nowiki/> gvi-alpha}}
This template uses:
+
{{#ifexpr:{{{2}}} >= 0.7 and {{{2}}} < 1|<nowiki/> gvi-beta}}
* {{Template|GVI/branch}}
+
{{#ifeq:{{Name|{{{1}}}|id}} | arma3
* {{Template|GVI/intro}}
+
| {{#ifexpr: {{{2}}} > 2.02 or ({{{2}}} > 1 and {{#replace:{{{2}}}|.}} mod 2)|<nowiki/> gvi-dev}}
* {{Template|GVI/version}}
+
}}
 +
}}{{#if:{{#pos:{{lc:{{{1}}}{{{2|}}}}}|dev}}|<nowiki/> gvi-dev}}{{#if:{{#pos:{{lc:{{{1}}}{{{2|}}}}}|diag}}|<nowiki/> gvi-diag}}"><span class="icon">{{Icon|{{Name|{{{1}}}|id}}|38}}</span><span class="version">[[:Category:Introduced with {{Name|{{{1}}}}} version {{lc:{{{2|}}}}}|{{#if:{{{2|}}}|{{uc:{{{2}}}}}|?}}]]</span></span>
 +
| -no game provided-
 +
}}</includeonly><noinclude>Template '''''GVI''''' standing for '''''G'''ame '''V'''ersion '''I'''con'' - should appear inline {{{{FULLPAGENAME}}|arma3|1.00}} when in a paragraph.
  
 
== Usage ==
 
== Usage ==
{{<nowiki/>GVI|'''''game'''''|'''''version'''''|'''''categorise'''''}}
+
{{<nowiki/>GVI|'''''game'''''|'''''version'''''}}
* game: identical to [[Template:Name|Template:Name Identifiers]]
+
* game: identical to [[Template:Name|Name Identifiers]]
* version: (Optional, default <tt>1.00</tt>) game version such as "1.75", "?" (if unknown); '''two digits''' after the period
+
* version: (Optional, default <tt>1.00</tt>) game version such as "1.75", '''two digits''' after the period
* categorise: (Optional) if set (usually "cat" or "category") categorises the page to <tt>[[<nowiki/>[[:Category:Introduced with]] ''game'' version ''version'']]</tt> (e.g [[:Category:Introduced with {{arma3}} version 1.00]])
 
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 17: Line 19:
 
! Code
 
! Code
 
! Result
 
! Result
 +
|-
 +
| <tt><nowiki>{{GVI}}</nowiki></tt>
 +
| {{ {{FULLPAGENAME}} }}
 
|-
 
|-
 
| <tt><nowiki>{{GVI|ofp}}</nowiki></tt>
 
| <tt><nowiki>{{GVI|ofp}}</nowiki></tt>
| {{GVI|ofp}}
+
| {{{{FULLPAGENAME}}|ofp}}
 
|-
 
|-
 
| <tt><nowiki>{{GVI|ofp|1.30}}</nowiki></tt>
 
| <tt><nowiki>{{GVI|ofp|1.30}}</nowiki></tt>
| {{GVI|ofp|1.30}}
+
| {{{{FULLPAGENAME}}|ofp|1.30}}
 
|-
 
|-
 
| <tt><nowiki>{{GVI|ofpr|1.80}}</nowiki></tt>
 
| <tt><nowiki>{{GVI|ofpr|1.80}}</nowiki></tt>
| {{GVI|ofpr|1.80}}
+
| {{{{FULLPAGENAME}}|ofpr|1.80}}
 +
|-
 +
| <tt><nowiki>{{GVI|ofpe|1.00}}</nowiki></tt>
 +
| {{{{FULLPAGENAME}}|ofpe|1.00}}
 
|-
 
|-
 
| <tt><nowiki>{{GVI|arma1|?}}</nowiki></tt>
 
| <tt><nowiki>{{GVI|arma1|?}}</nowiki></tt>
| {{GVI|arma1|?}}
+
| {{{{FULLPAGENAME}}|arma1|?}}
 
|-
 
|-
 
| <tt><nowiki>{{GVI|arma1|1}}</nowiki></tt>
 
| <tt><nowiki>{{GVI|arma1|1}}</nowiki></tt>
| {{GVI|arma1|1}}
+
| {{{{FULLPAGENAME}}|arma1|1}}
 
|-
 
|-
 
| <tt><nowiki>{{GVI|arma1|1.1}}</nowiki></tt>
 
| <tt><nowiki>{{GVI|arma1|1.1}}</nowiki></tt>
| {{GVI|arma1|1.1}}
+
| {{{{FULLPAGENAME}}|arma1|1.1}}
 
|-
 
|-
| <tt><nowiki>{{GVI|arma2|1.11}}</nowiki></tt>
+
| <tt><nowiki>{{GVI|arma2|1.05}}</nowiki></tt>
| {{GVI|arma2|1.11}}
+
| {{{{FULLPAGENAME}}|arma2|1.05}}
|-
 
| <tt><nowiki>{{GVI|a2oa|1.63}}</nowiki></tt>
 
| {{GVI|a2oa|1.63}}
 
 
|-
 
|-
 
| <tt><nowiki>{{GVI|arma2oa|1.60}}</nowiki></tt>
 
| <tt><nowiki>{{GVI|arma2oa|1.60}}</nowiki></tt>
| {{GVI|arma2oa|1.60}}
+
| {{{{FULLPAGENAME}}|arma2oa|1.60}}
 
|-
 
|-
| <tt><nowiki>{{GVI|arma3|dev}}</nowiki></tt>
+
| <tt><nowiki>{{GVI|arma3|0.05}}</nowiki></tt>
| {{GVI|arma3|dev}}
+
| {{{{FULLPAGENAME}}|arma3|0.05}}
 
|-
 
|-
 
| <tt><nowiki>{{GVI|arma3|0.50}}</nowiki></tt>
 
| <tt><nowiki>{{GVI|arma3|0.50}}</nowiki></tt>
| {{GVI|arma3|0.50}}
+
| {{{{FULLPAGENAME}}|arma3|0.50}}
 
|-
 
|-
 
| <tt><nowiki>{{GVI|arma3|0.58}}</nowiki></tt>
 
| <tt><nowiki>{{GVI|arma3|0.58}}</nowiki></tt>
| {{GVI|arma3|0.58}}
+
| {{{{FULLPAGENAME}}|arma3|0.58}}
 +
|-
 +
| <tt><nowiki>{{GVI|arma3|0.70}}</nowiki></tt>
 +
| {{{{FULLPAGENAME}}|arma3|0.70}}
 
|-
 
|-
 
| <tt><nowiki>{{GVI|arma3|0.76}}</nowiki></tt>
 
| <tt><nowiki>{{GVI|arma3|0.76}}</nowiki></tt>
| {{GVI|arma3|0.76}}
+
| {{{{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|1.22}}</nowiki></tt>
+
| <tt><nowiki>{{GVI|arma3|2.00}}</nowiki></tt>
| {{GVI|arma3|1.22}}
+
| {{{{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>
 
| <tt><nowiki>{{GVI|arma3dev|1.00}}</nowiki></tt>
| {{GVI|arma3dev|1.00}}
+
| {{{{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>
 
| <tt><nowiki>{{GVI|arma3diag|1.00}}</nowiki></tt>
| {{GVI|arma3diag|1.00}}
+
| {{{{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|tkoh|1.02}}</nowiki></tt>
+
| <tt><nowiki>{{GVI|tkom|1.00}}</nowiki></tt>
| {{GVI|tkoh|1.02}}
+
| {{{{FULLPAGENAME}}|tkom|1.00}}
 
|}
 
|}
  
[[Category:Templates|{{uc:{{PAGENAME}}}}]]
+
[[Category:Templates|{{uc:{{PAGENAME}}}}]]</noinclude>
</noinclude>
 

Revision as of 13:09, 25 February 2021

Template GVI standing for Game Version Icon - should appear inline Arma 31.00 when in a paragraph.

Usage

{{GVI|game|version}}

  • game: identical to Name Identifiers
  • version: (Optional, default 1.00) game version such as "1.75", two digits after the period
Examples
Code Result
{{GVI}} -no game provided-
{{GVI|ofp}} Operation Flashpoint?
{{GVI|ofp|1.30}} Operation Flashpoint1.30
{{GVI|ofpr|1.80}} ofpr version.gif1.80
{{GVI|ofpe|1.00}} Operation Flashpoint: Elite1.00
{{GVI|arma1|?}} Armed Assault?
{{GVI|arma1|1}} Armed Assault1
{{GVI|arma1|1.1}} Armed Assault1.1
{{GVI|arma2|1.05}} Arma 21.05
{{GVI|arma2oa|1.60}} Arma 2: Operation Arrowhead1.60
{{GVI|arma3|0.05}} Arma 30.05
{{GVI|arma3|0.50}} Arma 30.50
{{GVI|arma3|0.58}} Arma 30.58
{{GVI|arma3|0.70}} Arma 30.70
{{GVI|arma3|0.76}} Arma 30.76
{{GVI|arma3|1.14}} Arma 31.14
{{GVI|arma3|1.99}} Arma 31.99
{{GVI|arma3|2.00}} Arma 32.00
{{GVI|arma3|2.49}} Arma 32.49
{{GVI|arma3|2.50}} Arma 32.50
{{GVI|arma3dev|1.00}} -wrong parameter ("arma3dev") defined!-[[:Category:Introduced with arma3dev version 1.00|1.00]]
{{GVI|arma3|dev}} Arma 3DEV
{{GVI|arma3dev}} -wrong parameter ("arma3dev") defined!-[[:Category:Introduced with arma3dev version |?]]
{{GVI|arma3diag|1.00}} -wrong parameter ("arma3diag") defined!-[[:Category:Introduced with arma3diag version 1.00|1.00]]
{{GVI|arma3|diag}} Arma 3DIAG
{{GVI|carriercommand|1.00}} Carrier Command: Gaea Mission1.00
{{GVI|dayz|1.00}} DayZ1.00
{{GVI|tkoh|1.00}} Take On Helicopters1.00
{{GVI|tkom|1.00}} Take On Mars1.00