Difference between revisions of "Template:Class"

From Clogopedia, the Natural Selection 2 Wiki
Jump to: navigation, search
(Created)
 
(changing tres icon: now it has transparent background)
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div style="float:right; clear:right;" >
+
<div style="float:{{#if: {{{floatleft|}}}|left|right}}; clear:{{#if: {{{floatleft|}}}|left|right}};" >
 
<Table class="ns2table collapsible" style="margin:0 0 0; width:25em" >
 
<Table class="ns2table collapsible" style="margin:0 0 0; width:25em" >
  
{{#if: {{{marinename|}}}
+
{{#if:{{{notitle|}}} |  | 
| <tr>
+
{{#if: {{{marinename|}}}
  <td colspan=2 style="border:0; text-align:center; font-size: larger; background-color:#55b3ff; color:#2a2a2a;"> <b>{{{marinename|}}}</b>
+
| <tr>
  </td>
+
  <td colspan=2 style="border:0; text-align:center; font-size: larger; background-color:#55b3ff; color:#2a2a2a;"> <b>{{{marinename|}}}</b>
  </tr>
+
  </td>
 +
  </tr>
 +
}}
 +
 +
{{#if: {{{alienname|}}}
 +
| <tr>
 +
  <td colspan=2 style="border:0; text-align:center; font-size: larger; background-color:#FF9933; color:#2a2a2a;"> <b>{{{alienname|}}}</b>
 +
  </td>
 +
  </tr>
 +
}}
 
}}
 
}}
  
{{#if: {{{alienname|}}}
+
{{#if: {{{icon|}}}
 
| <tr>
 
| <tr>
   <td colspan=2 style="border:0; text-align:center; font-size: larger; background-color:#FF9933; color:#2a2a2a;"> <b>{{{alienname|}}}</b>
+
   <td colspan=2 style="border:0; text-align:center; background:#000000;">{{{icon}}}
 
   </td>
 
   </td>
 
   </tr>
 
   </tr>
 
}}
 
}}
  
{{#if: {{{icon|}}}
+
{{#if: {{{quote|}}}
 
| <tr>
 
| <tr>
   <td colspan=2 style="border:0; text-align:center; background:#000000;">{{{icon}}}
+
   <td colspan=2 style="border:0; text-align:center; background:black;">"''{{{quote}}}''"
 
   </td>
 
   </td>
 
   </tr>
 
   </tr>
 
}}
 
}}
  
{{#if: {{{quote|}}}
+
 
 +
{{#if: {{{description|}}}
 
| <tr>
 
| <tr>
   <td colspan=2 style="border:0; text-align:center; background:black;">"''{{{quote}}}''"
+
   <td colspan=2 style="border:0; text-align:center; background:black;">{{{description}}}
 
   </td>
 
   </td>
 
   </tr>
 
   </tr>
Line 47: Line 57:
 
{{#if: {{{pres|}}}
 
{{#if: {{{pres|}}}
 
| <tr>
 
| <tr>
   <td colspan=2 style="border:0; width:8em;text-align:center; background:black;">'''[[Personal Resource]]s''' <br /> [[image:Icon personal resource neutral.png]] {{{pres}}}
+
   <td colspan=2 style="border:0; width:8em;text-align:center; background:black;">'''[[Resource_Model#Personal_Resources|Personal Resource]]s''' <br /> [[image:Icon personal resource neutral.png]] {{{pres}}}
 
   </td>
 
   </td>
 
   </tr>
 
   </tr>
Line 54: Line 64:
 
{{#if: {{{tres|}}}
 
{{#if: {{{tres|}}}
 
| <tr>
 
| <tr>
   <td colspan=2 style="border:0; width:8em;text-align:center; background:black;"> '''[[Team Resource]]s''' <br /> [[image:Icon team resource neutral.gif]] {{{tres}}}  
+
   <td colspan=2 style="border:0; width:8em;text-align:center; background:black;"> '''[[Resource_Model#Team_Resources|Team Resource]]s''' <br /> [[image:Marines_res.png]] {{{tres}}}  
 
   </td>
 
   </td>
 
   </tr>
 
   </tr>
Line 75: Line 85:
 
{{#if: {{{health|}}}
 
{{#if: {{{health|}}}
 
| <tr>
 
| <tr>
   <td style="border:0; width:8em; text-align:center; background:black;">'''[[Health]]''' <br /> {{{health}}}
+
   <td style="border:0; width:8em; text-align:center; background:black;">'''[[Damage_Types#Health|Health]]''' <br /> {{{health}}}
 
   </td>
 
   </td>
   <td style="border:0; width:8em; text-align:center; background:black;">'''[[Armor]]''' <br /> {{{armor}}}
+
   <td style="border:0; width:8em; text-align:center; background:black;">'''[[Damage_Types#Armor|Armor]]''' <br /> {{{armor}}}
 
   </td>
 
   </td>
 
   </tr>
 
   </tr>
Line 202: Line 212:
 
{{#if: {{{evolution|}}}
 
{{#if: {{{evolution|}}}
 
| <tr>
 
| <tr>
   <td colspan=2 style="border:0; width:8em;text-align:center; background:#2a2a2a;">'''Evolutions:''' <br /> {{{evolution}}}
+
   <td colspan=2 style="border:0; width:8em;text-align:center; background:#2a2a2a;">'''Evolutions:''' <br /> [[Carapace]], [[Regeneration]], [[Vampirism]],<br>[[Adrenaline]], [[Celerity]], [[Crush]],<br>[[Camouflage]], [[Aura]], [[Focus]]
 
   </td>
 
   </td>
 
   </tr>
 
   </tr>
Line 256: Line 266:
 
   </td>
 
   </td>
 
   <td style="border:0; text-align:center; background:#2a2a2a;">{{{buildfrom}}}
 
   <td style="border:0; text-align:center; background:#2a2a2a;">{{{buildfrom}}}
 +
  </td>
 +
  </tr>
 +
}}
 +
 +
{{#if: {{{researchfrom|}}}
 +
| <tr>
 +
  <td style="border:0; width:8em;text-align:center; background:#2a2a2a;">'''Researches From:'''
 +
  </td>
 +
  <td style="border:0; text-align:center; background:#2a2a2a;">{{{researchfrom}}}
 
   </td>
 
   </td>
 
   </tr>
 
   </tr>
Line 328: Line 347:
 
   </td>
 
   </td>
 
   <td style="border:0; text-align:center; background:#2a2a2a;">{{{mature}}} seconds
 
   <td style="border:0; text-align:center; background:#2a2a2a;">{{{mature}}} seconds
 +
  </td>
 +
  </tr>
 +
}}
 +
 +
{{#if: {{{research|}}}
 +
| <tr>
 +
  <td style="border:0; width:8em; text-align:center; background:#2a2a2a;">'''Research Time:'''
 +
  </td>
 +
  <td style="border:0; text-align:center; background:#2a2a2a;">{{{research}}} seconds
 
   </td>
 
   </td>
 
   </tr>
 
   </tr>
Line 333: Line 361:
 
</table>
 
</table>
 
</div>
 
</div>
 
 
<noinclude>
 
<noinclude>
<br />
+
== Usage ==
 
This template is used for all units and structures. Click edit, copy the sample template, and paste into the top of the unit or structure page.
 
This template is used for all units and structures. Click edit, copy the sample template, and paste into the top of the unit or structure page.
  
Line 344: Line 371:
 
| marinename=Marine
 
| marinename=Marine
 
| alienname=Skulk
 
| alienname=Skulk
| icon=[[Image:Marine icon.jpg]]
+
| icon=[[Image:Marine portrait.jpg]]
 
| quote=Hey, I need a quote in here!
 
| quote=Hey, I need a quote in here!
 +
| description=Additional Description, keep it short!
 
| marines=Frontiersmen
 
| marines=Frontiersmen
 
| aliens=Kharaa
 
| aliens=Kharaa
Line 369: Line 397:
 
| aliencat1=Abilities and Upgrades
 
| aliencat1=Abilities and Upgrades
 
| ability=Sprint, Leap
 
| ability=Sprint, Leap
| evolution=[[Carapace]], [[Regeneration]], [[Aura]], [[Phantom]], [[Adrenaline]], [[Celerity]]
+
| evolution=true
 
| upgrade=Research Stuff
 
| upgrade=Research Stuff
  
Line 378: Line 406:
 
| build=0
 
| build=0
 
| buildfrom=Extractor
 
| buildfrom=Extractor
 +
| researchfrom=[[Command Station]]
 
| buyfrom=Harvester
 
| buyfrom=Harvester
 
| buy=Player
 
| buy=Player
Line 385: Line 414:
 
| gestate=0
 
| gestate=0
 
| mature=0
 
| mature=0
 +
| research=0
 
}}
 
}}
 
</div>
 
</div>
  
==Parameters==
+
=== Parameters ===
 
{|
 
{|
 
|-
 
|-
Line 398: Line 428:
 
|-
 
|-
 
| '''quote''' || A quote for the class (comes with quotation marks and italized)
 
| '''quote''' || A quote for the class (comes with quotation marks and italized)
 +
|-
 +
| '''description''' || Additional description
 
|-
 
|-
 
| '''marines''' || State the race of the class (Frontiersmen, blue background)
 
| '''marines''' || State the race of the class (Frontiersmen, blue background)
Line 442: Line 474:
 
| '''ability''' || List of abilities of the class
 
| '''ability''' || List of abilities of the class
 
|-
 
|-
| '''evolution''' || List of evolutions accessible to the class (Kharaa lifeforms)
+
| '''evolution''' || List of evolutions accessible to the class (Kharaa lifeforms): They are hardcoded!
 
|-
 
|-
 
| '''upgrade''' || List of upgrades for the class
 
| '''upgrade''' || List of upgrades for the class
 
 
|-
 
|-
 
| '''marinecat2''' || Second category (e.g. Miscellaneous)
 
| '''marinecat2''' || Second category (e.g. Miscellaneous)
Line 454: Line 485:
 
|-
 
|-
 
| '''buildfrom''' || What the class is built from
 
| '''buildfrom''' || What the class is built from
 +
|-
 +
| '''researchfrom''' || What the class is researched from
 
|-
 
|-
 
| '''buyfrom''' || Where the class is bought from
 
| '''buyfrom''' || Where the class is bought from
Line 468: Line 501:
 
|-
 
|-
 
| '''mature''' || Mature time for the class (Kharaa structures)
 
| '''mature''' || Mature time for the class (Kharaa structures)
 +
|-
 +
| '''research''' || Research time for the class
 
|-
 
|-
 
| '''prereq''' || The class requires what to be existing, in order to be accessed.
 
| '''prereq''' || The class requires what to be existing, in order to be accessed.
 
|-
 
|-
 
| '''unlock''' || What the class unlocks by existing, such as research, upgrades, or structures
 
| '''unlock''' || What the class unlocks by existing, such as research, upgrades, or structures
 +
|-
 +
|}
 +
=== Parameters Design ===
 +
{|
 +
|-
 +
| '''floatleft'''&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; || Sets the style attributes in '''<nowiki><div style="float:right;clear:right;" ></nowiki>''' around the table to ''left''
 +
|-
 +
| '''notitle''' || parameters '''marinename''' and '''alienname''' will not be shown
 
|-
 
|-
 
|}
 
|}
  
 
[[Category:Templates|{{PAGENAME}}]]
 
[[Category:Templates|{{PAGENAME}}]]

Latest revision as of 18:25, 31 May 2019

Usage

This template is used for all units and structures. Click edit, copy the sample template, and paste into the top of the unit or structure page.

Sample Template

Marine
Skulk
Marine portrait.jpg
"Hey, I need a quote in here!"
Additional Description, keep it short!
TSA.png Frontiersmen
Kharaa.png Kharaa
Personal Resources
Icon personal resource neutral.png 0
Team Resources
Marines res.png 0
Supply
Icon marine supply.gif 0 / 200
Supply
Icon kharaa supply.gif 0 / 200
Health
0
Armor
0
Energy
Icon resources energy neutral.gif 100
Respawns In: 0 seconds
Respawns From: Infantry Portal/Egg
Spawns From: Command Station/Hive
Move Speed: 0
Air Speed: 0
Ground Speed: 0
Crouch Speed: 0
Infestation Speed: 0
Slide Speed: 0
Wall Speed: 0
Abilities and Upgrades
Abilities and Upgrades
Abilities:
Sprint, Leap
Evolutions:
Carapace, Regeneration, Vampirism,
Adrenaline, Celerity, Crush,
Camouflage, Aura, Focus
Upgrades:
Research Stuff
Miscellaneous
Miscellaneous
Tech Requirements:
Armory
Unlocks:
Arms Lab
Build Time: 0 seconds
Builds From: Extractor
Researches From: Command Station
Buy From: Harvester
Purchase By: Player
Hotkey: A
Limit: 3 per player
Duration: 0 seconds
Gestation Time: 0 seconds
Mature Time: 0 seconds
Research Time: 0 seconds

Parameters

marinename The name of the class belonging to Frontiersmen (blue background)
alienname The name of the class belonging to Kharaa (orange background)
icon An iconic image for the class
quote A quote for the class (comes with quotation marks and italized)
description Additional description
marines State the race of the class (Frontiersmen, blue background)
aliens State the race of the class (Kharaa, orange background)
pres Personal Resources cost for the class
tres Team Resources cost for the class
marinesupply Supply points required by the Frontiersmen structure
aliensupply Supply points required by the Kharaa structure
health Total health pool for the class
armor Total armor pool for the class
energy Total energy pool for the class
respawn Respawn time for the class
respawnfrom Respawn location for the class
speed Movement speed for the class
airspeed Air movement speed for the class
landspeed Ground movement speed for the class
crouchspeed Ground movement speed when crouching for the class
infestspeed Infestation movement speed for the class
slidespeed Movement speed when belly-sliding for the Gorge
wallspeed Wall movement speed for the Skulk
marinecat1 First category (e.g. Abilities and Upgrades)
aliencat1 First category (e.g. Abilities and Upgrades)
ability List of abilities of the class
evolution List of evolutions accessible to the class (Kharaa lifeforms): They are hardcoded!
upgrade List of upgrades for the class
marinecat2 Second category (e.g. Miscellaneous)
aliencat2 Second category (e.g. Miscellaneous)
build Build time for the class
buildfrom What the class is built from
researchfrom What the class is researched from
buyfrom Where the class is bought from
buy Who or what buys the class
evolutioncost The cost per Alien evolution for that Alien class
hotkey Default hotkey for unit or structure in commander menu
duration Duration or life time of the class
gestate Gestation time for the class (Kharaa lifeforms)
mature Mature time for the class (Kharaa structures)
research Research time for the class
prereq The class requires what to be existing, in order to be accessed.
unlock What the class unlocks by existing, such as research, upgrades, or structures

Parameters Design

floatleft            Sets the style attributes in <div style="float:right;clear:right;" > around the table to left
notitle parameters marinename and alienname will not be shown