Welcome to Wargaming.net Wiki!
Variants

Difference between revisions of "Template:ShipData"

Jump to: navigation, search
Revision as of 18:14, 25 August 2014Latest revision as of 00:57, 4 February 2016
Removed protection from "Template:ShipData"
 
38 intermediate revisions by 2 users not shown
Line 2:Line 2:
 __NOTOC__ __NOTOC__
 <div style="display:none"> <div style="display:none">
?{{#vardefine:ship|{{lc:{{#if:{{{ship|}}}+{{#vardefine:ship|{{#replace:{{lc:{{#if:{{{Ship|}}}
? |{{{ship|}}}+ |{{{Ship|}}}
  |{{PAGENAME}}  |{{PAGENAME}}
?}}}}}}+}}}}||_}}}}
?{{#vardefine:class|{{lc:{{#gw_vehicle_plain_attr:wows:{{#var:ship}}|attr=vehicle_type}}}}}}+{{#vardefine:class|{{lc:{{#shipchars:{{#var:ship}}|class}}}}}}
 {{#vardefine:classFooter|{{#switch:{{#var:class}} {{#vardefine:classFooter|{{#switch:{{#var:class}}
? |lightship = destroyer+ |destroyer = Destroyers
? |mediumship = cruiser+ |cruiser = Cruisers
? |heavyship = battleship+ |battleship = Battleships
? |AT-SPG = N/A+ |aircarrier = Aircraft Carriers
? |SPG = carrier+
 }}}} }}}}
?{{#vardefine:nationCode|{{#gw_vehicle_plain_attr:wows:{{#var:ship}}|attr=nation}}}}+{{#vardefine:nationCode|{{#shipchars:{{#var:ship}}|nation}}}}
?{{#vardefine:nation|{{#switch:{{#var:nationCode}}+{{#vardefine:nation|{{#switch:{{#shipchars:{{#var:ship}}|nation}}
  |ussr = USSR  |ussr = USSR
  |germany = Germany  |germany = Germany
  |usa = USA  |usa = USA
  |france = France  |france = France
? |uk = UK+ |uk = UK
  |china = China  |china = China
  |japan = Japan  |japan = Japan
 }}}} }}}}
?{{#vardefine:level|{{#gw_vehicle_plain_attr:wows:{{#var:ship}}|attr=level}}}}+{{#vardefine:level|{{#shipchars:{{#var:ship}}|level}}}}
?{{#vardefine:premium|{{#gw_vehicle_plain_attr:wows:{{#var:ship}}|attr=is_premium}}}}+{{#vardefine:premium|{{#if:{{#if:{{#pos:{{#shipchars:{{#var:ship}}|tags}}|special}}|1}}{{#if:{{#pos:{{#shipchars:{{#var:ship}}|tags}}|premium}}|1}}|1}}}}
 </div> </div>
  
 +<div style="display:none">
 +</div>
 <div class="b-performance"> <div class="b-performance">
?<div class="b-performance_border">+<div class="b-performance_border" style="padding: 0px">
?<h3 class="b-performance_title b-performance_title__header"><nowiki>{{PAGENAME}}</nowiki></h3>+<h3 class="b-performance_title b-performance_title__header">
?[[image:{{#ifexist:Image:Anno{{PAGENAME}}.png|Anno{{PAGENAME}}.png{{!}}Icon|NoRender3000.png|Missing Image}}|center]]+{{#shipstr:{{#shipchars:{{#var:ship}}|mark}}}}
 +</h3>
 +[[image:Ship_{{PAGENAME}}.png|232px|center]]
 </div> </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>
  
 <div class="b-description"> <div class="b-description">
 +{{#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|}}}}}
?|<p class="error">History for this tank not found</p>}}+|<p class="error">History for this ship not found</p>}}
 {{#if:{{{HistoricalGallery|}}} {{#if:{{{HistoricalGallery|}}}
 |{{Gallery|title=<h3>Historical Gallery</h3>|style=collapsed|content={{{HistoricalGallery|}}}}} |{{Gallery|title=<h3>Historical Gallery</h3>|style=collapsed|content={{{HistoricalGallery|}}}}}
Line 49: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: