Wargaming.net 위키에 오신 것을 환영합니다!
변수
/
Widget Guide

Widget Guide

이동: 둘러보기, 검색
50px Article requires additional modification
The design and content of the article does not meet the project requirements.

Global Wiki: Widgets

General info

Extension allows us use the preset widgets . Widgets are adapted for GlobalWiki skining and may contain logic.


{{#gw_vehicle_list: nation = germany | class = mediumTank | gold = 0 | order = level | style = text | divider = • }}

All the widgets have "gw_" in front.

Example:


{{#gw_super_widget:parameter_1|parameter_2|parameter_3}}

General codes

Nations

'ussr', 'germany', 'usa', 'france', 'china', 'uk', 'japan'

Tanks type

'lighttank', 'mediumtank', 'heavytank', 'at-spg', 'spg'

Supported languages

wot: 'cs', 'da', 'de', 'en', 'es', 'et', 'fi', 'fr', 'hr', 'hu', 'id', 'it', 'ja', 'ko', 'lt', 'lv', 'ms', 'nl', 'no', 'pl', 'pt', 'pt-br', 'ro', 'ru', 'sr', 'sv', 'th', 'tr', 'vi', 'zh-cn', 'zh-tw' wowp: 'cs', 'de', 'en', 'es', 'es-ar', 'fr', 'pl', 'ru', 'tr'


Widgets. Explanations...

gw_article_scroll

Allows to add scroll function of selected articles to the page: article is fully added to the page and you can switch articles by using arrows. Parameters:

  • titles of pages through a comma.
  • placeholder [not necessary] (the whole word can be omitted, add only parametrs) [none, auto, height in pixels(400), width x height ( 300x200)] (by default auto) — size of placeholder, i mean area which is dispalayed to a user during loading.
  • none — placeholder height is taken from height of widget content (but not less than heght of loader 32px) (use it for text articles)
  • auto — height is taken from the ratio of the video as agreed with designers (500x350). Articles with video.
  • height in px — can be any, but not less than loader.
  • width x height — any ratio of the width to the height of the loader. This is not the size, but data to calculate the ratio.
  • nodots [not necessary] [0,1] (by default, 0) — use 1 for all except for articles with video.

JS-code is used. Max number of articles - 10.

Should only be used in predefined containers:


<div class="b-info clearfix">
<div class="b-info_item">
<div class="l-info_inner">
<h2>Good articles</h2>{{#gw_article_scroll:Хорошая статья2|placeholder=none|nodots=1}}[[Special:Categories/good_articles|class=b-info_more|Next section»]]
</div>
</div>
<div class="b-info_item">
<div class="l-info_inner">
<h2>Video guides</h2>{{#gw_article_scroll:First steps,for new players|500x350}}[[Special:Categories/Video guide|class=b-info_more|Next section »]]
</div>
</div>
</div>

Sample page - Gw_article_scroll_sample

gw_games_menu

Added to the game menu page. Can have unlimited number of games.


{{#gw_games_menu:World_of_Tanks|World_of_Warplanes|World_of_Warships|WoT_Generals}}

Sample page - Gw games menu sample

gw_art_list

Forms designer list on the page . As an element of the list picture is used. Images can be found here (link to come)


{{#gw_art_list:    
World_of_Tanks:Crew#menu_icon_crew.png|
World_of_Tanks:Ammo#menu_icon_gun.png|
World_of_Tanks:Ammoе#menu_icon_ammo.png|
World_of_Tanks:Equipment#menu_icon_equipment.png|
World_of_Tanks:Icon view#menu_icon_view.png
}}

Sample page - Gw art list sample

gw_info_block

Preset formatting of information blocks. Takes into account a significance and text content.


{{#gw_info_block:|test text}}
{{#gw_info_block:red|test text}}
{{#gw_info_block:green|test text}}
{{#gw_info_block:blue|test text}}

Sample page - Gw info block sample

gw_separator

Preset formatting for Separator


{{#gw_separator:}}

Sample page - Gw separator sample

gw_vehicle_equipments

Preset formatting for equipment list.


{{#gw_vehicle_equipments:MS-1}}

Sample page- Gw vehicle equipments sample

gw_vehicle_devices

Preset formatting for vehicle devices list.


{{#gw_vehicle_devices:MS-1}}

Sample page - Gw vehicle devices sample

gw_switcher

Switcher for the content. Can be used as map switcher:

  • menu = top | bottom (by default bottom)
  • align=right | left (by default left)
  • float = 0 | 1 (by default 0)
  • background=Caption
  • style=1|2 (by default 1)

Name of the bookmark must be separated by #.


{{#gw_switcher:menu=top|style=2|Button1#Content1|Button2#Content2}}

{{#gw_switcher:
|Button1@icon-tabs-table.png#
Content1
|Button2@icon-tabs-tree.png#
Content2
}}

{{#gw_switcher:|align=right|float=1|background=[[File:Lassvil_minimap.jpg|150x150px]]
|Original#
|Button1#
[[File:Lassvil_minimap_tags.jpg|150x150px|link=|guns ваып]]
|Button2#
[[File:Device_stereoscope.png|150x150px|link=|guns ваdfgп]]
}}

Sample page - Gw switcher sample

gw_skills

Preset formatting for skills and perks (crew):

crew member#skill/perk display name| crew member#skill/perk code or translation* separated by ,

If you want to show that some of the perks is not necessary add ? after it

* — Translated as in game client. Первый параметр в нижеследующем примере.


{{#gw_skills:
Commander#Sixth Sence,Repair,Camo,Tutor?|
commander#commander_sixthSense?,repair?,camouflage,commander_tutor
}}


Crew members code array.

'commander'

  • 0 => 'repair'
  • 1 => 'fireFighting'
  • 2 => 'camouflage'
  • 3 => 'brotherhood'
  • 4 => 'commander_tutor'
  • 5 => 'commander_expert'
  • 6 => 'commander_universalist'
  • 7 => 'commander_sixthSense'
  • 8 => 'commander_eagleEye'

'radioman'

  • 0 => 'repair',
  • 1 => 'fireFighting',
  • 2 => 'camouflage',
  • 3 => 'brotherhood',
  • 4 => 'radioman_finder',
  • 5 => 'radioman_inventor',
  • 6 => 'radioman_lastEffort',
  • 7 => 'radioman_retransmitter',

'driver'

  • 0 => 'repair',
  • 1 => 'fireFighting',
  • 2 => 'camouflage',
  • 3 => 'brotherhood',
  • 4 => 'driver_tidyPerson',
  • 5 => 'driver_smoothDriving',
  • 6 => 'driver_virtuoso',
  • 7 => 'driver_badRoadsKing',
  • 8 => 'driver_rammingMaster',

'gunner'

  • 0 => 'repair',
  • 1 => 'fireFighting',
  • 2 => 'camouflage',
  • 3 => 'brotherhood',
  • 4 => 'gunner_smoothTurret',
  • 5 => 'gunner_gunsmith',
  • 6 => 'gunner_sniper',
  • 7 => 'gunner_rancorous',
  • 8 => 'gunner_woodHunter',

'loader'

  • 0 => 'repair',
  • 1 => 'fireFighting',
  • 2 => 'camouflage',
  • 3 => 'brotherhood',
  • 4 => 'loader_pedant',
  • 5 => 'loader_desperado',
  • 6 => 'loader_intuition',


gw_nav_table

Preset formatting for navigation table. Parameters: o name — name of the block o icon — code for icon[lighttank, mediumtank, heavytank, at-spg, spg, ussr, germany, usa, france, china, uk, japan, premium] (by default, without icon) o <Name of the table>#<Content>

gw_nav_table must be inserted into construction
<div class="b-tech-nav"> ... </div>
, as below.

<div class="b-tech-nav">
{{#gw_nav_table:
name = Germany |
Light Tanks#{{#gw_vehicle_list: nation = germany | class = lightTank | gold = 0 | order = level | style = text | divider = • }} |
Heavy Tanks#{{#gw_vehicle_list: nation = germany | class = heavyTank | gold = 0 | order = level | style = text | divider = • }}
}}
{{#gw_nav_table:
name = Maps |
icon = |
Summer maps#{{#gw_arena_list: summer}} |
Winter maps#{{#gw_arena_list: winter | divider = *}} |
Desert maps#{{#gw_arena_list: desert}}
}}
</div>

gw_vehicle_list

Preset formatting for vehicle lists. Parameters and attendant variables need to be separated from other parameters by |. Not all parameters need to be listed, will display default if not.

  • game - defaults to wot, only one can be used, must be between gw_vehicle_list: and any following parameters.
[wot:]
[wowp:]
  • nation — defaults to all nations, several can be used but must be separated by comma.
[wot: china, germany, ussr, france, uk, usa, japan]
[wowp: germany, ussr, uk, usa, japan]
  • class — defaults to all types, several can be used but must be separated by comma.
[wot: lightTank, mediumTank, heavyTank, AT-SPG, SPG]
[wowp: fighter, fighterheavy, assault]
  • gold — defaults to both.
show only premium [1]
show only non premium [0]
  • order — attribute codes, defaults to level (tier), several can be used but must be separated by comma.
[wot: 'mark', 'shortMark', 'description', 'nation', 'notInShop', 'price', 'gold', 'level', 'class', 'speedForward', 'speedBack', 'hullWeight', 'hullHealth', 'health', 'loadLimit', 'power', 'traverseSpeed', 'signalRange', 'viewRange', 'armorHullFront', 'armorHullSide', 'armorHullBack', 'armorTurretFront', 'armorTurretSide', 'armorTurretBack', 'weight', 'gun', 'turretTraverse', 'traverseLeft', 'traverseRight', 'elevationSpeed', 'maxAmmo', 'reloadTime', 'elevation', 'depression', 'penetration1', 'damage1', 'penetration2', 'damage2', 'penetration3', 'damage3', 'isTurret']
[wowp: rate_of_climbing, speed_factor, controllability, dps, hp, average_turn_time, binds_id, stall_speed, roll_maneuverability, is_default, maneuverability, max_speed, mass, vehicle, speed_at_the_ground, optimal_maneuver_speed, dive_speed, optimal_height, name, price_gold, level, nation, price_credit, full_name, vehicle_type, description]
  • style — defaults to text
[image, text]
  • divider — defaults to •

{{#gw_vehicle_list: nation = germany | class = mediumTank | gold = 0 | order = level | style = text | divider = • }}
{{#gw_vehicle_list:wowp: nation = ussr,germany | class = fighter,fighterheavy,assault| gold = 0 | order = level | style = image }}

gw_arena_list

Preset formatting for maps list : o Type [summer, winter, desert] (by default, all) o divider — (by default, •)


{{#gw_arena_list: winter,desert | divider = *}}

gw_vehicle_annotation

Preset formatting for tank annotations o Tank code o 3d — show or not [0, 1] (by default, 0)


<div class="b-description">
{{#gw_vehicle_annotation: T29 | 3d=1 }}
Description text
</div>

{{#gw_vehicle_annotation:T29}}

gw_rank_table

Preset formatting for crew ranks: o Nations list (by default shows all) Note! Japanese nation is not fully supported


{{#gw_rank_table:usa,ussr}}
{{#gw_rank_table:}}

gw_achievments_set

Preset formatting for Battle achievements: o Achievements = explanation. If they have several explanations (class rewards) # must be used: markOfMastery#4

[# Battle achievements. 'warrior', 'invader', 'sniper', 'defender', 'steelwall', 'supporter', 'scout', 'evileye',

  1. Medal with classes (1st-4th). // Т.е. использовать надо так: medalKay#2 - для отображения медали второй степени, например.

'medalKay', 'medalCarius', 'medalKnispel', 'medalPoppel', 'medalAbrams', 'medalLeClerc', 'medalLavrinenko', 'medalEkins', 'markOfMastery',

  1. Epic achievements.

'medalWittmann', 'medalOrlik', 'medalOskin', 'medalHalonen', 'medalBurda', 'medalBillotte', 'medalKolobanov', 'medalFadin', 'medalRadleyWalters', 'medalLafayettePool', 'medalBrunoPietro', 'medalTarczay', 'medalPascucci', 'medalDumitru', 'medalLehvaslaiho', 'medalNikolas', 'heroesOfRassenay', 'medalDeLanglade', 'medalTamadaYoshio',

  1. Special achievements.

'kamikaze', 'raider', 'mousebane', 'beasthunter', 'sinai', 'pattonValley', 'bombardier', 'huntsman', 'sturdy', 'ironMan', 'luckyDevil', 'tankExpert', 'tankExpert0', 'tankExpert1', 'tankExpert2', 'tankExpert3', 'tankExpert4', 'tankExpert5', // Нумерация по нациям 'mechanicEngineer', 'mechanicEngineer0', 'mechanicEngineer1', 'mechanicEngineer2', 'mechanicEngineer3', 'mechanicEngineer4', 'mechanicEngineer5', // Нумерация по нациям

  1. group achievements

'medalCrucialContribution', 'medalBrothersInArms',

  1. Series achievements.

'titleSniper', 'invincible', 'diehard', 'handOfDeath', 'armorPiercer',

  1. client specific achievements

'whiteTiger' ];


{{#gw_achievments_set:whiteTiger= why not | warrior = as I can | markOfMastery#4 = easy to do }}

gw_vehicle_menu_nations

Preset formatting for nation list.


<div class="b-vehicles clearfix b-vehicles__nation js-vehicles_by_nations b-vehicles__not-active">
{{#gw_vehicle_menu_nations: }}
</div>

gw_vehicle_menu_types

Preset formatting for vehicles by types


<div class="b-vehicles clearfix js-vehicles_by_types">
{{#gw_vehicle_menu_types: }}
</div>

gw_levels_bar

Preset formatting for battle level list


{{#gw_levels_bar:total=10|from=1|to=5}}

gw_info_panel

Preset formatting for information panels about the main subject of the article. Panel is located to the right on the page and contains the main characteristics of the object.


{{#gw_info_panel:title=Название объекта|image=1315308978_winter_01.jpg
|annotation=Short description
|content=Detailed info
|appendix=last info
}}

{{#gw_info_panel:title=Название объекта|image=1315308978_winter_01.jpg
|annotation=Short description
|content={{#gw_vehicle_params:t-34|data=price,health|title=General info}}  
}}

{{#gw_info_panel:title=T-34|image=1315308978_winter_01.jpg
|annotation=
[[Medium Tank|class=b-performance_position-link|]][[Germany|class=b-performance_position-link|]][[V ур.|class=b-performance_position-link|]]
|content=
{{#gw_vehicle_params:t-34|data=«Pazic»|title=Name in the game}}
{{#gw_vehicle_params:t-34|data=price,health,weight,power,speed,traverseSpeed|title=General info}}
{{#gw_vehicle_params:t-34|data=crew|title=Crew}}
{{#gw_vehicle_params:t-34|data=armorHull,armorTurret|title=Armor}}
{{#gw_vehicle_params:t-34|data=damage,penetration,reloadTime,turretTraverse|title=Ammunition}}
{{#gw_vehicle_params:t-34|data=viewRange}}
{{#gw_vehicle_params:t-34|data=signalRange}}
<div class="b-battles-levels">[[Battle level|class=b-performance_title b-performance_title__link|]]
{{#gw_levels_bar:total=10|from=5|to=5}}</div>
|appendix=
{{#gw_vehicle_relatives:t-34}}
<div class="b-performance_info"><p>100% crew characteristics.</p></div>
}}

{{#gw_info_panel:title=Ил-2-1|image=1315308978_winter_01.jpg
|annotation=Good plane
|content=
{{#gw_vehicle_params:wowp:il-2-1|data=«Motorchik»|title=Name in the game}}
{{#gw_vehicle_params:wowp:il-2-1|data=rate_of_climbing,speed_factor,controllability,dps,hp,average_turn_time,stall_speed,roll_maneuverability,maneuverability,max_speed,mass,speed_at_the_ground,optimal_maneuver_speed,dive_speed,optimal_height,level,price|title=All}}
}}

gw_vehicle_params

Preset formatting for vehicle parameters. Main usagе - add to gw_info_panel info about specifications. o Vehicle code o data - code list separated by comma o title

data for tank - price,health,weight,power,speedForward,traverseSpeed,armorHull,armorTurret,damage,penetration,reloadTime,turretTraverse,viewRange,signalRange.

date for plane - rate_of_climbing,speed_factor,controllability,dps,hp,average_turn_time,stall_speed,roll_maneuverability,maneuverability,max_speed,mass,speed_at_the_ground,optimal_maneuver_speed,dive_speed,optimal_height,level,price.

Parameter crew of the tank can be combined with other parameters, but it must be an only value of the attribute of the data.


{{#gw_vehicle_params:t-34|data=price,health,weight,power,speedForward,traverseSpeed|title=General info}}
{{#gw_vehicle_params:t-34|data=crew|title=Экипаж}}
{{#gw_vehicle_params:t-34|data=armorHull,armorTurret|title=Armor}}
{{#gw_vehicle_params:t-34|data=damage,penetration,reloadTime,turretTraverse|title=Ammo}}
{{#gw_vehicle_params:t-34|data=viewRange}}
{{#gw_vehicle_params:wot:t-34|data=signalRange}}
{{#gw_vehicle_params:wot:t-34|data=«Pazik»|title=Nickname in game}}
{{#gw_vehicle_params:wowp:il-2-1|data=rate_of_climbing,speed_factor,controllability|title=All}}

gw_vehicle_relatives

Preset formatting for info about previous and next tanks in tech tree. Used for - adding info to gw_info_panel with tank characteristics. o Tank Code


{{#gw_vehicle_relatives:t-34}}

gw_vehicle_modules

Preset formatting for info about tank modules. o Tank code


{{#gw_vehicle_modules: MT25}}
{{#gw_vehicle_modules:wowp: il-2-1}}

Info in the widget is Preset :

Displayed Parameters

'wot'

'turret' = 'level', 'mark', 'turretArmor', 'turretTraverse', 'viewRange', 'experienceCost', 'weight', 'price'

'gun' = 'level', 'mark', 'penetration', 'damage', 'fireRate', 'shotDispersionRadius', 'aimingTime', 'experienceCost', 'weight', 'price'

'engine' = 'level', 'mark', 'power', 'fireStartingChance', 'experienceCost', 'weight', 'price'

'chassis' = 'level', 'mark', 'loadLimit', 'traverseSpeed', 'experienceCost', 'weight', 'price'

'radio' = 'level', 'mark', 'distance', 'experienceCost', 'weight', 'price'


'wowp'

'engine' = 'level', 'full_name', 'power', 'equipment_type', 'thrust', 'mass', 'price'

'planer' = 'level', 'full_name', 'hp', 'mass', 'price'

'gun' = 'level', 'full_name', 'caliber', 'bullet_velocity', 'dps', 'rpm', 'mass', 'price'

'turret' = 'level', 'full_name', 'caliber', 'bullet_velocity', 'weapon_count', 'dps', 'rpm', 'mass', 'price'

'rocket' = 'level', 'full_name', 'explosion_radius', 'explosion_damage_max', 'mass', 'price'

'bomb' = 'level', 'full_name', 'explosion_radius', 'explosion_damage_max', 'mass', 'price'