Difference between revisions of "Template:ShipArticle/doc"

From EVE University Wiki
Jump to: navigation, search
(→‎Enclosing Tags: Commenting out section on the fitting helper tool. It now outputs incorrect data on many ships (because that stats have changed).)
Line 185: Line 185:
 
}}&lt;/onlyinclude&gt; <!-- Template marker : DON'T EDIT LINE -->  
 
}}&lt;/onlyinclude&gt; <!-- Template marker : DON'T EDIT LINE -->  
 
</pre>
 
</pre>
 
 
<!---
 
<!---
The helper tool was awesome while it was accurate, but it hasn't kep up with stat changes on existing ships or with the introduction of new ships. So I'm commenting it out. But it was so useful that I'm leaving the documentation content here, just in case it gets updated again.
+
The helper tool was awesome while it was accurate, but it hasn't kep up with stat changes on existing ships or with the introduction of new ships. So I'm commenting it out. But it was so useful that I'm leaving the documentation content here, just in case it gets updated again. -{{User:Antei_thantonne}}
  
 
===Helper tool===
 
===Helper tool===

Revision as of 01:55, 13 June 2016

Template Format

The format of the code is as follows:

{{ShipArticle
| shipid=
| shipimg=
| shipname=
| caption=
| class=
| grouping=
| hulltype=
| faction=
| race=
| roles=
| variations=
| tech=
| ecmprio=
| powergrid=
| cpu=
| capacitor=
| highs=
| turrets=
| launchers=
| mediums=
| lows=
| mass=
| volume=
| cargohold=
| extrahold=
| extraholdtype=
| extrahold2=
| extrahold2type=
| extrahold3=
| extrahold3type=
| dronebay=
| bandwidth=
| fighterbay=
| fightertubes=
| lightfightersquadlimit=
| heavyfightersquadlimit=
| supportfightersquadlimit=
| info=
| bonuses=
| structurehp=
| shieldhp=
| shieldem=
| shieldexp=
| shieldkin=
| shieldtherm=
| armorhp=
| armorem=
| armorexp=
| armorkin=
| armortherm=
| maxvelocity=
| inertia=
| warpspeed=
| warptime=
| targetrange=
| sigradius=
| maxlockedtargets=
| sensortype=
| sensorvalue=
| scanres=
| reqskills=
| totaltraintime=
| forumlinks=
| wikireferences=
| externallinks=
| highlights1=
| highlights2=
| highlights3=
| highlights4=
| rigs_count=
| rigs_size=
| rigs_calibration=
}}

Example

An example of a proper template would be:

{{ShipArticle
 <!--  Template marker : DON'T EDIT LINE -->
 <!-----------------------------------------------------------
 * SHIP ATTRIBUTES SECTION (last update : 5/29/2014)
 -------------------------------------------------------------
 * on editing the attributes, please make sure that you don't
 * leave/misstype any tags required. please follow the same
 * format below and edit only the values (after the = sign).
 ------------------------------------------------------------->
 | shipid=24688
 | shipimg=Rokh.jpg
 | shipname=Rokh
 | caption=Rokh
 | class=Battleship
 | grouping=Standard Battleships
 | hulltype=Rokh Class
 | faction=Caldari State
 | race=Caldari
 | roles=unspecified
 | variations=<i>none</i>
 | tech=
 | ecmprio=0 <!-- 0 = none, 1 = low, 2 = normal, 3 = high, 4 = highest -->
 | powergrid=15,000 MW
 | cpu=780 tf
 | capacitor=6,000 GJ
 | highs=8
 | turrets=8
 | launchers=4
 | mediums=6
 | lows=5
 | mass=105,300,000 kg
 | volume=486,000 m³
 | cargohold=625 m³
 | extrahold=
 | extraholdtype=
 | extrahold2=
 | extrahold2type=
 | extrahold3=
 | extrahold3type=
 | dronebay=50 m³
 | bandwidth=50 Mbit/sec
 | fighterbay=
 | fightertubes=
 | lightfightersquadlimit=
 | heavyfightersquadlimit=
 | supportfightersquadlimit=
 | info=<br><b>Development</b><br>Having long suffered the lack of an adequate hybrid platform, the Caldari State's capsule pilots found themselves rejoicing as the Rokh's design specs were released. A fleet vessel if ever there was one, this far-reaching and durable beast is expected to see a great deal of service on battlefields near and far.
 | bonuses=<b>Caldari Battleship bonuses (per skill level):</b><br>10% bonus to Large Hybrid Turret optimal range<br>4% bonus to all shield resistances<br>
 | structurehp=7,500 HP
 | shieldhp=8,500 HP
 | shieldem=0
 | shieldexp=50
 | shieldkin=40
 | shieldtherm=20
 | armorhp=7,000 HP
 | armorem=50
 | armorexp=10
 | armorkin=25
 | armortherm=44.99999999999999
 | maxvelocity=89 m/sec
 | inertia=0.136
 | warpspeed=2 AU/s
 | warptime=19.85 s
 | targetrange=90.00 km
 | sigradius=500 m
 | maxlockedtargets=7
 | sensortype=Gravimetric
 | sensorvalue=24 points
 | scanres=75 mm
 | reqskills=*{{RequiredSkill|Caldari Battleship|I}}
**{{RequiredSkill|Spaceship Command|IV}}
**{{RequiredSkill|Caldari Battlecruiser|III}}
***{{RequiredSkill|Spaceship Command|III}}
***{{RequiredSkill|Caldari Cruiser|III}}
****{{RequiredSkill|Spaceship Command|II}}
****{{RequiredSkill|Caldari Destroyer|III}}
*****{{RequiredSkill|Caldari Frigate|III}}
******{{RequiredSkill|Spaceship Command|I}}

 | totaltraintime=3d 20h 55m 10s
 | forumlinks=
 | wikireferences=
 | externallinks=
 | highlights1=
 | highlights2=
 | highlights3=
 | highlights4=
 | rigs_count=
 | rigs_size=
 | rigs_calibration=
}}

Enclosing Tags

Ship articles actually include the following wrapper, instead of just a ShipArticle tag, to handle their inclusion in other pages. The autogenerated template code will include this snippet.

<onlyinclude>{{{{#if:{{{mode|}}}|{{#switch:{{{mode}}}|box=ShipBoxLarge|#default=ShipBoxTooltip}}|ShipArticle}} <!--  Template marker : DON'T EDIT LINE -->
...
}}</onlyinclude> <!-- Template marker : DON'T EDIT LINE --> 

Automatic Updates

A script will occasionally be run which will update the values based on the static data export from CCP.