Difference between revisions of "Template:AbilityTable"

From Clogopedia, the Natural Selection 2 Wiki
Jump to: navigation, search
(Created page with "<div> <Table style="margin:0 0 0.5em 1em; width:25em;"> {{#if: {{{marinename|}}} | <tr> <td colspan="2" style="border:0; text-align:center; font-size: larger; background-co...")
 
(adding optional style parameter: width)
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div>
+
__NOTOC__
<Table style="margin:0 0 0.5em 1em; width:25em;">
+
== Usage ==
 +
This template is used for Marine and Alien abilities.
  
 +
=== Sample Template ===
 +
 +
Click edit and copy the sample template to the unit or structure page, then fill out the parameters and remove unnecessary ones where applicable.
 +
 +
{{AbilityTable
 +
| marinename=Bash
 +
| alienname=Bite
 +
| description=Put description in here!
 +
| icon=[[File:Recycle buildmenu.png]]
 +
| hotkey=A
 +
| tres=0
 +
| pres=0
 +
| marinesupply=0
 +
| aliensupply=0
 +
| energy=0
 +
| build=0
 +
| research=0
 +
| upgrade=0
 +
| damage=0
 +
| damagereduction=0
 +
| healing=0
 +
| repair=0
 +
| type=Puncture
 +
| range=0
 +
| minrange=0
 +
| radius=0
 +
| speed=0
 +
| firerate=0
 +
| duration=0
 +
| delay=0
 +
| cooldown=0
 +
| reload=0
 +
| interval=0
 +
| clip=0
 +
| ammo=0
 +
| use=0
 +
| max=0
 +
| target=Player, Structure, Ground
 +
| prereq=Command Station
 +
| width=25
 +
}}
 +
 +
==Parameters==
 +
{|
 +
|-
 +
| '''marinename''' || The name of the ability for Frontiersmen (blue color)
 +
|-
 +
| '''alienname''' || The name of the ability for Kharaa (orange color)
 +
|-
 +
| '''description''' || Description of the ability
 +
|-
 +
| '''icon''' || Image icon for the ability
 +
|-
 +
| '''hotkey''' || Hotkey of the ability
 +
|-
 +
| '''tres''' || Team Resources used or provided by the ability
 +
|-
 +
| '''pres''' || Personal Resources used or provided by the ability
 +
|-
 +
| '''marinesupply''' || Supply used by the Frontiersmen entity
 +
|-
 +
| '''aliensupply''' || Supply used by the Kharaa entity
 +
|-
 +
| '''energy''' || Energy cost for the Kharaa ability
 +
|-
 +
| '''build''' || Time to build units or structures
 +
|-
 +
| '''research''' || Time to research technology
 +
|-
 +
| '''upgrade''' || Time to upgrade units or structures
 +
|-
 +
| '''damage''' || Damage inflicted by the ability
 +
|-
 +
| '''damagereduction''' || Damage reducted by the ability
 +
|-
 +
| '''healing''' || Healing done by the ability
 +
|-
 +
| '''repair''' || Repairing done by the ability
 +
|-
 +
| '''type''' || Damage type of the ability
 +
|-
 +
| '''range''' || Range of the ability
 +
|-
 +
| '''minrange''' || Minimum range of the ability
 +
|-
 +
| '''speed''' || Speed granted by ability
 +
|-
 +
| '''firerate''' || Fire rate of ability or weapon
 +
|-
 +
| '''duration''' || Duration of the ability
 +
|-
 +
| '''radius''' || Radius of the ability
 +
|-
 +
| '''delay''' || Fire delay of the ability
 +
|-
 +
| '''cooldown''' || Cooldown time of the ability
 +
|-
 +
| '''reload''' || Reload speed of the weapon
 +
|-
 +
| '''interval''' || Interval for the ability
 +
|-
 +
| '''clip''' || Clip amount of the weapon
 +
|-
 +
| '''ammo''' || Reserve ammo of the weapon
 +
|-
 +
| '''use''' || Amount of uses for the ability
 +
|-
 +
| '''max''' || Max amount per player, structure, etc.
 +
|-
 +
| '''target''' || Valid targets for the ability
 +
|-
 +
| '''prereq''' || Prerequisites for the ability
 +
|-
 +
|}
 +
=== Parameters Design ===
 +
{|
 +
|-
 +
| '''width'''&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; || Sets the width from default 25em to X em
 +
|-
 +
|}
 +
<onlyinclude>
 +
<div>
 +
<Table style="margin:0 0 0.5em 1em; width:{{#if: {{{width|}}}|{{{width|}}}|25}}em;">
 
{{#if: {{{marinename|}}}
 
{{#if: {{{marinename|}}}
 
| <tr>
 
| <tr>
Line 41: Line 165:
 
{{#if: {{{tres|}}}
 
{{#if: {{{tres|}}}
 
| <tr>
 
| <tr>
   <td style="width:8em;text-align:center; background:#2a2a2a;">'''[[Team Resource|TRes]]'''
+
   <td style="width:8em;text-align:center; background:#2a2a2a;">'''[[Resource_Model#Team_Resources|TRes]]'''
 
   </td>
 
   </td>
 
   <td style="text-align:center; background:#2a2a2a;"> [[image:Icon team resource neutral.gif]] {{{tres}}}  
 
   <td style="text-align:center; background:#2a2a2a;"> [[image:Icon team resource neutral.gif]] {{{tres}}}  
Line 50: Line 174:
 
{{#if: {{{pres|}}}
 
{{#if: {{{pres|}}}
 
| <tr>
 
| <tr>
   <td style="width:8em;text-align:center; background:#2a2a2a;">'''[[Personal Resource|PRes]]'''
+
   <td style="width:8em;text-align:center; background:#2a2a2a;">'''[[Resource_Model#Personal_Resources|PRes]]'''
 
   </td>
 
   </td>
 
   <td style="text-align:center; background:#2a2a2a;"> [[image:Icon personal resource neutral.png]] {{{pres}}}
 
   <td style="text-align:center; background:#2a2a2a;"> [[image:Icon personal resource neutral.png]] {{{pres}}}
Line 71: Line 195:
 
   </td>
 
   </td>
 
   <td style="text-align:center; background:#2a2a2a;"> {{{aliensupply}}} / 200
 
   <td style="text-align:center; background:#2a2a2a;"> {{{aliensupply}}} / 200
  </td>
 
  </tr>
 
}}
 
 
{{#if: {{{energy|}}}
 
| <tr>
 
  <td style="width:8em;text-align:center; background:#2a2a2a;">'''Energy'''
 
  </td>
 
  <td style="text-align:center; background:#2a2a2a;"> [[File:Icon resources energy neutral.gif]] {{{energy}}}
 
 
   </td>
 
   </td>
 
   </tr>
 
   </tr>
Line 107: Line 222:
 
   </td>
 
   </td>
 
   <td style="text-align:center; background:#2a2a2a;"> {{{upgrade}}} seconds
 
   <td style="text-align:center; background:#2a2a2a;"> {{{upgrade}}} seconds
 +
  </td>
 +
  </tr>
 +
}}
 +
 +
{{#if: {{{energy|}}}
 +
| <tr>
 +
  <td style="width:8em;text-align:center; background:#2a2a2a;">'''Energy'''
 +
  </td>
 +
  <td style="text-align:center; background:#2a2a2a;"> [[File:Icon resources energy neutral.gif]] {{{energy}}}
 +
  </td>
 +
  </tr>
 +
}}
 +
 +
{{#if: {{{damagereduction|}}}
 +
| <tr>
 +
  <td style="width:8em;text-align:center; background:#2a2a2a;">'''Damage reduction'''
 +
  </td>
 +
  <td style="text-align:center; background:#2a2a2a;"> {{{damagereduction}}}
 
   </td>
 
   </td>
 
   </tr>
 
   </tr>
Line 290: Line 423:
 
   </tr>
 
   </tr>
 
}}
 
}}
</table>
+
</table></div>
</div>
+
</onlyinclude>
 
+
<noinclude>
+
<br />
+
This template is used for Marine and Alien abilities.
+
 
+
==Sample Template==
+
 
+
Click edit and copy the sample template to the unit or structure page, then fill out the parameters and remove unnecessary ones where applicable.
+
 
+
 
+
{{AbilityTable
+
| marinename=Bash
+
| alienname=Bite
+
| description=Put description in here!
+
| icon=[[File:Recycle buildmenu.png]]
+
| hotkey=A
+
| tres=0
+
| pres=0
+
| marinesupply=0
+
| aliensupply=0
+
| energy=0
+
| build=0
+
| research=0
+
| upgrade=0
+
| damage=0
+
| healing=0
+
| repair=0
+
| type=Puncture
+
| range=0
+
| minrange=0
+
| radius=0
+
| speed=0
+
| firerate=0
+
| duration=0
+
| delay=0
+
| cooldown=0
+
| reload=0
+
| interval=0
+
| clip=0
+
| ammo=0
+
| use=0
+
| max=0
+
| target=Player, Structure, Ground
+
| prereq=Command Station
+
}}
+
 
+
==Parameters==
+
{|
+
|-
+
| '''marinename''' || The name of the ability for Frontiersmen (blue color)
+
|-
+
| '''alienname''' || The name of the ability for Kharaa (orange color)
+
|-
+
| '''description''' || Description of the ability
+
|-
+
| '''icon''' || Image icon for the ability
+
|-
+
| '''hotkey''' || Hotkey of the ability
+
|-
+
| '''tres''' || Team Resources used or provided by the ability
+
|-
+
| '''pres''' || Personal Resources used or provided by the ability
+
|-
+
| '''marinesupply''' || Supply used by the Frontiersmen entity
+
|-
+
| '''aliensupply''' || Supply used by the Kharaa entity
+
|-
+
| '''energy''' || Energy cost for the Kharaa ability
+
|-
+
| '''build''' || Time to build units or structures
+
|-
+
| '''research''' || Time to research technology
+
|-
+
| '''upgrade''' || Time to upgrade units or structures
+
|-
+
| '''damage''' || Damage inflicted by the ability
+
|-
+
| '''healing''' || Healing done by the ability
+
|-
+
| '''repair''' || Repairing done by the ability
+
|-
+
| '''type''' || Damage type of the ability
+
|-
+
| '''range''' || Range of the ability
+
|-
+
| '''minrange''' || Minimum range of the ability
+
|-
+
| '''speed''' || Speed granted by ability
+
|-
+
| '''firerate''' || Fire rate of ability or weapon
+
|-
+
| '''duration''' || Duration of the ability
+
|-
+
| '''radius''' || Radius of the ability
+
|-
+
| '''delay''' || Fire delay of the ability
+
|-
+
| '''cooldown''' || Cooldown time of the ability
+
|-
+
| '''reload''' || Reload speed of the weapon
+
|-
+
| '''interval''' || Interval for the ability
+
|-
+
| '''clip''' || Clip amount of the weapon
+
|-
+
| '''ammo''' || Reserve ammo of the weapon
+
|-
+
| '''use''' || Amount of uses for the ability
+
|-
+
| '''max''' || Max amount per player, structure, etc.
+
|-
+
| '''target''' || Valid targets for the ability
+
|-
+
| '''prereq''' || Prerequisites for the ability
+
|-
+
|}
+
 
+
  
 
[[Category:Templates|{{PAGENAME}}]]
 
[[Category:Templates|{{PAGENAME}}]]

Latest revision as of 15:51, 22 May 2019

Usage

This template is used for Marine and Alien abilities.

Sample Template

Click edit and copy the sample template to the unit or structure page, then fill out the parameters and remove unnecessary ones where applicable.


Bash
Bite
Recycle buildmenu.png
Put description in here!
Hotkey A
TRes Icon team resource neutral.gif 0
PRes Icon personal resource neutral.png 0
Supply 0 / 200
Supply 0 / 200
Build Time 0 seconds
Research Time 0 seconds
Upgrade Time 0 seconds
Energy Icon resources energy neutral.gif 0
Damage reduction 0
Damage 0
Healing 0
Repairing 0
Type Puncture
Range 0
Minimum Range 0
Radius 0
Speed 0
Fire Rate 0 seconds
Duration 0 seconds
Delay 0 seconds
Cooldown 0 seconds
Reload Speed 0 seconds
Interval 0 seconds
Clip Size 0
Ammo 0
Uses 0
Max Amount 0
Targets Player, Structure, Ground
Requires Command Station


Parameters

marinename The name of the ability for Frontiersmen (blue color)
alienname The name of the ability for Kharaa (orange color)
description Description of the ability
icon Image icon for the ability
hotkey Hotkey of the ability
tres Team Resources used or provided by the ability
pres Personal Resources used or provided by the ability
marinesupply Supply used by the Frontiersmen entity
aliensupply Supply used by the Kharaa entity
energy Energy cost for the Kharaa ability
build Time to build units or structures
research Time to research technology
upgrade Time to upgrade units or structures
damage Damage inflicted by the ability
damagereduction Damage reducted by the ability
healing Healing done by the ability
repair Repairing done by the ability
type Damage type of the ability
range Range of the ability
minrange Minimum range of the ability
speed Speed granted by ability
firerate Fire rate of ability or weapon
duration Duration of the ability
radius Radius of the ability
delay Fire delay of the ability
cooldown Cooldown time of the ability
reload Reload speed of the weapon
interval Interval for the ability
clip Clip amount of the weapon
ammo Reserve ammo of the weapon
use Amount of uses for the ability
max Max amount per player, structure, etc.
target Valid targets for the ability
prereq Prerequisites for the ability

Parameters Design

width                       Sets the width from default 25em to X em