Difference between revisions of "Template:Ability Infobox"

From Underrail Wiki
Jump to navigation Jump to search
m (Protected "Template:Ability Infobox" (‎[edit=autoconfirmed] (indefinite) ‎[move=autoconfirmed] (indefinite)))
(infobox font change, minor fixes)
Line 1: Line 1:
{| style={{Infobox common style}}
+
{| style={{Infobox common style|font-family:'pf_tempesta_seven'; font-size:12px;}}
 
|-
 
|-
 
| rowspan="3" width="50px" height="50px" align="center" valign="center" |{{#if:{{{image|}}}|[[File:{{{image}}}|full|Ability's icon|link=]]|[[File:Misc_icon.png|full|Default icon|link=]]}}
 
| rowspan="3" width="50px" height="50px" align="center" valign="center" |{{#if:{{{image|}}}|[[File:{{{image}}}|full|Ability's icon|link=]]|[[File:Misc_icon.png|full|Default icon|link=]]}}
Line 10: Line 10:
  
 
|-
 
|-
| style="max-width:400px; color:white;" colspan="2" |<p></p>{{{description}}}
+
| style="color:white; padding:5px 0px 5px 0px" colspan="2" |{{{description}}}
  
 
|-
 
|-
 
{{#if:<noinclude>string</noinclude>{{{time|}}}
 
{{#if:<noinclude>string</noinclude>{{{time|}}}
|{{!}} style="color:white;" colspan="2" {{!}}<p></p><span style="color:green;">Invocation time:</span> {{{time}}}
+
|{{!}} style="color:white;" colspan="2" {{!}}<span style="color:green;">Invocation time:</span> {{{time}}}
 
|}}
 
|}}
  
 
|-
 
|-
 
{{#if:<noinclude>string</noinclude>{{{apcost|}}}
 
{{#if:<noinclude>string</noinclude>{{{apcost|}}}
|{{!}} style="color:white;" colspan="2" {{!}}<p></p><span style="color:green;">Action Points:</span> {{{apcost}}}
+
|{{!}} style="color:white;" colspan="2" {{!}}<span style="color:green;">Action Points:</span> {{{apcost}}}
 
|}}
 
|}}
  
 
|-
 
|-
 
{{#if:<noinclude>string</noinclude>{{{psicost|}}}
 
{{#if:<noinclude>string</noinclude>{{{psicost|}}}
|{{!}} style="color:white;" colspan="2" {{!}}<p></p><span style="color:green;">Psi:</span> {{{psicost}}}
+
|{{!}} style="color:white;" colspan="2" {{!}}<span style="color:green;">Psi:</span> {{{psicost}}}
 
|}}
 
|}}
  
 
|-
 
|-
 
{{#if:<noinclude>string</noinclude>{{{range|}}}
 
{{#if:<noinclude>string</noinclude>{{{range|}}}
|{{!}} style="color:white;" colspan="2" {{!}}<p></p><span style="color:green;">Range:</span> {{{range}}}
+
|{{!}} style="color:white;" colspan="2" {{!}}<span style="color:green;">Range:</span> {{{range}}}
 
|}}
 
|}}
  
 
|-
 
|-
 
{{#if:<noinclude>string</noinclude>{{{radius|}}}
 
{{#if:<noinclude>string</noinclude>{{{radius|}}}
|{{!}} style="color:white;" colspan="2" {{!}}<p></p><span style="color:green;">Radius:</span> {{{radius}}}
+
|{{!}} style="color:white;" colspan="2" {{!}}<span style="color:green;">Radius:</span> {{{radius}}}
 
|}}
 
|}}
  
 
|-
 
|-
 
{{#if:<noinclude>string</noinclude>{{{cooldown|}}}
 
{{#if:<noinclude>string</noinclude>{{{cooldown|}}}
|{{!}} style="color:white;" colspan="2" {{!}}<p></p><span style="color:green;">Cooldown:</span> {{{cooldown}}}
+
|{{!}} style="color:white;" colspan="2" {{!}}<span style="color:green;">Cooldown:</span> {{{cooldown}}}
 
|}}
 
|}}
  
 
|-
 
|-
 
{{#if:<noinclude>string</noinclude>{{{duration|}}}
 
{{#if:<noinclude>string</noinclude>{{{duration|}}}
|{{!}} style="color:white;" colspan="2" {{!}}<p></p><span style="color:green;">Duration:</span> {{{duration}}}
+
|{{!}} style="color:white;" colspan="2" {{!}}<span style="color:green;">Duration:</span> {{{duration}}}
 
|}}
 
|}}
  
 
|-
 
|-
 
{{#if:<noinclude>string</noinclude>{{{maxstacks|}}}
 
{{#if:<noinclude>string</noinclude>{{{maxstacks|}}}
|{{!}} style="color:white;" colspan="2" {{!}}<p></p><span style="color:green;">Max stacks:</span> {{{maxstacks}}}
+
|{{!}} style="color:white;" colspan="2" {{!}}<span style="color:green;">Max stacks:</span> {{{maxstacks}}}
 
|}}
 
|}}
  
 
|}<noinclude><br style="clear:both;"/>{{documentation}}</noinclude>
 
|}<noinclude><br style="clear:both;"/>{{documentation}}</noinclude>

Revision as of 05:08, 24 June 2014

Default icon
{{{name}}}
{{{school}}} ({{{skillreq}}} skill required)
{{{description}}}
Invocation time: {{{time}}}
Action Points: {{{apcost}}}
Psi: {{{psicost}}}
Range: {{{range}}}
Radius: {{{radius}}}
Cooldown: {{{cooldown}}}
Duration: {{{duration}}}
Max stacks: {{{maxstacks}}}


Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:Ability_Infobox/doc to view this documentation. (edit) (How does this work?)

Description

This is the infobox template for all abilities (attacks, abilities, psi abilities) and effects (general, buffs, debuffs).

Template:Status Effect Infobox is an alias for it.


Syntax

To use this template, copy the following code, fill in the appropriate fields and remove the rest.

{{Ability Infobox
 | image         = [leave this field empty if there's no image yet]
 | nature        = [nature of the ability. can be beneficial (green), neutral (blue), malicious (red) or left empty]
 | name          = 
 | school        = [optional, psi discipline for psi abilities]
 | skillreq      = [optional, skill requirement for psi abilities]
 | description   = 
 | time          = [optional, invocation time]
 | apcost        = [optional]
 | psicost       = [optional]
 | range         = [optional]
 | cooldown      = [optional]
 | duration      = [optional]
 | maxstacks     = [optional, for buffs/debuffs]
}}

Samples

Psi ability

Ability's icon
Telekinetic Punch
Psychokinesis (0 skill required)
Telekinetical force strikes the target, dealing 9-10 mechanical damage and stunning it for 1 turn unless it passes a resolve check. The stun only affects organic targets.
Action Points: 15
Psi: 25
Range: 5.0
Cooldown: 3 turns
{{Ability Infobox
| image       = Telekinetic Punch.png
| nature      = malicious
| name        = Telekinetic Punch
| school      = Psychokinesis
| skillreq    = 0
| description = Telekinetical force strikes the target, dealing 9-10 mechanical damage and stunning it for 1 turn unless it passes a resolve check. The stun only affects organic targets.
| apcost      = 15
| psicost     = 25
| range       = 5.0
| cooldown    = 3 turns
}}

Status effect

Ability's icon
Tackled
Movement points decreased by 8, action points decreased by 3 and chance to hit with all ranged weapons decreased by 7%.
Duration: 2 turns
Max stacks: 5
{{Status Effect Infobox
| name        = Tackled
| nature      = malicious
| image       = Wrestling effect.png
| description = Movement points decreased by 8, action points decreased by 3 and chance to hit with all ranged weapons decreased by 7%.
| duration    = 2 turns
| maxstacks   = 5
}}