Welcome to Wargaming.net Wiki!
Variants

Difference between revisions of "Template:ShipData"

Jump to: navigation, search
Revision as of 03:24, 30 September 2014Latest revision as of 00:57, 4 February 2016
Removed protection from "Template:ShipData"
 
29 intermediate revisions by 2 users not shown
Line 1:Line 1:
 <includeonly> <includeonly>
?{{NDA}} 
 __NOTOC__ __NOTOC__
 +<div style="display:none">
 +{{#vardefine:ship|{{#replace:{{lc:{{#if:{{{Ship|}}}
 + |{{{Ship|}}}
 + |{{PAGENAME}}
 +}}}}||_}}}}
 +{{#vardefine:class|{{lc:{{#shipchars:{{#var:ship}}|class}}}}}}
 +{{#vardefine:classFooter|{{#switch:{{#var:class}}
 + |destroyer = Destroyers
 + |cruiser = Cruisers
 + |battleship = Battleships
 + |aircarrier = Aircraft Carriers
 +}}}}
 +{{#vardefine:nationCode|{{#shipchars:{{#var:ship}}|nation}}}}
 +{{#vardefine:nation|{{#switch:{{#shipchars:{{#var:ship}}|nation}}
 + |ussr = USSR
 + |germany = Germany
 + |usa = USA
 + |france = France
 + |uk = UK
 + |china = China
 + |japan = Japan
 +}}}}
 +{{#vardefine:level|{{#shipchars:{{#var:ship}}|level}}}}
 +{{#vardefine:premium|{{#if:{{#if:{{#pos:{{#shipchars:{{#var:ship}}|tags}}|special}}|1}}{{#if:{{#pos:{{#shipchars:{{#var:ship}}|tags}}|premium}}|1}}|1}}}}
 +</div>
 +
 +<div style="display:none">
 +</div>
 +<div class="b-performance">
 +<div class="b-performance_border" style="padding: 0px">
 +<h3 class="b-performance_title b-performance_title__header">
 +{{#shipstr:{{#shipchars:{{#var:ship}}|mark}}}}
 +</h3>
 +[[image:Ship_{{PAGENAME}}.png|232px|center]]
 +</div>
 +<div class="b-performance_title">Overview<br />
 +<div class="b-performance_text">
 +<table class="t-performance">
 +{{DataLine| Cost | {{#shipchars:{{#var:ship}}|price}} {{#ifeq:{{#var:premium}}|1|[[image:GoldIcon.png|12px]]|[[image:Credits.png|12px]]}}}}
 +{{DataLine| Hit Points | {{#shipchars:{{#var:ship}}|health}} }}
 +</table>
 +</div>
 +<div class="b-performance_title">Mobility</div>
 +<div class="b-performance_text">
 +<table class="t-performance">
 +{{DataLine| Max Speed | {{#shipchars:{{#var:ship}}|mobilityMaxspeed}} kt}}
 +{{DataLine| Rudder Shift Time | {{#shipchars:{{#var:ship}}|mobilityRuddertime}} s}}
 +{{DataLine| Turn Radius | {{#shipchars:{{#var:ship}}|mobilityTurningradius}} m}}
 +</table>
 +</div>
 +<div class="b-performance_title">Armor</div>
 +<div class="b-performance_text">
 +<table class="t-performance">
 +{{DataLine| Hull Armor | {{#shipchars:{{#var:ship}}|armourCasmin}} - {{#shipchars:{{#var:ship}}|armourCasmax}} mm}}
 +{{DataLine| Citadel Armor | {{#shipchars:{{#var:ship}}|armourCitmin}} - {{#shipchars:{{#var:ship}}|armourCitmax}} mm}}
 +{{DataLine| Deck Armor | {{#shipchars:{{#var:ship}}|armourDeckmin}} - {{#shipchars:{{#var:ship}}|armourDeckmax}} mm}}
 +{{DataLine| Extremities Armor | {{#shipchars:{{#var:ship}}|armourExtremitiesmin}} - {{#shipchars:{{#var:ship}}|armourExtremitiesmax}} mm}}
 +</table>
 +</div>
 +<div class="b-performance_title">Primary Armament</div>
 +<div class="b-performance_text">
 +<table class="t-performance">
 +{{DataLine| Guns | }}
 +</table>
 +</div>
 +<div class="b-performance_title">Secondary Armament</div>
 +<div class="b-performance_text">
 +<table class="t-performance">
 +{{DataLine| Guns | }}
 +</table>
 +</div>
 +<div class="b-performance_title">Torpedoes</div>
 +<div class="b-performance_text">
 +<table class="t-performance">
 +{{DataLine| Torpedoes | }}
 +</table>
 +</div>
 +<div class="b-performance_title">Aircrafts</div>
 +<div class="b-performance_text">
 +<table class="t-performance">
 +{{DataLine| Recon Squadrons | }}
 +</table>
 +</div>
 +<div class="b-performance_title">Visibility</div>
 +<div class="b-performance_text">
 +<table class="t-performance">
 +{{DataLine| Aerial Detection Range | {{#shipchars:{{#var:ship}}|visibilityDistbyplane}} km}}
 +{{DataLine| Surface Detection Range | {{#shipchars:{{#var:ship}}|visibilityDistbyship}} km}}
 +</table>
 +</div>
 +
 +</div>
 +{{#gw_vehicle_relatives:wows:{{#var:ship}}}}
 +
 +</div>
 +
 <div class="b-description"> <div class="b-description">
?[[file:{{PAGENAME}} icon.png]]<p>{{{1|}}}</p>+{{#gw_vehicle_annotation:wows:{{PAGENAME}}}}{{#shipstr:{{#shipchars:{{#var:ship}}|description}}}}<p>{{{1|}}}</p>
 </div> </div>
  
 +{{Popup
 +|header=<h3>Modules</h3>
 +|content={{#gw_vehicle_modules:wows:{{#var:ship}}}}
 +}}
 +
 +{{Popup
 +|header=<h2>Compatible Equipment</h2>
 +|content={{#gw_vehicle_devices:wows:{{#var:ship}}}}
 +}}
 +
 +<div class="b-wiki-panel">
 +{{#if:{{{InTheGame_performance|}}}{{{InTheGame_research|}}}|
 +{{InTheGame
 +|performance={{{InTheGame_performance|}}}
 +|research={{{InTheGame_research|}}}
 +}}|}}
 +{{#if:{{{Gallery|}}}
 +|{{Gallery|title=<h3>Gallery</h3>|style=collapsed|content={{{Gallery|}}}}}
 +|}}
 {{#if:{{{History|}}} {{#if:{{{History|}}}
 |{{History|info={{{History|}}}}} |{{History|info={{{History|}}}}}
Line 17:Line 131:
 |links={{{Ref_links|}}} |links={{{Ref_links|}}}
 }}|}} }}|}}
 +</div>
 +<div class="b-tech-nav">
 +{{#gw_nav_table:
 +name = {{#var:nation}} |
 +Destroyers#{{#gw_vehicle_list:wows: nation = {{#var:nationCode}} | class = destroyer | order = level | style = text | divider = • }} |
 +Cruisers#{{#gw_vehicle_list:wows: nation = {{#var:nationCode}} | class = cruiser | order = level | style = text | divider = • }} |
 +Battleship#{{#gw_vehicle_list:wows: nation = {{#var:nationCode}} | class = battleship | order = level | style = text | divider = • }} |
 +Aircraft Carriers#{{#gw_vehicle_list:wows: nation = {{#var:nationCode}} | class = aircarrier | order = level | style = text | divider = • }}
 +}}
 +{{#gw_nav_table:
 +name = {{#var:classFooter}} |
 +USA#{{#gw_vehicle_list:wows: nation = usa | class = {{#var:class}} | order = level | style = text | divider = • }} |
 +UK#{{#gw_vehicle_list:wows: nation = uk | class = {{#var:class}} | order = level | style = text | divider = • }} |
 +USSR#{{#gw_vehicle_list:wows: nation = ussr | class = {{#var:class}} | order = level | style = text | divider = • }} |
 +Japan#{{#gw_vehicle_list:wows: nation = japan | class = {{#var:class}} | order = level | style = text | divider = • }}
 +}}
 +{{#ifeq:{{#var:premium}}|1
 +|{{#gw_nav_table:
 +name = Premium Ships |
 +USA#{{#gw_vehicle_list:wows: nation = usa | gold = 1 | order = level | style = text | divider = • }} |
 +UK#{{#gw_vehicle_list:wows: nation = uk | gold = 1 | order = level | style = text | divider = • }} |
 +USSR#{{#gw_vehicle_list:wows: nation = ussr | gold = 1 | order = level | style = text | divider = • }} |
 +Japan#{{#gw_vehicle_list:wows: nation = japan | gold = 1 | order = level | style = text | divider = • }}
 +}}
 +|}}
 +</div>
 +
 </includeonly> </includeonly>
 <noinclude> <noinclude>
 ==Template== ==Template==
 +<big>'''WARNING: DO NOT ASSIGN VALUES TO SHIP= UNLESS YOU KNOW WHAT YOU ARE DOING AND WHAT WILL HAPPEN PERFECTLY. LEAVE IT BLANK.'''</big><hr>
 <pre> <pre>
 {{ShipData|Ship= {{ShipData|Ship=
 | |
 +
 +|InTheGame_performance=
 +
 +|InTheGame_research=
 +
 +|Gallery=
  
 |History= |History=

Latest revision as of 00:57, 4 February 2016


Template

WARNING: DO NOT ASSIGN VALUES TO SHIP= UNLESS YOU KNOW WHAT YOU ARE DOING AND WHAT WILL HAPPEN PERFECTLY. LEAVE IT BLANK.
{{ShipData|Ship=
|

|InTheGame_performance= 

|InTheGame_research= 

|Gallery=

|History=

|HistoricalGallery=

|Ref_references=

|Ref_sources=

|Ref_links=

}}
Category: