YellowWarningTriangle.png This wiki is closed in favour of the new wiki. Information shown is likely to be very out of date.

Difference between revisions of "Template:Gun"

From Discovery Wiki
Jump to navigationJump to search
Line 75: Line 75:
 
'''Template:Gun''' is for weapons that use gun and turret hard-points, with non-motorized projectiles. [[:Template:Missile]] provides similar functionality for weapons with motorized projectiles.
 
'''Template:Gun''' is for weapons that use gun and turret hard-points, with non-motorized projectiles. [[:Template:Missile]] provides similar functionality for weapons with motorized projectiles.
  
The value of ''full-name'' is the item's full name, as extracted from the infocard data, and should be used for the page title, and is only provided here for reference. ''short-name'' is used for the title of the infobox, and the remaining attributes are for infobox attribute values. Of particular note:
+
Recognized attributes are shown in the ''Usage'' section below. Of particular note:
  
* If a ''rotation'' attribute is provided then the entry is treated as a Turret, otherwise it is treated as a Gun. The infobox data and the linked Category are affected by this outcome.
+
* ''description'' is used for the text block at the top of the page.
  
* If a ''projectile-image'' attribute is found, a subsection for the referenced image is displayed.
+
* ''full-name'' is the item's full name, as extracted from the infocard data, and should be used for the page title. It is not used by the template and is only provided for reference.
 +
 
 +
* ''short-name'' is used for the title of the infobox.
 +
 
 +
* If a ''rotation'' attribute is provided then the entry is treated as a Turret, otherwise it is treated as a Gun. The infobox data and the Category links in the footer are affected by this outcome.
  
 
* If a value for the ''image'' attribute is not provided, [[:File:no_fighter_gun.png]] is used as the default image.
 
* If a value for the ''image'' attribute is not provided, [[:File:no_fighter_gun.png]] is used as the default image.
 +
 +
* If a ''projectile-image'' attribute is found, a subsection for the referenced image is displayed.
  
 
==Usage==
 
==Usage==

Revision as of 15:36, 29 October 2012


Template:Gun is for weapons that use gun and turret hard-points, with non-motorized projectiles. Template:Missile provides similar functionality for weapons with motorized projectiles.

Recognized attributes are shown in the Usage section below. Of particular note:

  • description is used for the text block at the top of the page.
  • full-name is the item's full name, as extracted from the infocard data, and should be used for the page title. It is not used by the template and is only provided for reference.
  • short-name is used for the title of the infobox.
  • If a rotation attribute is provided then the entry is treated as a Turret, otherwise it is treated as a Gun. The infobox data and the Category links in the footer are affected by this outcome.
  • If a projectile-image attribute is found, a subsection for the referenced image is displayed.

Usage

{{Gun
| image = li_laser_beam.png
| short-name = Starbeam
| full-name = CL-a "Starbeam" Civilian Laser Cannon
| faction = [[Civilian]]
| description = This is a laser-based weapon that provides a high refire
rate at a reduced damage output. This weapon is most effective against
positron shields, and weakest against graviton shields.  
| price = 450
| weapon-class = [[Class 2 Gun]]
| hull-damage = 14
| energy-damage = 7
| damage-type = [[Laser]]
| refire-rate = 8.33
| projectile-speed = 750
| projectile-range = 600
| power-usage = 4
| hit-points = 400
| cargo-space = 0
| projectile-image = ci_laser_01_proj.png
| places-sold = 
{{{!}} class="wikitable collapsible collapsed"
!Spoiler: Buying Locations
{{!}}-
{{!}}
{{{!}} class="wikitable sortable"
{{!}}-
!Base!!Owner!!System!!Location
{{!}}-
{{!}}Base A{{!}}{{!}}Faction A{{!}}{{!}}System A{{!}}{{!}}Region A
{{!}}-
{{!}}Base B{{!}}{{!}}Faction B{{!}}{{!}}System B{{!}}{{!}}Region B
{{!}}}
{{!}}}
}}

Result

Starbeam

Li laser beam.png

Gun

Owner Faction Civilian
Weapon Class Class 2 Gun
Refire Rate 8.33/s
Power Usage 4u
Cargo Space 0
Hit-Points 400
Price $450

Projectile

Hull Damage 14
Energy Damage 7
Damage Type Laser
Projectile Range 600 m
Projectile Speed 750 m/s
Projectile Lifetime 0 sec

This is a laser-based weapon that provides a high refire rate at a reduced damage output. This weapon is most effective against positron shields, and weakest against graviton shields.

Projectile Image

projectile image

Places Sold