GVI – Template

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


== Usage ==
== Usage ==
Placing <tt><nowiki>{{GVI|arma3|dev}}</nowiki></tt> in a page will result in {{GVI|arma3|dev}} being rendered in it's place.
{{<nowiki/>GVI|'''''game'''''|'''''version'''''|'''''categorise'''''}}
* game: identical to [[Template:Name|Template:Name Identifiers]]
* version: (Optional, default <tt>1.00</tt>) 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 <tt><nowiki>[[Category:Introduced in {{Name|game}} version]]</nowiki></tt>


=== Parameters ===
The template accepts '''three''' params, the third one being optional.
==== Game Name ====
The first param '''''must''''' be the required ''Game Name'' such as <tt>arma2</tt> or <tt>ofp</tt>.
The text is parsed by {{Template|Name}} so is capable of understanding many alternative inputs.
==== Version Number ====
The second param '''''must''''' be the required ''Version Number'' such as <tt>0.20</tt> or <tt>1.82</tt>.
==== Categorize ====
The third param is '''''optional''''' and if included (''e.g.'' <tt><nowiki>{{GVI|ofp|1.30|cat}}</nowiki></tt>), will place the page on which the this Template is used into the appropriate Category for the ''Game+Version''.
Any value may be added as the third param, but for clarity and continuity, use something like '''''cat''''', '''''category''''' or '''''categorize''''' so that future editors understand its purpose.
== Examples ==
Any of the examples below can also include the third parameter, to place the page they're used on into the Category they link to.
{| class="bikitable"
{| class="bikitable"
!Code
|+ Examples
!Result
! Code
! Result
|-
| <tt><nowiki>{{GVI|arma0}}</nowiki></tt>
| {{GVI|arma0}}
|-
|-
|<tt><nowiki>{{GVI|ofp|1.30}}</nowiki></tt>
| <tt><nowiki>{{GVI|ofp|1.30}}</nowiki></tt>
| {{GVI|ofp|1.30}}
| {{GVI|ofp|1.30}}
|-
|-
|<tt><nowiki>{{GVI|ofpr|1.80}}</nowiki></tt>
| <tt><nowiki>{{GVI|ofpr|1.80}}</nowiki></tt>
| {{GVI|ofpr|1.80}}
| {{GVI|ofpr|1.80}}
|-
|-
|<tt><nowiki>{{GVI|arma|?}}</nowiki></tt>
| <tt><nowiki>{{GVI|arma|?}}</nowiki></tt>
| {{GVI|arma|?}}
| {{GVI|arma|?}}
|-
|-
|<tt><nowiki>{{GVI|arma|1.1}}</nowiki></tt>
| <tt><nowiki>{{GVI|arma|1}}</nowiki></tt>
| {{GVI|arma|1}}
|-
| <tt><nowiki>{{GVI|arma|1.1}}</nowiki></tt>
| {{GVI|arma|1.1}}
| {{GVI|arma|1.1}}
|-
|-
|<tt><nowiki>{{GVI|arma2|1.11}}</nowiki></tt>
| <tt><nowiki>{{GVI|arma2|1.11}}</nowiki></tt>
| {{GVI|arma2|1.11}}
| {{GVI|arma2|1.11}}
|-
|-
|<tt><nowiki>{{GVI|oa|1.63}}</nowiki></tt>
| <tt><nowiki>{{GVI|a2oa|1.63}}</nowiki></tt>
| {{GVI|oa|1.63}}
| {{GVI|a2oa|1.63}}
|-
|-
|<tt><nowiki>{{GVI|arma2oa|1.60}}</nowiki></tt>
| <tt><nowiki>{{GVI|arma2oa|1.60}}</nowiki></tt>
| {{GVI|arma2oa|1.60}}
| {{GVI|arma2oa|1.60}}
|-
|-
|<tt><nowiki>{{GVI|arma3|dev}}</nowiki></tt>
| <tt><nowiki>{{GVI|arma3|dev}}</nowiki></tt>
| {{GVI|arma3|dev}}
| {{GVI|arma3|dev}}
|-
|-
|<tt><nowiki>{{GVI|arma3|0.50}}</nowiki></tt>
| <tt><nowiki>{{GVI|arma3|0.50}}</nowiki></tt>
| {{GVI|arma3|0.50}}
| {{GVI|arma3|0.50}}
|-
|-
|<tt><nowiki>{{GVI|arma3|0.58}}</nowiki></tt>
| <tt><nowiki>{{GVI|arma3|0.58}}</nowiki></tt>
| {{GVI|arma3|0.58}}
| {{GVI|arma3|0.58}}
|-
|-
|<tt><nowiki>{{GVI|arma3|0.76}}</nowiki></tt>
| <tt><nowiki>{{GVI|arma3|0.76}}</nowiki></tt>
| {{GVI|arma3|0.76}}
| {{GVI|arma3|0.76}}
|-
|-
|<tt><nowiki>{{GVI|arma3|1.22}}</nowiki></tt>
| <tt><nowiki>{{GVI|arma3|1.22}}</nowiki></tt>
| {{GVI|arma3|1.22}}
| {{GVI|arma3|1.22}}
|-
|-
|<tt><nowiki>{{GVI|tkoh|1.02}}</nowiki></tt>
| <tt><nowiki>{{GVI|tkoh|1.02}}</nowiki></tt>
| {{GVI|tkoh|1.02}}
| {{GVI|tkoh|1.02}}
|-
|-
|<tt><nowiki>{{GVI|vbs1|2.12.14}}</nowiki></tt>
| <tt><nowiki>{{GVI|vbs1|2.12.14}}</nowiki></tt>
| {{GVI|vbs1|2.12.14}}
| {{GVI|vbs1|2.12.14}}
|-
|-
|<tt><nowiki>{{GVI|vbs2|1.49}}</nowiki></tt>
| <tt><nowiki>{{GVI|vbs2|1.49}}</nowiki></tt>
| {{GVI|vbs2|1.49}}
| {{GVI|vbs2|1.49}}
|}
|}


<!-- Categories this template should belong to -->
[[Category:Templates|{{uc:{{PAGENAME}}}}]]
[[Category:Templates|{{uc:{{PAGENAME}}}}]]
</noinclude>
</noinclude>

Revision as of 01:10, 6 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 ?1.00
{{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