Difference between revisions of "Template:Part"

From Grid Sage Wiki
Jump to navigation Jump to search
(use symbol template)
(Use header and datum templates for layout)
Line 1: Line 1:
<includeonly>
+
<includeonly>{{Databox|content=
{{Databox|content=
 
 
<div style="text-align: center;">
 
<div style="text-align: center;">
 
{{{shortName|{{PAGENAME}}}}} {{symbol|{{{symbol}}}|color={{{color|}}}}}
 
{{{shortName|{{PAGENAME}}}}} {{symbol|{{{symbol}}}|color={{{color|}}}}}
 
</div>
 
</div>
  
<div style="color: lightgray;">Overview</div>
+
{{Dataheader|Overview}}
Type: [[{{{type}}}]]<br>
+
  {{ Datum | Type | [[{{{type}}}]] }}
Slot: [[{{{slot}}}]]<br>
+
  {{ Datum | Slot | [[{{{slot}}}]] }}
Mass: {{{mass|N/A}}}<br>
+
  {{ Datum | Mass | {{{mass|N/A}}} }}
Rating: {{{rating}}}<br>
+
  {{ Datum | Rating | {{{rating}}} }}
Integrity: {{{integrity}}}<br>
+
  {{ Datum | Integrity | {{{integrity}}} }}
Coverage: {{{coverage}}}
+
  {{ Datum | Coverage | {{{coverage}}} }}
  
 
{{#ifeq:{{{slot}}}|Weapon|
 
{{#ifeq:{{{slot}}}|Weapon|
<div style="color: lightgray;">Shot</div>
+
  {{Dataheader|Shot}}
Range: {{{shotRange|}}}<br>
+
      {{ Datum | Range | {{{shotRange|}}} }}
Energy: {{{shotEnergy|}}}<br>
+
      {{ Datum | Energy | {{{shotEnergy|}}} }}
Matter: {{{shotMatter|}}}<br>
+
      {{ Datum | Matter | {{{shotMatter|}}} }}
Heat: {{{shotHeat|}}}<br>
+
      {{ Datum | Heat | {{{shotHeat|}}} }}
Recoil: {{{shotRecoil|}}}<br>
+
      {{ Datum | Recoil | {{{shotRecoil|}}} }}
Targeting: {{{shotTargeting|}}}<br>
+
      {{ Datum | Targeting | {{{shotTargeting|}}} }}
Delay: {{{shotDelay|}}}<br>
+
      {{ Datum | Delay | {{{shotDelay|}}} }}
Stability: {{{shotStability|}}}<br>
+
      {{ Datum | Stability | {{{shotStability|}}} }}
Waypoints: {{{shotWaypoints|}}}
+
      {{ Datum | Waypoints | {{{shotWaypoints|}}} }}
  
<div style="color: lightgray;">Projectile</div>
+
  {{Dataheader|Projectile}}
Damage: {{{projectileDamage|}}}<br>
+
      {{ Datum | Damage | {{{projectileDamage|}}} }}
Type: {{{projectileType|}}}<br>
+
      {{ Datum | Type | {{{projectileType|}}} }}
Critical: {{{projectileCritical|}}}<br>
+
      {{ Datum | Critical | {{{projectileCritical|}}} }}
Penetration: {{{projectilePenetration|}}}<br>
+
      {{ Datum | Penetration | {{{projectilePenetration|}}} }}
Disruption: {{{projectileDisruption|}}}<br>
+
      {{ Datum | Disruption | {{{projectileDisruption|}}} }}
Salvage: {{{projectileSalvage|}}}<br>
+
      {{ Datum | Salvage | {{{projectileSalvage|}}} }}
 
|
 
|
<div style="color: lightgray;">Active Upkeep</div>
+
  {{Dataheader|Active Upkeep}}
Energy: {{{energyUpkeep|0}}}<br>
+
    {{ Datum | Energy | {{{energyUpkeep|0}}} }}
Matter: {{{matterUpkeep|0}}}<br>
+
    {{ Datum | Matter | {{{matterUpkeep|0}}} }}
Heat: {{{heatUpkeep|0}}}<br>
+
    {{ Datum | Heat | {{{heatUpkeep|0}}} }}
 
}}{{#ifeq:{{{slot}}}|Power|
 
}}{{#ifeq:{{{slot}}}|Power|
<div style="color: lightgray;">Power</div>
+
  {{Dataheader|Power}}
Supply: {{{powerSupply|0}}}<br>
+
    {{ Datum | Supply | {{{powerSupply|0}}} }}
Storage: {{{powerStorage|0}}}<br>
+
    {{ Datum | Storage | {{{powerStorage|0}}} }}
Heat Stability: {{{powerStability|0}}}<br>
+
    {{ Datum | Heat Stability | {{{powerStability|0}}} }}
Cooldown Period: {{{powerCooldown|0}}}<br>
+
    {{ Datum | Cooldown Period | {{{powerCooldown|0}}} }}
 
}}{{#ifeq:{{{slot}}}|Propulsion|
 
}}{{#ifeq:{{{slot}}}|Propulsion|
<div style="color: lightgray;">Propulsion</div>
+
  {{Dataheader|Propulsion}}
Time/Move: {{{propTime|}}}<br>
+
    {{ Datum | Time/Move | {{{propTime|}}} }}
&nbsp;&nbsp;Mod/Extra: {{{propMod|0}}}<br>
+
    {{ Datum | &nbsp;&nbsp;Mod/Extra | {{{propMod|0}}} }}
Energy: {{{propEnergy|0}}}<br>
+
    {{ Datum | Energy | {{{propEnergy|0}}} }}
Heat: {{{propHeat|0}}}<br>
+
    {{ Datum | Heat | {{{propHeat|0}}} }}
Support: {{{propSupport|0}}}<br>
+
    {{ Datum | Support | {{{propSupport|0}}} }}
&nbsp;&nbsp;Penalty: {{{propPenalty|0}}}<br>
+
    {{ Datum | &nbsp;&nbsp;Penalty | {{{propPenalty|0}}} }}
Burnout: {{{propBurnout|}}}
+
    {{ Datum | Burnout | {{{propBurnout|}}} }}
 
}}
 
}}
 
{{#ifeq:{{{slot}}}|Utility|
 
{{#ifeq:{{{slot}}}|Utility|
<div style="color: lightgray;">Effect</div>
+
  {{Dataheader|Effect}}
 
{{{effect|None}}}
 
{{{effect|None}}}
 
}}
 
}}
Line 61: Line 60:
  
 
{{#if:{{{fabTime|}}}{{{fabMatter|}}}|
 
{{#if:{{{fabTime|}}}{{{fabMatter|}}}|
<div style="color: lightgray;">Fabrication</div>
+
  {{Dataheader|Fabrication}}
Time: {{{fabTime|}}}<br>
+
    {{ Datum | Time | {{{fabTime|}}} }}
Matter: {{{fabMatter|}}}<br>
+
    {{ Datum | Matter | {{{fabMatter|}}} }}
Components: {{{fabComponents|None}}}<br>
+
    {{ Datum | Components | {{{fabComponents|None}}} }}
 
}}
 
}}
}}
+
}} [[Category:{{{type}}} Parts]] [[Category:{{{slot}}} Parts]] [[Category:Parts]]
[[Category:{{{type}}} Parts]]
+
</includeonly><noinclude>
[[Category:{{{slot}}} Parts]]
 
[[Category:Parts]]
 
</includeonly>
 
<noinclude>
 
 
This template lays out part info in a standard format and automatically links to the Part, Type, and Slot categories.
 
This template lays out part info in a standard format and automatically links to the Part, Type, and Slot categories.
 
== Usage ==  
 
== Usage ==  

Revision as of 02:10, 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
}}