Difference between revisions of "Template:Infobox zkweapon"

From Zero-K
Jump to navigation Jump to search
(I don't think Shield Damage is in %. Revert if this is wrong.)
 
(42 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{ infobox
+
<noinclude>[[Category:ZK Infoboxes]]</noinclude>
 +
{{ infobox | subbox = yes
 
| abovestyle = background:#bbb; color:#000
 
| abovestyle = background:#bbb; color:#000
 
| above =  
 
| above =  
| headerstyle = background:#bbb; color:#000
+
| headerstyle = color:#000; {{#if: {{{specialheadercolour|}}} | {{{specialheadercolour|}}} | {{#if: {{{empdamage|}}} | background:#bbf; | {{#if: {{{slowdamage|}}} | background:#fbf; | {{#if: {{{disarmdamage|}}} | background:#ffb; | {{#if: {{{afterburn|}}} | background:#fbb; | background:#bbb; }} }} }} }} }}  {{#if: {{{manualfire|}}} | border: 2px solid red; | }} {{#if: {{{antiair|}}} | border: 2px dashed #44b; | }} {{#if: {{{wateronly|}}} | border: 2px solid blue; | }}
 
| labelstyle =  
 
| labelstyle =  
 
| datastyle = text-align: center;
 
| datastyle = text-align: center;
Line 8: Line 9:
 
| header1 = {{{name}}}
 
| header1 = {{{name}}}
  
| label2     = Damage
+
| label11     = Damage
| data2       = {{{damage}}}
+
| data11       = {{{damage|0}}}
| label3     = <span style="color: #bbf">EMP Damage</span>
+
| label12     = <span style="color: #bbf">EMP Damage</span>
| data3       = {{#if: {{{empdamage|}}} | <span style="color: #bbf">{{{empdamage|}}}</span> |  }}  
+
| data12       = {{#if: {{{empdamage|}}} | <span style="color: #bbf">{{{empdamage|}}}</span> |  }}  
| label4     = <span style="color: #fbf">Slow Damage</span>
+
| label13     = <span style="color: #fbf">Slow Damage</span>
| data4       = {{#if: {{{slowdamage|}}} | <span style="color: #fbf">{{{slowdamage|}}}</span> |  }}
+
| data13       = {{#if: {{{slowdamage|}}} | <span style="color: #fbf">{{{slowdamage|}}}</span> |  }}
| label5     = <span style="color: #ffb">Disarm Damage</span>
+
| label14     = <span style="color: #ffb">Disarm Damage</span>
| data5       = {{#if: {{{disarmdamage|}}} | <span style="color: #ffb">{{{disarmdamage|}}}</span> |  }}   
+
| data14       = {{#if: {{{disarmdamage|}}} | <span style="color: #ffb">{{{disarmdamage|}}}</span> |  }}   
  
| label11     = Reload Time (s)
+
| label21     = Reload Time (s)
| data11       = {{{reloadtime}}}
+
| data21       = {{{reloadtime|}}}
| label12     = Damage per Second
+
| label22     = Damage per Second
| data12       = {{{dps}}} {{#if: {{{empdps|}}} | + <span style="color: #bbf">{{{empdps|}}}</span> |  }} {{#if: {{{slowdps|}}} | + <span style="color: #fbf">{{{slowdps|}}}</span> | }} {{#if: {{{disarmdps|}}} | + <span style="color: #ffb">{{{disarmdps|}}}</span> | }}   
+
| data22       = {{ #if: {{{dps|}}}{{{empdps|}}}{{{slowdps|}}}{{{disarmdps|}}} | {{{dps|0}}} | }} {{#if: {{{empdps|}}} | + <span style="color: #bbf">{{{empdps|}}}</span> |  }} {{#if: {{{slowdps|}}} | + <span style="color: #fbf">{{{slowdps|}}}</span> | }} {{#if: {{{disarmdps|}}} | + <span style="color: #ffb">{{{disarmdps|}}}</span> | }}   
| label13     = Range (elmo)
+
| label23      = Shield Damage
| data13       = {{{range}}}
+
| data23      = {{{shielddamage|}}}
| label14     = Area of Effect (elmo)
+
| label24      =  <span style="color: #fbb">Afterburn (s)</span>
| data14       = {{{aoe|}}}
+
| data24      = {{ #if: {{{afterburn|}}} | <span style="color: #fbb">{{{afterburn|}}} ({{{afterburndps|15}}} DPS)</span> | }}
| label15     = Projectile Speed (elmo/s)  
+
| label25      = Max Stun Time (s)
| data15       = {{{projectilespeed}}}
+
| data25      = {{{stuntime|}}}
 +
| label26     = Range (elmo)
 +
| data26       = {{{range|}}}
 +
| label27     = Area of Effect (elmo)
 +
| data27       = {{{aoe|}}}
 +
| label28     = Projectile Speed (elmo/s)  
 +
| data28       = {{{projectilespeed|}}}
  
| label21      = Homing (deg/s)
 
| data21      = {{{homing|}}}
 
| label22      = Inaccuracy (deg)
 
| data22      = {{{inaccuracy|}}}
 
| label23      = Burst Time (s)
 
| data23      = {{{bursttime|}}}
 
  
| data101     = {{{special|}}}
+
| label41      = Inaccuracy (deg)
 +
| data41      = {{{inaccuracy|}}}
 +
 
 +
| label42      = Homing (deg/s)
 +
| data42      = {{{homing|}}}
 +
| label43      = Wobbly (maximum, deg/s)
 +
| data43      = {{{wobbly|}}}
 +
| label44      = Arcing shot (deg)
 +
| data44      = {{{arcing|}}}
 +
| label45      = Firing arc (deg)
 +
| data45      = {{{firearc|}}}
 +
 
 +
| label46      = Burst Time (s)
 +
| data46      = {{{bursttime|}}}
 +
 
 +
| label81    = {{{customlabel1|}}}
 +
| data81      = {{{customdata1|}}}
 +
| label82    = {{{customlabel2|}}}
 +
| data82      = {{{customdata2|}}}
 +
| label83    = {{{customlabel3|}}}
 +
| data83      = {{{customdata3|}}}
 +
| label84    = {{{customlabel4|}}}
 +
| data84      = {{{customdata4|}}}
 +
| label85    = {{{customlabel5|}}}
 +
| data85      = {{{customdata5|}}}
 +
| label86    = {{{customlabel6|}}}
 +
| data86      = {{{customdata6|}}}
 +
| label87    = {{{customlabel7|}}}
 +
| data87      = {{{customdata7|}}}
 +
| label88    = {{{customlabel8|}}}
 +
| data88      = {{{customdata8|}}}
 +
| label89    = {{{customlabel9|}}}
 +
| data89      = {{{customdata9|}}}
 +
 
 +
 
 +
| data91      = {{{special1|}}}
 +
| data92      = {{{special2|}}}
 +
| data93      = {{{special3|}}}
 +
| data94      = {{{special4|}}}
 +
| data95      = {{{special5|}}}
 +
| data96      = {{{special6|}}}
 +
| data97      = {{{special7|}}}
 +
| data98      = {{{special8|}}}
 +
| data99     = {{{special9|}}}
 
}}
 
}}
 
 
<noinclude>
 
<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
<!-- Please add categories and interwiki links to /doc subpage, not here! -->
 
<!-- Please add categories and interwiki links to /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Latest revision as of 06:58, 16 October 2024

{{{name}}}
Damage 0
Error creating thumbnail: File missing
Template documentation
[view] [edit] [history] [purge]

Full blank syntax[edit]

{{ Infobox zkweapon

<!-- Required fields -->
| name = 
<!-- Optional fields -->
| damage = 
| empdamage =
| slowdamage =
| disarmdamage =

| reloadtime = 

| dps = 
| empdps =
| slowdps =
| disarmdps =

| shielddamage =
| afterburn = 
| afterburndps =
| stuntime = 
| range =
| aoe =
| projectilespeed = 


| inaccuracy =

| homing =
| wobbly = 
| arcing = 
| firearc =

| bursttime =

<!-- leave blank for no, put anything for yes -->
| antiair =
| manualfire =
| wateronly =

<!-- 1-9 available for each -->
| customlabel1 =
| customdata1 = 
| special1 = 

| specialheadercolour = 

}}

Example[edit]

Pulse MG
Damage 36 (12 × 3)
Reload Time (s) 0.31
Damage per Second 116
Range (elmo) 185
Area of Effect (elmo) 8
Projectile Speed (elmo/s) 500
{{ Infobox zkweapon
|name = Pulse MG
|damage = 36 (12 × 3)
|reloadtime = 0.31
|dps = 116
|range = 185
|aoe = 8
|projectilespeed = 500
}}