Difference between revisions of "Template:Userbox/Favorite vehicle"
(Created page with "<includeonly>{{Userbox |id = https://encyclopedia.warthunder.com/slots/{{#unit:{{{1}}}|image}}.png |id-background = {{#ifeq:{{#unit:{{{1}}}|price|currency}}|S...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{Userbox | <includeonly>{{Userbox | ||
− | |id = | + | |id = {{#unit:{{{1}}}|icon}} |
|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}} {{# | + | |info = This member considers [[{{#unit:{{{1}}}|article}}|{{#unit:{{{1}}}|name}}]] the best {{#switch:{{{2}}} |
− | + | |rank={{#switch:{{#unit:{{{1}}}|type}}|1=aircraft|2=tank|3=ship|4=helicopter}} in rank {{#unit:{{{1}}}|rank}} | |
− | + | |country={{#unit: {{{1}}} | country }} {{#switch:{{#unit:{{{1}}}|type}}|1=aircraft|2=tank|3=ship|4=helicopter}} in game | |
− | + | |country rank=rank {{#unit:{{{1}}}|rank}} {{#unit: {{{1}}} | country }} {{#switch:{{#unit:{{{1}}}|type}}|1=aircraft|2=tank|3=ship|4=helicopter}} 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 |
Latest revision as of 15:27, 11 November 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}}
This member considers T-34-85 the best tank in game. |
On rank:
{{Userbox/Favorite vehicle|spitfire_xvi|rank}}
This member considers Spitfire F Mk XVI the best aircraft in rank III. |
In country:
{{Userbox/Favorite vehicle|us_elco_80ft_pt109_boat|country}}
This member considers Elco 80 ft PT-109 the best USA ship in game. |
Country rank:
{{Userbox/Favorite vehicle|mi_24d|country rank}}
This member considers ▂Mi-24D the best rank V USSR helicopter in game. |