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(59 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude><!--</noinclude> | + | <noinclude><!--</noinclude>__NOTOC__ __NOEDITSECTION__ |
− | {| class=" | + | {| class="infobox bordered" style="float: right; width: 270px; font-size: 90%; line-height: 110%; margin-left: 1em; margin-bottom: 1em; border: 1px solid #aaa;" cellpadding="3" |
|- | |- | ||
− | | colspan="2" class="infobox-name"| | + | | colspan="2" class="infobox-name" style="font-family: Agency FB,Verdana,Arial,sans-serif; font-size: 185%; font-weight: 500; text-decoration: underline; text-align: center; background-color: #14193F; line-height: 1.5em;"|{{{short-name}}} |
|- | |- | ||
− | | colspan="2" style=" | + | | colspan="2" style="text-align: center; background-color: #14193F;"|{{#if: {{{image|}}} |
− | | [[ | + | | {{#ifexist:File:{{{image}}} |
− | | [[image:no_fighter_gun.png|center|220px]]}} | + | | [[Image:{{{image}}}|center|220px]] |
+ | | Please [[File:{{{image}}}|upload]] the {{{image}}} file.}} | ||
+ | | [[Image:no_fighter_gun.png|center|220px]]}} | ||
|- | |- | ||
− | | colspan="2" class="infobox-section"|{{#if:{{{rotation|}}} | + | | colspan="2" class="infobox-section" style="font-family: Agency FB,Verdana,Arial,sans-serif; font-size: 150%; font-weight: 500; text-decoration: underline; text-align: center; background-color: #14193F; line-height: 1.5em;"|{{#if:{{{rotation|}}}|Energy Turret|Energy Gun}} |
− | | | + | |- title "Faction that owns this technology" |
− | | | + | | class="infobox-data-title" | '''Owner Faction''' |
− | |-title "Faction that owns this technology" | ||
− | |class="infobox-data-title" | '''Owner Faction''' | ||
|| {{{faction|''unknown''}}} | || {{{faction|''unknown''}}} | ||
− | |-title "Weapon hard-point type and/or class" | + | |- title "Weapon hard-point type and/or class" |
− | |class="infobox-data-title" | '''Weapon Class''' | + | | class="infobox-data-title" | '''Weapon Class''' |
|| {{#if:{{{weapon-class|}}}|[[{{{weapon-class}}}]]|''unknown''}} | || {{#if:{{{weapon-class|}}}|[[{{{weapon-class}}}]]|''unknown''}} | ||
{{#if:{{{rotation|}}} | {{#if:{{{rotation|}}} | ||
|{{!}}- title="Turret rotation rate, in radians/sec" | |{{!}}- title="Turret rotation rate, in radians/sec" | ||
− | {{!}}class="infobox-data-title" {{!}} '''Turret Rotation''' | + | {{!}} class="infobox-data-title" {{!}} '''Turret Rotation''' |
− | {{!!}} {{{rotation|}}} | + | {{!!}} {{{rotation|}}} deg/s|}} |
|- title="Cargo space used by the weapon" | |- title="Cargo space used by the weapon" | ||
− | |class="infobox-data-title" | '''Cargo Space''' | + | | class="infobox-data-title" | '''Cargo Space''' |
|| {{{cargo-space|''unknown''}}} | || {{{cargo-space|''unknown''}}} | ||
|- title="Damage the weapon can take before being destroyed" | |- title="Damage the weapon can take before being destroyed" | ||
− | |class="infobox-data-title" | '''Hit-Points''' | + | | class="infobox-data-title" | '''Hit-Points''' |
|| {{{hit-points|''unknown''}}} | || {{{hit-points|''unknown''}}} | ||
+ | |- | ||
+ | | class="infobox-data-title" | '''Price''' | ||
+ | || {{#if: {{{price|}}}|{{formatnum:{{{price}}}}}|''unknown''}} | ||
|} | |} | ||
− | + | {{#if:{{{description|}}}|{{{description}}}|''No description available.''}} | |
− | {{#if:{{{description|}}}|{{{description}}}|''description | + | ==Weapon Stats== |
− | + | * Hull Damage: {{{hull-damage|''unknown''}}} /round ({{formatnum: {{#expr:{{formatnum:{{{hull-damage}}}|R}}*{{{refire-rate}}}}}|,}} /sec) {{#ifeq: {{{power-usage}}}|0||*: {{#expr: {{#expr:{{formatnum:{{{hull-damage}}}|R}}/{{formatnum:{{{power-usage}}}|R}}}} round2}}:1 efficiency}} | |
− | == | + | * Energy Damage: {{{energy-damage|''unknown''}}} /round ({{formatnum: {{#expr:{{formatnum:{{{energy-damage}}}|R}}*{{{refire-rate}}}}}|,}} /sec) {{#ifeq: {{{power-usage}}}|0||*: {{#expr: {{#expr:{{formatnum:{{{energy-damage}}}|R}}/{{formatnum:{{{power-usage}}}|R}}}} round2}}:1 efficiency}} |
− | * Hull Damage: {{{hull-damage|''unknown''}}} ({{#expr:{{{hull-damage}}}*{{{refire-rate}}}}} /sec) | ||
− | * Energy Damage: {{{energy-damage|''unknown''}}} ({{#expr:{{{energy-damage}}}*{{{refire-rate}}}}} /sec) | ||
* Refire Rate: {{{refire-rate|''unknown''}}} /sec | * Refire Rate: {{{refire-rate|''unknown''}}} /sec | ||
− | * Power Usage: {{{power-usage|''unknown''}}}u ({{#expr:{{{power-usage}}}*{{{refire-rate}}}}} u/sec) | + | * Power Usage: {{{power-usage|''unknown''}}} u/round ({{formatnum:{{#expr:{{formatnum:{{{power-usage}}}|R}}*{{{refire-rate}}}}}|,}} u/sec) |
* Damage Type: {{{damage-type|''unknown''}}} | * Damage Type: {{{damage-type|''unknown''}}} | ||
− | === | + | ===Energy Pulse Stats=== |
* Speed: {{{projectile-speed|0}}} m/sec | * Speed: {{{projectile-speed|0}}} m/sec | ||
* Travel Range: {{{projectile-range|0}}} meters | * Travel Range: {{{projectile-range|0}}} meters | ||
* Lifetime: {{{projectile-lifetime|0}}} seconds | * Lifetime: {{{projectile-lifetime|0}}} seconds | ||
− | + | {{#if:{{{projectile-image|}}}|===Projectile Image=== | |
− | {{#if:{{{projectile-image|}}}|==Projectile Image== | + | : {{#ifexist:File:{{{projectile-image}}}|[[File:{{{projectile-image}}}|projectile image]]|Please [[File:{{{projectile-image}}}|upload]] the {{{projectile-image}}} file.}}}} |
− | {{#ifexist:File:{{{projectile-image}}}|[[File:{{{projectile-image}}}|projectile image]]|Please [[File:{{{projectile-image}}}|upload]] | + | {{Clear}} |
− | + | ==Buy/Sell Locations== | |
− | {{#if:{{{places-sold|}}}| | + | {{#if: {{{places-sold|}}}|: The following bases are known to carry this item, although sales may be restricted to pilots with a high positive reputation. |
− | {{{places-sold}}}}} | + | {{{places-sold}}}|: This item is not sold on any known bases. It may only be available from shipwrecks, sold on player bases, or given by administrators.}} |
{{Clear}} | {{Clear}} | ||
{{Equipment navigation}} | {{Equipment navigation}} | ||
− | {{#if:{{{ | + | <includeonly>[[Category:Ship Equipment]][[Category:Weapons]]{{#if:{{{weapon-class|}}}|[[Category:{{{weapon-class}}}]]}}{{#if:{{{faction-raw|}}}|[[Category:{{{faction-raw}}}]]]}}</includeonly> |
− | | [[Category:{{{ | + | <noinclude>--> |
− | |||
− | |||
'''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. | ||
Line 65: | Line 64: | ||
* ''image'' is used for the equipment image in the infobox. If a value for the ''image'' attribute is not provided, [[:File:no_fighter_gun.png]] is used as the default image. | * ''image'' is used for the equipment image in the infobox. If a value for the ''image'' attribute is not provided, [[:File:no_fighter_gun.png]] is used as the default image. | ||
+ | |||
+ | * ''faction'' (singular) contains a linked version of the Owner Faction name (necessary for efficient redirection of Guard factions), while ''faction-raw'' contains the unlinked target faction name (necessary for Category links). | ||
* If a ''projectile-image'' attribute is provided, a subsection for the image will be displayed under the description. | * If a ''projectile-image'' attribute is provided, a subsection for the image will be displayed under the description. | ||
* 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 ''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. | ||
+ | |||
+ | The remaining attributes are used to populate fields throughout the page. | ||
==Usage== | ==Usage== | ||
Line 77: | Line 80: | ||
| full-name = CL-a "Starbeam" Civilian Laser Cannon | | full-name = CL-a "Starbeam" Civilian Laser Cannon | ||
| faction = [[Civilian]] | | faction = [[Civilian]] | ||
+ | | faction-raw = Civilian | ||
| description = This is a laser-based weapon that provides a high refire | | description = This is a laser-based weapon that provides a high refire | ||
rate at a reduced damage output. This weapon is most effective against | rate at a reduced damage output. This weapon is most effective against | ||
Line 92: | Line 96: | ||
| cargo-space = 0 | | cargo-space = 0 | ||
| projectile-image = ci_laser_01_proj.png | | projectile-image = ci_laser_01_proj.png | ||
− | | places-sold = | + | | places-sold = {{{!}} class="wikitable collapsible collapsed" style="margin-left: 3em;" |
− | {{{!}} class="wikitable collapsible collapsed" | ||
!Spoiler: Buying Locations | !Spoiler: Buying Locations | ||
{{!}}- | {{!}}- | ||
{{!}} | {{!}} | ||
− | {{{!}} class="wikitable sortable" | + | {{{!}} class="wikitable sortable" style="margin: 4px;" |
{{!}}- | {{!}}- | ||
!Base!!Owner!!System!!Region | !Base!!Owner!!System!!Region | ||
Line 114: | Line 117: | ||
| full-name = CL-a "Starbeam" Civilian Laser Cannon | | full-name = CL-a "Starbeam" Civilian Laser Cannon | ||
| faction = [[Civilian]] | | 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. | + | | faction-raw = 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 | | price = 450 | ||
| weapon-class = Class 2 Guns | | weapon-class = Class 2 Guns | ||
Line 127: | Line 133: | ||
| cargo-space = 0 | | cargo-space = 0 | ||
| projectile-image = ci_laser_01_proj.png | | projectile-image = ci_laser_01_proj.png | ||
− | | places-sold = | + | | places-sold = {{{!}} class="wikitable collapsible collapsed" style="margin-left: 3em;" |
− | {{{!}} class="wikitable collapsible collapsed" | ||
!Spoiler: Buying Locations | !Spoiler: Buying Locations | ||
{{!}}- | {{!}}- | ||
{{!}} | {{!}} | ||
− | {{{!}} class="wikitable sortable" | + | {{{!}} class="wikitable sortable" style="margin: 4px;" |
{{!}}- | {{!}}- | ||
!Base!!Owner!!System!!Region | !Base!!Owner!!System!!Region | ||
Line 142: | Line 147: | ||
{{!}}} | {{!}}} | ||
}} | }} | ||
− | [[Category:Templates]] | + | |
− | </noinclude> | + | [[Category:Templates]]</noinclude> |
Latest revision as of 11:01, 17 June 2019
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:
- 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.
- description is used for the text block at the top of the page.
- image is used for the equipment image in the infobox. If a value for the image attribute is not provided, File:no_fighter_gun.png is used as the default image.
- faction (singular) contains a linked version of the Owner Faction name (necessary for efficient redirection of Guard factions), while faction-raw contains the unlinked target faction name (necessary for Category links).
- If a projectile-image attribute is provided, a subsection for the image will be displayed under the description.
- 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.
The remaining attributes are used to populate fields throughout the page.
Usage
{{Gun | image = li_laser_beam.png | short-name = Starbeam | full-name = CL-a "Starbeam" Civilian Laser Cannon | faction = [[Civilian]] | faction-raw = 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 Guns | 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" style="margin-left: 3em;" !Spoiler: Buying Locations {{!}}- {{!}} {{{!}} class="wikitable sortable" style="margin: 4px;" {{!}}- !Base!!Owner!!System!!Region {{!}}- {{!}}Base A{{!}}{{!}}Faction A{{!}}{{!}}System A{{!}}{{!}}Region A {{!}}- {{!}}Base B{{!}}{{!}}Faction B{{!}}{{!}}System B{{!}}{{!}}Region B {{!}}} {{!}}} }}
Result
Starbeam | |
Energy Gun | |
Owner Faction | Civilian |
Weapon Class | Class 2 Guns |
Cargo Space | 0 |
Hit-Points | 400 |
Price | 450 |
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.
Weapon Stats
- Hull Damage: 14 /round (116.62 /sec)
- 3.5:1 efficiency
- Energy Damage: 7 /round (58.31 /sec)
- 1.75:1 efficiency
- Refire Rate: 8.33 /sec
- Power Usage: 4 u/round (33.32 u/sec)
- Damage Type: Laser
Energy Pulse Stats
- Speed: 750 m/sec
- Travel Range: 600 meters
- Lifetime: 0 seconds
Projectile Image
- Please upload the ci_laser_01_proj.png file.
Buy/Sell Locations
- The following bases are known to carry this item, although sales may be restricted to pilots with a high positive reputation.
Spoiler: Buying Locations | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Weaponry: | Light Fighter Guns, Heavy Fighter Guns, Elite Fighter Guns, Light Turrets, Bomber Guns, CODENAMES, Missiles & Torpedoes |
Weaponry: | Transport Turrets, Gunboat Turrets, Cruiser Turrets, Battlecruiser Turrets, Battleship Turrets |
Class: | Guns ~ Class 1, Class 2, Class 3, Class 4, Class 6, Class 8, Class 9
Turrets ~ Class 1, Class 2, Class 3, Class 4, Class 5, Class 6, Class 7, Class 8, Class 9, Class 10 |
Equipment: | Armor, Cargo Pods, Cloaking Devices, Countermeasures, Cruise Disruptors, Engines, IDs, Mines, Scanners, Shields, Thrusters |
]