Difference between revisions of "Template:Part"
Jump to navigation
Jump to search
(Made the template to pass the default value to Template:Datum if no value was provided) |
|||
Line 16: | Line 16: | ||
{{Dataheader|Shot}} | {{Dataheader|Shot}} | ||
{{ Datum | Range | {{{shotRange|}}} }} | {{ Datum | Range | {{{shotRange|}}} }} | ||
− | {{ Datum | Energy | {{{shotEnergy|}}} | 0 }} | + | {{ Datum | Energy | {{{shotEnergy|-0}}} | 0 }} |
− | {{ Datum | Matter | {{{shotMatter|}}} | 0 }} | + | {{ Datum | Matter | {{{shotMatter|-0}}} | 0 }} |
− | {{ Datum | Heat | {{{shotHeat|}}} | 0 }} | + | {{ Datum | Heat | {{{shotHeat|+0}}} | 0 }} |
− | {{ Datum | Recoil | {{{shotRecoil|}}} | 0 }} | + | {{ Datum | Recoil | {{{shotRecoil|0}}} | 0 }} |
− | {{ Datum | Targeting | {{{shotTargeting|}}} | 0% }} | + | {{ Datum | Targeting | {{{shotTargeting|0%}}} | 0% }} |
− | {{ Datum | Delay | {{{ | + | {{ Datum | Delay | {{{shotDelay0|}}} | 0 }} |
− | {{ Datum | Stability | {{{shotStability|}}} | N/A }} | + | {{ Datum | Stability | {{{shotStability|N/A}}} | N/A }} |
− | {{ Datum | Waypoints | {{{shotWaypoints|}}} | N/A }} | + | {{ Datum | Waypoints | {{{shotWaypoints|N/A}}} | N/A }} |
}}{{#if:{{{projectileDamage|}}}| | }}{{#if:{{{projectileDamage|}}}| | ||
{{Dataheader|Projectile {{#ifeq:{{{projectileCount|1}}} | 1 | | (x{{{projectileCount}}}) }} }} | {{Dataheader|Projectile {{#ifeq:{{{projectileCount|1}}} | 1 | | (x{{{projectileCount}}}) }} }} | ||
{{ Datum | Damage | {{{projectileDamage|}}} }} | {{ Datum | Damage | {{{projectileDamage|}}} }} | ||
{{ Datum | Type | {{{projectileType|}}} }} | {{ Datum | Type | {{{projectileType|}}} }} | ||
− | {{ Datum | Critical | {{{projectileCritical|}}} | 0% }} | + | {{ Datum | Critical | {{{projectileCritical|0%}}} | 0% }} |
− | {{ Datum | Penetration | {{{projectilePenetration|}}} | x0 }} | + | {{ Datum | Penetration | {{{projectilePenetration|x0}}} | x0 }} |
− | {{ Datum | Spectrum | {{{projectileSpectrum|}}} | N/A }} | + | {{ Datum | Spectrum | {{{projectileSpectrum|N/A}}} | N/A }} |
− | {{ Datum | Disruption | {{{projectileDisruption|}}} | 0% }} | + | {{ Datum | Disruption | {{{projectileDisruption|0%}}} | 0% }} |
− | {{ Datum | Salvage | {{{projectileSalvage|}}} | 0 }} | + | {{ Datum | Salvage | {{{projectileSalvage|0}}} | 0 }} |
}}{{#if:{{{explosionDamage|}}}| | }}{{#if:{{{explosionDamage|}}}| | ||
{{Dataheader|Explosion {{#ifeq:{{{explosionCount|1}}} | 1 | | (x{{{explosionCount}}}) }} }} | {{Dataheader|Explosion {{#ifeq:{{{explosionCount|1}}} | 1 | | (x{{{explosionCount}}}) }} }} | ||
Line 39: | Line 39: | ||
{{ Datum | Falloff | {{{explosionFalloff|}}} }} | {{ Datum | Falloff | {{{explosionFalloff|}}} }} | ||
{{ Datum | Type | {{{explosionType|Explosive}}} }} | {{ Datum | Type | {{{explosionType|Explosive}}} }} | ||
− | {{ Datum | Spectrum | {{{explosionSpectrum|}}} | N/A }} | + | {{ Datum | Spectrum | {{{explosionSpectrum|N/A}}} | N/A }} |
− | {{ Datum | Disruption | {{{explosionDisruption|}}} | 0% }} | + | {{ Datum | Disruption | {{{explosionDisruption|0%}}} | 0% }} |
− | {{ Datum | Salvage | {{{explosionSalvage|}}} | 0 }} | + | {{ Datum | Salvage | {{{explosionSalvage|0}}} | 0 }} |
}}{{#if:{{{attackEnergy|}}}| | }}{{#if:{{{attackEnergy|}}}| | ||
{{Dataheader|Attack}} | {{Dataheader|Attack}} | ||
− | {{ Datum | Energy | {{{attackEnergy|}}} | 0 }} | + | {{ Datum | Energy | {{{attackEnergy|-0}}} | 0 }} |
− | {{ Datum | Matter | {{{attackMatter|}}} | 0 }} | + | {{ Datum | Matter | {{{attackMatter|-0}}} | 0 }} |
− | {{ Datum | Heat | {{{attackHeat|}}} | 0 }} | + | {{ Datum | Heat | {{{attackHeat|+0}}} | 0 }} |
− | {{ Datum | Targeting | {{{attackTargeting|}}} | 0% }} | + | {{ Datum | Targeting | {{{attackTargeting|0%}}} | 0% }} |
− | {{ Datum | Delay | {{{attackDelay|}}} | 0 }} | + | {{ Datum | Delay | {{{attackDelay|0}}} | 0 }} |
}}{{#if:{{{hitDamage|}}}| | }}{{#if:{{{hitDamage|}}}| | ||
{{Dataheader|Hit}} | {{Dataheader|Hit}} | ||
{{ Datum | Damage | {{{hitDamage|}}} }} | {{ Datum | Damage | {{{hitDamage|}}} }} | ||
{{ Datum | Type | {{{hitType|}}} }} | {{ Datum | Type | {{{hitType|}}} }} | ||
− | {{ Datum | Critical | {{{hitCritical|}}} | 0% }} | + | {{ Datum | Critical | {{{hitCritical|0%}}} | 0% }} |
− | {{ Datum | Salvage | {{{hitSalvage|}}} | 0 }} | + | {{ Datum | Salvage | {{{hitSalvage|0}}} | 0 }} |
}}{{#if:{{{energyUpkeep|}}}{{{matterUpkeep|}}}{{{heatUpkeep|}}}| | }}{{#if:{{{energyUpkeep|}}}{{{matterUpkeep|}}}{{{heatUpkeep|}}}| | ||
{{Dataheader|Active Upkeep}} | {{Dataheader|Active Upkeep}} | ||
− | {{ Datum | Energy | {{{energyUpkeep|}}} | 0 }} | + | {{ Datum | Energy | {{{energyUpkeep|-0}}} | 0 }} |
− | {{ Datum | Matter | {{{matterUpkeep|}}} | 0 }} | + | {{ Datum | Matter | {{{matterUpkeep|-0}}} | 0 }} |
− | {{ Datum | Heat | {{{heatUpkeep|}}} | 0 }} | + | {{ Datum | Heat | {{{heatUpkeep|+0}}} | 0 }} |
}}{{#ifeq:{{{slot}}}|Power| | }}{{#ifeq:{{{slot}}}|Power| | ||
{{Dataheader|Power}} | {{Dataheader|Power}} | ||
Line 69: | Line 69: | ||
{{Dataheader|Propulsion}} | {{Dataheader|Propulsion}} | ||
{{ Datum | Time/Move | {{{propTime|}}} | 0 }} | {{ Datum | Time/Move | {{{propTime|}}} | 0 }} | ||
− | {{ Datum | Mod/Extra | {{{propMod|}}} | 0 }} | + | {{ Datum | Mod/Extra | {{{propMod|0}}} | 0 }} |
− | {{ Datum | Energy | {{{propEnergy|}}} | 0 }} | + | {{ Datum | Energy | {{{propEnergy|-0}}} | 0 }} |
− | {{ Datum | Heat | {{{propHeat|}}} | 0 }} | + | {{ Datum | Heat | {{{propHeat|+0}}} | 0 }} |
{{ Datum | Support | {{{propSupport|}}} | 0 }} | {{ Datum | Support | {{{propSupport|}}} | 0 }} | ||
{{ Datum | Penalty | {{{propPenalty|}}} | 0 }} | {{ Datum | Penalty | {{{propPenalty|}}} | 0 }} | ||
− | {{ Datum | Burnout | {{{propBurnout|}}} | N/A }} | + | {{ Datum | Burnout | {{{propBurnout|N/A}}} | N/A }} |
}} | }} | ||
{{#if:{{{effect|}}}| | {{#if:{{{effect|}}}| |
Revision as of 12:19, 29 September 2016
This template lays out part info in a standard format and automatically links to the Part, Type, and Slot categories.
Usage
To add an item to the wiki: create a page with the full name of the item, copy one of the examples below, and fill in the fields.
Please also create a redirect from the short name of the item (Imp. Flight Unit) to the full name (Improved Flight Unit), and link to the item from the relevant item type page (Propulsion).
Example Power Source
/Data/
Overview
Type
Slot
Mass
10
Rating
4
Integrity
55
Coverage
60
Active Upkeep
Energy
0
Matter
0
Heat
+7
Power
Supply
+11
Storage
190
Heat Stability
50%
Cooldown Period
5 turns
Improved Deuterium Engine
Fabrication
Time
90
Matter
35
Components
None
X
{{Part |name=Improved Deuterium Engine |shortName=Imp. Deuterium Engine |symbol=* |color=yellow |type=Engine |slot=Power |mass=10 |rating=4 |integrity=55 |coverage=60 |energyUpkeep=0 |matterUpkeep=0 |heatUpkeep=+7 |powerSupply=+11 |powerStorage=190 |powerStability=50% |powerCooldown=5 turns |fabTime=90 |fabMatter=35 |fabComponents=None }}
Example Propulsion
/Data/
Imp. Flight Unit [=]
Overview
Type
Slot
Mass
N/A
Rating
- 2
Integrity
40
Coverage
15
Active Upkeep
Energy
-1
Matter
0
Heat
+1
Propulsion
Time/Move
30
Mod/Extra
-10 (-20 max)
Energy
-1
Heat
+1
Support
8
Penalty
35
Burnout
N/A
Improved Flight Unit
Fabrication
Time
90
Matter
46
Components
None
X
{{Part |name=Improved Flight Unit |shortName=Imp. Flight Unit |symbol== |color=cyan |type=Flight Unit |slot=Propulsion |mass=N/A |rating=*2 |integrity=40 |coverage=15 |energyUpkeep=-1 |matterUpkeep=0 |heatUpkeep=+1 |propTime=30 |propMod=-10 (-20 max) |propEnergy=-1 |propHeat=+1 |propSupport=8 |propPenalty=35 |propBurnout=N/A |fabTime=90 |fabMatter=46 |fabComponents=None }}
Example Utility
/Data/
Overview
Type
Slot
Mass
4
Rating
1
Integrity
45
Coverage
8
Active Upkeep
Energy
-1
Matter
0
Heat
0
Effect
Increases matter storage capacity by 200 (stacks)
High-capacity Matter Storage Unit
Fabrication
Time
60
Matter
20
Components
None
X
{{Part |name=High-capacity Matter Storage Unit |shortName=Hcp. Matter Storage Unit |symbol=! |color=cyan |type=Storage |slot=Utility |mass=4 |rating=1 |integrity=45 |coverage=8 |energyUpkeep=-1 |matterUpkeep=0 |heatUpkeep=0 |effect=Increases matter storage capacity by 200 (stacks) |fabTime=60 |fabMatter=20 }}
Example Gun
/Data/
Overview
Type
Slot
Mass
1
Rating
1
Integrity
80
Coverage
100
Shot
Range
22
Energy
-1
Matter
-1
Heat
+20
Recoil
1
Targeting
0%
Delay
Stability
N/A
Waypoints
N/A
Projectile
Damage
6-10
Type
Kinetic
Critical
1%
Penetration
x0
Spectrum
N/A
Disruption
0%
Salvage
0
Light Assault Rifle
Fabrication
Time
60
Matter
20
Components
None
X
{{Part |name=Light Assault Rifle |shortName=Lgt. Assault Rifle |symbol=[ |color=orange |type=Ballistic Gun |slot=Weapon |mass=1 |rating=1 |integrity=80 |coverage=100 |shotRange=22 |shotEnergy=-1 |shotMatter=-1 |shotHeat=+20 |shotRecoil=1 |shotTargeting=0% |shotDelay=-20 |shotStability=N/A |shotWaypoints=N/A |projectileCount=1 |projectileDamage=6-10 |projectileType=Kinetic |projectileCritical=1% |projectilePenetration=x0 |projectileDisruption=0% |projectileSalvage=0 |fabTime=60 |fabMatter=20 |fabComponents=None }}
Example Launcher
/Data/
Missile Launcher []]
Overview
Type
Slot
Mass
6
Rating
3
Integrity
75
Coverage
110
Shot
Range
14
Energy
0
Matter
-3
Heat
+36
Recoil
0
Targeting
+10%
Delay
Stability
N/A
Waypoints
N/A
Explosion
Radius
4
Damage
30-66
Falloff
-10
Type
Explosive
Spectrum
N/A
Disruption
0%
Salvage
-10
Missile Launcher
Fabrication
Time
80
Matter
23
Components
None
X
{{Part |name=Missile Launcher |shortName=Missile Launcher |symbol=] |color=red |type=Launcher |slot=Weapon |mass=6 |rating=3 |integrity=75 |coverage=110 |shotRange=14 |shotEnergy=0 |shotMatter=-3 |shotHeat=+36 |shotRecoil=0 |shotTargeting=+10% |shotDelay=+20 |shotStability=N/A |shotWaypoints=N/A |explosionCount=1 |explosionRadius=4 |explosionDamage=30-66 |explosionFalloff=-10 |explosionType=Explosive |explosionDisruption=0% |explosionSalvage=-10 |fabTime=80 |fabMatter=23 |fabComponents=None }}
Example Melee Weapon
/Data/
Hvy. Flail [/]
Overview
Type
Slot
Mass
3
Rating
3
Integrity
63
Coverage
20
Attack
Energy
-5
Matter
0
Heat
+5
Targeting
0%
Delay
+100
Hit
Damage
14-42
Type
Impact
Critical
0%
Salvage
0
Heavy Flail
X
{{Part |name=Heavy Flail |shortName=Hvy. Flail |symbol=/ |color=green |type=Impact Weapon |slot=Weapon |mass=3 |rating=3 |integrity=63 |coverage=20 |attackEnergy=-5 |attackMatter=0 |attackHeat=+5 |attackTargeting=0% |attackDelay=+100 |hitDamage=14-42 |hitType=Impact |hitCritical=0% |hitSalvage=0 |fabTime= |fabMatter= |fabComponents= }}