Difference between revisions of "Template:Beam weapon"

From FreeSpace Wiki
Jump to: navigation, search
(new beam template - wip)
 
(Usage: Added my calculations, just in case anyone needs them when they're using this template for new beam articles in the future.)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
{|  style="margin: 0 0 1em 1em; background: #302020; border: 1px #AA2020 solid; border-collapse: collapse; font-size: 95%"
+
{|  {{#if: {{{table_style|}}}|{{{table_style}}}|style="margin: 0 0 1em 1em; background: #302020; border: 1px #AA2020 solid; border-collapse: collapse; font-size: 95%"}}
 
| style="width:200px" | '''Name'''
 
| style="width:200px" | '''Name'''
 
| style="width:200px" | {{{name}}}
 
| style="width:200px" | {{{name}}}
Line 30: Line 30:
 
{{!}} '''Number of shots'''
 
{{!}} '''Number of shots'''
 
{{!}} {{{shots}}}
 
{{!}} {{{shots}}}
 +
{{!}}
 +
}}
 +
|-
 +
{{#if: {{{damage|}}}|
 +
{{!}} '''Damage'''
 +
{{!}} {{{damage}}}
 
{{!}}
 
{{!}}
 
}}
 
}}
 
|-
 
|-
 
{{#if: {{{damage_per_s|}}}|
 
{{#if: {{{damage_per_s|}}}|
{{!}} '''Damage''' per second
+
{{!}} style="padding-left: 20px" {{!}} Damage
{{!}} {{{damage_per_s}}}
+
{{!}} style="padding-left: 20px" {{!}} {{{damage_per_s}}} s<sup>-1</sup>
 
{{!}}
 
{{!}}
 
}}
 
}}
 
|-
 
|-
 
{{#if: {{{damage_sustained|}}}|
 
{{#if: {{{damage_sustained|}}}|
{{!}} '''Damage''' per second (sustained)
+
{{!}} style="padding-left: 20px" {{!}} Damage (sustained)
{{!}} {{{damage_sustained}}}
+
{{!}} style="padding-left: 20px" {{!}} {{{damage_sustained}}} s<sup>-1</sup>
 
{{!}}
 
{{!}}
 
}}
 
}}
 
|-
 
|-
 
{{#if: {{{damage_per_pulse|}}}|
 
{{#if: {{{damage_per_pulse|}}}|
{{!}} '''Damage''' per pulse
+
{{!}} style="padding-left: 20px" {{!}} Damage per pulse
{{!}} {{{damage_per_pulse}}}
+
{{!}} style="padding-left: 20px" {{!}} {{{damage_per_pulse}}}
 
{{!}}
 
{{!}}
 
}}
 
}}
Line 54: Line 60:
  
 
'''Additional properties'''
 
'''Additional properties'''
*Weapon is a beam cannon [[Weapons.tbl#.22beam.22|(beam)]]
+
*Weapon is a beam cannon [[Weapons.tbl#.22beam.22|(beam)]]{{#if: {{{huge|}}}|*Weapon is capable of easily damaging even larger vessels [[Weapons.tbl#.22Huge.22|(Huge)]]}}{{#if: {{{big_ship|}}}|*Weapon cannot be mounted on small ships [[Weapons.tbl#.22Big_Ship.22|(Big Ship)]]}}{{#if: {{{same_turret_cooldown|}}}|*Weapon refire rate is the same on all difficulty levels [[Weapons.tbl#.22same_turret_cooldown.22|(same turret cooldown)]]}}<noinclude>
{{#if: {{{huge|}}}|*Weapon is capable of easily damaging even larger vessels [[Weapons.tbl#.22Huge.22|(Huge)]]}}
 
{{#if: {{{big_ship|}}}|*Weapon cannot be mounted on small ships [[Weapons.tbl#.22Big_Ship.22|(Big Ship)]]}}
 
{{#if: {{{same_turret_cooldown|}}}|*Weapon refire rate is the same on all difficulty levels [[Weapons.tbl#.22same_turret_cooldown.22|(same turret cooldown)]]}}
 
<noinclude>
 
  
 
== Usage ==
 
== Usage ==
 
<pre>{{Beam_weapon
 
<pre>{{Beam_weapon
 +
|table_style =
 
|name =  
 
|name =  
 
|recharge =
 
|recharge =
Line 67: Line 70:
 
|type =
 
|type =
 
|shots =
 
|shots =
 +
|damage =
 
|damage_per_s =
 
|damage_per_s =
 
|damage_sustained =
 
|damage_sustained =
Line 76: Line 80:
 
</pre>
 
</pre>
 
Entries in actual page do not have to follow the same order.
 
Entries in actual page do not have to follow the same order.
 +
 +
===Note===
 +
Beam stats are based on multiple values found in the weapons table file and are calculated as follows:
 +
 +
:'''Range''': [+Range value]
 +
:'''Recharge Time''': [$Fire Wait value]
 +
:'''Beam Lifetime''': [+Life value]
 +
:'''Type''': [+Type value], where
 +
::0 = Direct; 1 = Slashing; 2 = Targeting; 3 = Anti fighter; 4 = Fixed
 +
:'''Shots''': [+Shots value]
 +
:'''Damage per second''': [$Damage value] x 5.5
 +
:'''Damage per second (sustained)''': Damage per pulse / Recharge Time
 +
:'''Damage per pulse''': Damage per second x Beam lifetime
  
 
[[Category:Templates|Beam weapon]]
 
[[Category:Templates|Beam weapon]]
 
</noinclude>
 
</noinclude>

Latest revision as of 18:08, 9 June 2010

Name {{{name}}}

Additional properties

  • Weapon is a beam cannon (beam)

Usage

{{Beam_weapon
|table_style =
|name = 
|recharge =
|lifetime =
|type =
|shots =
|damage =
|damage_per_s =
|damage_sustained =
|damage_per_pulse =
|huge =
|big_ship =
|same_turret_cooldown =
}}

Entries in actual page do not have to follow the same order.

Note

Beam stats are based on multiple values found in the weapons table file and are calculated as follows:

Range: [+Range value]
Recharge Time: [$Fire Wait value]
Beam Lifetime: [+Life value]
Type: [+Type value], where
0 = Direct; 1 = Slashing; 2 = Targeting; 3 = Anti fighter; 4 = Fixed
Shots: [+Shots value]
Damage per second: [$Damage value] x 5.5
Damage per second (sustained): Damage per pulse / Recharge Time
Damage per pulse: Damage per second x Beam lifetime