Difference between revisions of "Template:ShipArticle"

From EVE University Wiki
Jump to: navigation, search
(triglavian logo)
m (There's no {{{ship}}} attribute, you doofus.)
 
(2 intermediate revisions by the same user not shown)
Line 403: Line 403:
 
<div class='att-item'>
 
<div class='att-item'>
 
<div class='item att-label'>Cargo Capacity</div><div class='item att-img'>[[Image:Icon_capacity.png|center|20x20px|cargo capacity]]</div><div class='item att-value'>{{{cargohold|0 m&#179;}}}</div>
 
<div class='item att-label'>Cargo Capacity</div><div class='item att-img'>[[Image:Icon_capacity.png|center|20x20px|cargo capacity]]</div><div class='item att-value'>{{{cargohold|0 m&#179;}}}</div>
 +
</div>
 +
<div class='att-item' {{#ifeq:{{{class|}}}|Battleship| |style="display: none;"}}>
 +
<div class='item att-label'>Frigate Escape Bay</div><div class='item att-img'>[[Image:Isis_frigate.png|center|20x20px|Frigate Capacity]]</div><div class='item att-value'>1 Frigate</div>
 
</div>
 
</div>
 
<div class='att-item' {{#if:{{{extrahold|}}}| |style="display: none;"}}>
 
<div class='att-item' {{#if:{{{extrahold|}}}| |style="display: none;"}}>

Latest revision as of 16:39, 24 March 2020


Template documentation (for the above template, sometimes hidden or invisible)

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 --> 
Visit Template:ShipArticle/doc to edit this text! (How does this work?) (Refresh this text - why?)