Difference between revisions of "Template:Part"

From Grid Sage Wiki
Jump to navigation Jump to search
(Use header and datum templates for layout)
(melee weapon fields)
Line 12: Line 12:
 
   {{ Datum | Coverage | {{{coverage}}} }}
 
   {{ Datum | Coverage | {{{coverage}}} }}
  
{{#ifeq:{{{slot}}}|Weapon|
+
{{#if:{{{projectileDamage|}}}|
 
   {{Dataheader|Shot}}
 
   {{Dataheader|Shot}}
 
       {{ Datum | Range | {{{shotRange|}}} }}
 
       {{ Datum | Range | {{{shotRange|}}} }}
Line 31: Line 31:
 
       {{ Datum | Disruption | {{{projectileDisruption|}}} }}
 
       {{ Datum | Disruption | {{{projectileDisruption|}}} }}
 
       {{ Datum | Salvage | {{{projectileSalvage|}}} }}
 
       {{ Datum | Salvage | {{{projectileSalvage|}}} }}
|
+
}}
 +
{{#if:{{{hitDamage|}}}
 +
  {{Dataheader|Attack}}
 +
    {{ Datum | Energy | {{{attackEnergy|}}} }}
 +
    {{ Datum | Matter | {{{attackMatter|}}} }}
 +
    {{ Datum | Heat | {{{attackHeat|}}} }}
 +
    {{ Datum | Targeting | {{{attackTargeting|}}} }}
 +
    {{ Datum | Delay | {{{attackDelay|}}} }}
 +
  {{Dataheader|Hit}}
 +
    {{ Datum | Damage | {{{hitDamage|}}} }}
 +
    {{ Datum | Type | {{{hitType|}}} }}
 +
    {{ Datum | Critical | {{{hitCritical|}}} }}
 +
    {{ Datum | Salvage | {{{hitSalvage|}}} }}
 +
}}
 +
{{#if:{{{energyUpkeep|}}}{{{matterUpkeep|}}}{{{heatUpkeep|}}}|
 
   {{Dataheader|Active Upkeep}}
 
   {{Dataheader|Active Upkeep}}
 
     {{ Datum | Energy | {{{energyUpkeep|0}}} }}
 
     {{ Datum | Energy | {{{energyUpkeep|0}}} }}
Line 52: Line 66:
 
     {{ Datum | Burnout | {{{propBurnout|}}} }}
 
     {{ Datum | Burnout | {{{propBurnout|}}} }}
 
}}
 
}}
{{#ifeq:{{{slot}}}|Utility|
+
{{#if:{{{effect|}}}|
 
   {{Dataheader|Effect}}
 
   {{Dataheader|Effect}}
 
{{{effect|None}}}
 
{{{effect|None}}}
Line 86: Line 100:
 
}}
 
}}
 
</nowiki>
 
</nowiki>
 +
{{Part
 +
|name=Datajack
 +
|shortName=Datajack
 +
|symbol=/
 +
|color=darkmagenta
 +
|type=Special Melee Weapon
 +
|slot=Weapon
 +
|mass=1
 +
|rating=1
 +
|integrity=10
 +
|coverage=20
 +
|attackEnergy=-10
 +
|attackMatter=
 +
|attackHeat=+10
 +
|attackTargeting=
 +
|attackDelay=+100
 +
|hitDamage=0-0
 +
|hitType=Special
 +
|hitCritical=
 +
|hitSalvage=
 +
|effect=Penetrates target armor and enables system access with a 35% success rate. (55% against non-combat robots.)
 +
|fabTime=60
 +
|fabMatter=20
 +
|fabComponents=None
 +
}}
 
<noinclude>
 
<noinclude>

Revision as of 05:36, 3 June 2015

This template lays out part info in a standard format and automatically links to the Part, Type, and Slot categories.

Usage

{{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
|effect=Increases matter storage capacity by 200 (stacks)
|fabTime=60
|fabMatter=20
}}

/Data/

Datajack [/]

Overview
Slot
Mass
1
Rating
1
Integrity
10
Coverage
20



Effect

Penetrates target armor and enables system access with a 35% success rate. (55% against non-combat robots.)

Datajack

Fabrication
Time
60
Matter
20
Components
None
X