Difference between revisions of "Template:Ability Infobox"
Jump to navigation
Jump to search
WikimanBot (talk | contribs) (css styling) |
WikimanBot (talk | contribs) m (using TimelapseColors for some parts) |
||
(17 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{| class="infobox" style="font-family:'pf_tempesta_seven',sans-serif; font-size:12px;" | {| class="infobox" style="font-family:'pf_tempesta_seven',sans-serif; font-size:12px;" | ||
+ | |||
|- | |- | ||
− | | rowspan="3" | + | | rowspan="3" align="center" valign="middle" style="width:50px;height:50px;" | |
+ | {{#if:{{{image|}}} | ||
+ | | [[File:{{{image}}}|{{{name}}} icon]] | ||
+ | | [[File:Misc_icon.png|Default icon]] | ||
+ | }} | ||
− | |- | + | |- <!-- name color depends on nature --> |
− | | style="color:{{#switch: {{{ | + | | valign="middle" style="color:{{#switch:{{{nature}}} |
+ | |malicious = {{TimelapseColors|AbilityNatureColors.AbilityNature.Malicious}} | ||
+ | |beneficial = {{TimelapseColors|AbilityNatureColors.AbilityNature.Beneficial}} | ||
+ | |neutral = {{TimelapseColors|AbilityNatureColors.AbilityNature.Neutral}} | ||
+ | |general | ||
+ | |#default = orange | ||
+ | }}; font-weight:bold; font-size:127%;" | {{{name}}} | ||
− | |- | + | |- <!-- this row is omitted if psi discipline (school) is not specified --> |
− | | style="color:yellow;" |{{#if:<noinclude>string</noinclude>{{{school|}}}|{{{school}}} {{#if:<noinclude>string</noinclude>{{{skillreq|}}}| | + | | style="color:yellow;" | {{#if:<noinclude>string</noinclude>{{{school|}}} | {{{school}}} {{#if:<noinclude>string</noinclude>{{{skillreq|}}}|{{color|gray|({{{skillreq}}} skill required)}}|}}|}} |
− | |-<!-- limit width for status effect | + | |- <!-- limit width for status effect infoboxes --> |
− | | style="max-width:{{#switch:{{{type}}}|buff|debuff=300px|#default=500px}}; padding:5px 0px 5px 0px" colspan="2" | {{{description}}} | + | | style="max-width:{{#switch:{{{type}}}|buff|debuff|general=300px |#default=500px}}; padding:5px 0px 5px 0px" colspan="2" | {{{description}}} |
|- | |- | ||
Line 52: | Line 63: | ||
|}} | |}} | ||
− | |}<noinclude><br style="clear:both;"/>{{documentation}}</noinclude> | + | |}<!-- |
+ | |||
+ | AUTOMATIC CATEGORIES: | ||
+ | -->{{#if:{{NAMESPACE}} | ||
+ | |<!-- non-empty namespace -->{{#ifeq:{{NAMESPACE}}|Template|{{Infobox tab}}|}} | ||
+ | |<!-- empty (main) namespace -->}}{{#switch:{{{nature}}} | ||
+ | |malicious = [[Category:Nature Malicious]] | ||
+ | |beneficial = [[Category:Nature Beneficial]] | ||
+ | |neutral = [[Category:Nature Neutral]] | ||
+ | |#default=}}<noinclude><br style="clear:both;"/> | ||
+ | |||
+ | {{documentation}}</noinclude> |
Latest revision as of 04:06, 2 July 2019
{{{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?)
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
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
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 }}