Difference between revisions of "Template:ShipArticle/doc"

From EVE University Wiki
Jump to: navigation, search
m (added example)
m
(16 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
+
<noinclude>{{main|Template:ShipArticle}}</noinclude>
 
===Template Format===
 
===Template Format===
  
Line 29: Line 29:
 
| volume=
 
| volume=
 
| cargohold=
 
| cargohold=
 +
| extrahold=
 +
| extraholdtype=
 +
| extrahold2=
 +
| extrahold2type=
 +
| extrahold3=
 +
| extrahold3type=
 +
| extrahold4=
 +
| extrahold4type=
 
| dronebay=
 
| dronebay=
 
| bandwidth=
 
| bandwidth=
 +
| fighterbay=
 +
| fightertubes=
 +
| lightfightersquadlimit=
 +
| heavyfightersquadlimit=
 +
| supportfightersquadlimit=
 
| info=
 
| info=
 
| bonuses=
 
| bonuses=
Line 63: Line 76:
 
| highlights3=
 
| highlights3=
 
| highlights4=
 
| highlights4=
 +
| rigs_count=
 +
| rigs_size=
 +
| rigs_calibration=
 
}}
 
}}
 
</pre>
 
</pre>
Line 70: Line 86:
 
<pre>
 
<pre>
 
{{ShipArticle
 
{{ShipArticle
<!--  Template marker : DON'T EDIT LINE -->
+
<!--  Template marker : DON'T EDIT LINE -->
<!-----------------------------------------------------------
+
<!-----------------------------------------------------------
* SHIP ATTRIBUTES SECTION (last update : 5/29/2014)
+
* SHIP ATTRIBUTES SECTION (last update : 5/29/2014)
-------------------------------------------------------------
+
-------------------------------------------------------------
* on editing the attributes, please make sure that you don't
+
* on editing the attributes, please make sure that you don't
* leave/misstype any tags required. please follow the same
+
* leave/misstype any tags required. please follow the same
* format below and edit only the values (after the = sign).
+
* 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&#179;
 +
| cargohold=625 m&#179;
 +
| extrahold=
 +
| extraholdtype=
 +
| extrahold2=
 +
| extrahold2type=
 +
| extrahold3=
 +
| extrahold3type=
 +
| extrahold4=
 +
| extrahold4type=
 +
| dronebay=50 m&#179;
 +
| 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}}
  
|shipid=2006
+
| totaltraintime=3d 20h 55m 10s
|shipimg=Omen.jpg
+
| forumlinks=
|shipname=Omen
+
| wikireferences=
|caption=Omen
+
| externallinks=
|class=Cruiser
+
| highlights1=
|grouping=Standard Cruisers
+
| highlights2=
|hulltype=Omen Class
+
| highlights3=
|faction=Amarr Empire
+
| highlights4=
|race=Amarr
+
| rigs_count=
|roles=unspecified
+
| rigs_size=
|variations={{Ship|Zealot}},{{Ship|Omen Navy Issue}}
+
| rigs_calibration=
|tech=
+
}}
 +
</pre>
  
|ecmprio=0 <!-- 0 = none, 1 = low, 2 = normal, 3 = high, 4 = highest -->
+
===Enclosing Tags===
  
|powergrid=925 MW
+
Ship articles actually include the following wrapper, instead of just a <tt>ShipArticle</tt> tag, to handle their inclusion in other pages.
|cpu=315 tf
+
The autogenerated template code will include this snippet.
|capacitor=1,475 GJ
+
<pre>
|highs=5
+
&lt;onlyinclude&gt;{{{{#if:{{{mode|}}}|{{#switch:{{{mode}}}|box=ShipBoxLarge|#default=ShipBoxTooltip}}|ShipArticle}} <!--  Template marker : DON'T EDIT LINE -->
|turrets=5
+
...
|launchers=0
+
}}&lt;/onlyinclude&gt; <!-- Template marker : DON'T EDIT LINE -->
|mediums=3
+
</pre>
|lows=6
+
<!---
 
+
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}}
|mass=13,000,000 kg
 
|volume=118,000 m&#179;
 
|cargohold=400 m&#179;
 
 
 
|dronebay=40 m&#179;
 
|bandwidth=40 Mbit/sec
 
 
 
|info=<b>Development</b><br>The Omen is a stereotypical example of the Amarrian School of thinking when it comes to ship design: thick armor and hard hitting lasers. Advancements in heat dissipation allow the Omen to fire its lasers faster than other ships without this technology.
 
 
 
|bonuses=<b>Amarr Cruiser bonuses (per skill level):</b><br>10% reduction in Medium Energy Turret activation cost<br>5% bonus to Medium Energy Turret rate of fire<br>
 
 
 
|structurehp=1,500 HP
 
|shieldhp=1,200 HP |shieldem=0 |shieldexp=50 |shieldkin=40 |shieldtherm=20
 
|armorhp=1,700 HP |armorem=50 |armorexp=20 |armorkin=25 |armortherm=35
 
 
 
|maxvelocity=260 m/sec
 
|inertia=0.43
 
|warpspeed=3 AU/s
 
|warptime=7.75 s
 
 
 
|targetrange=55.00 km
 
|sigradius=115 m
 
|maxlockedtargets=6
 
|sensortype=RADAR
 
|sensorvalue=15 points
 
|scanres=300 mm
 
 
 
|reqskills=*{{RequiredSkill|Amarr Cruiser|I}}
 
**{{RequiredSkill|Spaceship Command|II}}
 
**{{RequiredSkill|Amarr Destroyer|III}}
 
***{{RequiredSkill|Amarr Frigate|III}}
 
****{{RequiredSkill|Spaceship Command|I}}
 
 
 
|totaltraintime=19h 15m 30s
 
 
 
|forumlinks=
 
|wikireferences=
 
|externallinks=
 
 
 
|highlights1=
 
|highlights2=
 
|highlights3=
 
|highlights4=
 
  
}}
 
</pre>
 
 
===Helper tool===
 
===Helper tool===
  
 
To automatically generate template code for an existing ship, you can use the tool located [http://ubik2.github.io/eveuniversity-wiki-helpers/ship_template.html here].
 
To automatically generate template code for an existing ship, you can use the tool located [http://ubik2.github.io/eveuniversity-wiki-helpers/ship_template.html here].
  
===Automatic Updates===
+
--->
 
+
<includeonly>[[Category:Formatting templates]]</includeonly>
A script will occasionally be run which will update the values based on the static data export from CCP.
+
<noinclude>[[Category:Template documentation]]</noinclude>
 
 
<noinclude>[[Category:Template]]</noinclude>
 

Revision as of 07:25, 22 March 2021

Main article: Template:ShipArticle

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=
| extrahold4=
| extrahold4type=
| 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=
 | extrahold4=
 | extrahold4type=
 | 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 -->