Difference between revisions of "Template:Userbox/Favorite vehicle"

From War Thunder Wiki
Jump to: navigation, search
(Created page with "<includeonly>{{Userbox |id = https://encyclopedia.warthunder.com/slots/{{#unit:{{{1}}}|image}}.png |id-background = {{#ifeq:{{#unit:{{{1}}}|price|currency}}|S...")
 
Line 3: Line 3:
 
  |id-background  = {{#ifeq:{{#unit:{{{1}}}|price|currency}}|S|#314654|#403A1D}}
 
  |id-background  = {{#ifeq:{{#unit:{{{1}}}|price|currency}}|S|#314654|#403A1D}}
 
  |id-style        = width: 1px; height: 1px;
 
  |id-style        = width: 1px; height: 1px;
  |info            = This member considers [[{{#unit:{{{1}}}|article}}|{{#unit:{{{1}}}|name}}]] the best {{#switch:{{#unit:{{{1}}}|type}}|1=aircraft|2=tank|3=ship|4=helicopter}} {{#switch:{{{2}}}|rank=on {{#unit:{{{1}}}|rank}} rank|country={{#switch: {{#unit: {{{1}}} | country }}
+
  |info            = This member considers [[{{#unit:{{{1}}}|article}}|{{#unit:{{{1}}}|name}}]] the best {{#switch:{{{2}}}
      | #default = {{#unit: {{{1}}} | country }}
+
|rank={{#switch:{{#unit:{{{1}}}|type}}|1=aircraft|2=tank|3=ship|4=helicopter}} in rank {{#unit:{{{1}}}|rank}}
}}|country rank=on {{#unit:{{{1}}}|rank}} rank {{#switch: {{#unit: {{{1}}} | country }}
+
|country={{#unit: {{{1}}} | country }} {{#switch:{{#unit:{{{1}}}|type}}|1=aircraft|2=tank|3=ship|4=helicopter}} in game
      | #default = {{#unit: {{{1}}} | country }}
+
|country rank=rank {{#unit:{{{1}}}|rank}} {{#unit: {{{1}}} | country }} {{#switch:{{#unit:{{{1}}}|type}}|1=aircraft|2=tank|3=ship|4=helicopter}} in game
}}|#default=in game}}.
+
|#default={{#switch:{{#unit:{{{1}}}|type}}|1=aircraft|2=tank|3=ship|4=helicopter}} in game}}.
 
  |info-background = #f6f6f6
 
  |info-background = #f6f6f6
 
  |info-font-size  = 10
 
  |info-font-size  = 10

Revision as of 16:59, 25 January 2019

Description

This userbox adds to the page block, showing your favorite technique the participant.

Examples

Parameters

This userbox uses two parameters, one mandatory and one optional:

  • in-game code (required) — in-game vehicle code (you can get in the vehicle card by opening its page in the "Edit source" mode: {{Specs-card|code=in-game code}}).
  • preference — indicates among what set of equipment the participant considers this vehicle to be the best
Available option:
  • game (default) — considers the best vehicle in the game.
  • rank — considers the best vehicle in its rank.
  • country — considers the best vehicle in its nation.
  • country rank — considers the best vehicle for her rank in her nation.

Call example

In game:

{{Userbox/Favorite vehicle|ussr_t_34_85_zis_53}}
ussr_t_34_85_zis_53.png This member considers T-34-85 the best tank in game.


On rank:

{{Userbox/Favorite vehicle|spitfire_xvi|rank}}
spitfire_xvi.png This member considers Spitfire F Mk XVI the best aircraft in rank III.


In country:

{{Userbox/Favorite vehicle|us_elco_80ft_pt109_boat|country}}
us_elco_80ft_pt109_boat.png This member considers Elco 80 ft PT-109 the best USA ship in game.


Country rank:

{{Userbox/Favorite vehicle|mi_24d|country rank}}
mi_24d.png This member considers ▂Mi-24D the best rank V USSR helicopter in game.