Difference between revisions of "Template:Machine"

From Grid Sage Wiki
Jump to navigation Jump to search
(Template for machine data.)
 
m
 
(14 intermediate revisions by 3 users not shown)
Line 23: Line 23:
 
{{#if:{{{explosionDamage|}}}|
 
{{#if:{{{explosionDamage|}}}|
 
   {{Dataheader|Explosion}}
 
   {{Dataheader|Explosion}}
 +
      {{ Datum | Stability | {{{stability|N/A}}} | N/A }}
 
       {{ Datum | Delay | {{{delay|N/A}}} | N/A }}
 
       {{ Datum | Delay | {{{delay|N/A}}} | N/A }}
 
       {{ Datum | Radius | {{{explosionRadius|}}} }}
 
       {{ Datum | Radius | {{{explosionRadius|}}} }}
 
       {{ Datum | Damage | {{{explosionDamage|}}} }}
 
       {{ Datum | Damage | {{{explosionDamage|}}} }}
 
       {{ Datum |     Falloff | {{{explosionFalloff|}}} }}
 
       {{ Datum |     Falloff | {{{explosionFalloff|}}} }}
       {{ Datum | Type | {{{explosionType|Explosive}}} }}
+
       {{ Datum | Type | {{{explosionType|}}} }}
 
       {{ Datum | Spectrum | {{{explosionSpectrum|N/A}}} | N/A }}
 
       {{ Datum | Spectrum | {{{explosionSpectrum|N/A}}} | N/A }}
 +
      {{ Datum | Heat Transfer | {{{explosionTransfer|N/A}}} | N/A }}
 
       {{ Datum | Disruption | {{{explosionDisruption|0%}}} | 0% }}
 
       {{ Datum | Disruption | {{{explosionDisruption|0%}}} | 0% }}
 
       {{ Datum | Salvage | {{{explosionSalvage|+0}}} | 0 }}
 
       {{ Datum | Salvage | {{{explosionSalvage|+0}}} | 0 }}
 
}}
 
}}
}}</includeonly><noinclude>
+
}}
 +
[[Category:Machines]]
 +
</includeonly><noinclude>
 
This template lays out part info in a standard format and automatically links to the Part, Type, and Slot categories. It also creates properties from the supplied data for use in queries.
 
This template lays out part info in a standard format and automatically links to the Part, Type, and Slot categories. It also creates properties from the supplied data for use in queries.
 
== Usage ==
 
== Usage ==
Line 48: Line 52:
 
|slashing=0%
 
|slashing=0%
 
|piercing=0%
 
|piercing=0%
 +
|stability=100%
 +
|delay=0-0
 
|explosionRadius=4
 
|explosionRadius=4
 
|explosionDamage=37-65
 
|explosionDamage=37-65
 
|explosionFalloff=-8
 
|explosionFalloff=-8
 
|explosionType=Thermal
 
|explosionType=Thermal
 +
|explosionSpectrum=N/A
 +
|explosionTransfer=High
 
|explosionDisruption=0%
 
|explosionDisruption=0%
 
|explosionSalvage=-8
 
|explosionSalvage=-8
Line 66: Line 74:
 
|slashing=0%
 
|slashing=0%
 
|piercing=0%
 
|piercing=0%
 +
|stability=100%
 +
|delay=0-0
 
|explosionRadius=4
 
|explosionRadius=4
 
|explosionDamage=37-65
 
|explosionDamage=37-65
 
|explosionFalloff=-8
 
|explosionFalloff=-8
 
|explosionType=Thermal
 
|explosionType=Thermal
 +
|explosionSpectrum=N/A
 +
|explosionTransfer=High
 
|explosionDisruption=0%
 
|explosionDisruption=0%
 
|explosionSalvage=-8
 
|explosionSalvage=-8
Line 101: Line 113:
 
}}
 
}}
 
</nowiki>
 
</nowiki>
 
+
[[Category:Templates]]
<noinclude>
+
</noinclude>

Latest revision as of 02:13, 3 December 2019

This template lays out part info in a standard format and automatically links to the Part, Type, and Slot categories. It also creates properties from the supplied data for use in queries.

Usage

To add a machine to the wiki: copy one of the examples below, and fill in the fields.

Example explosive machine

/Data/
Overview
Armor
18
Structural Analysis
Kinetic
0%
Thermal
0%
Explosive
-50%
Electromagnetic
+50%
Impact
0%
Slashing
0%
Piercing
0%
Explosion
Stability
100%
Delay
0-0
Radius
4
Damage
37-65
    Falloff
-8
Type
Thermal
Spectrum
N/A
Heat Transfer
High
Disruption
0%
Salvage
-8
X
{{Machine
|name=Plasma Injector
|armor=18
|kinetic=0%
|thermal=0%
|explosive=-50%
|electromagnetic=+50%
|impact=0%
|slashing=0%
|piercing=0%
|stability=100%
|delay=0-0
|explosionRadius=4
|explosionDamage=37-65
|explosionFalloff=-8
|explosionType=Thermal
|explosionSpectrum=N/A
|explosionTransfer=High
|explosionDisruption=0%
|explosionSalvage=-8
}}


Example stable machine

/Data/
Overview
Armor
15
Structural Analysis
Kinetic
0%
Thermal
0%
Explosive
-50%
Electromagnetic
+50%
Impact
0%
Slashing
0%
Piercing
0%
X
{{Machine
|name=Core Extractor
|armor=15
|kinetic=0%
|thermal=0%
|explosive=-50%
|electromagnetic=+50%
|impact=0%
|slashing=0%
|piercing=0%
}}