Template:GenericStatusEffect: Difference between revisions

From Space Station 14 Wiki
No edit summary
(docs)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{#switch:{{{key|Stun}}}
<includeonly>{{#switch:{{{key|Stun}}}
|Stun={{#switch:{{{type|0}}}
|Stun={{#switch:{{{type|0}}}
|0=Stuns for {{{time}}} seconds {{#ifeq:{{{refresh|true}}}|false|(stacks)}} per unit
|0=Stuns for {{{time}}} seconds {{#ifeq:{{{refresh|true}}}|false|(stacks)}} per unit
|2=Stuns for {{{time}}} seconds {{#ifeq:{{{refresh|true}}}|false|(stacks)}} per unit
|2=Stuns for {{{time}}} seconds {{#ifeq:{{{refresh|true}}}|false|(stacks)}} per unit
|1=Blocks stuns for {{{time}}} seconds {{#ifeq:{{{refresh|true}}}|false|(stacks)}} per unit
|1=Reduces stun time by {{{time}}} seconds {{#ifeq:{{{refresh|true}}}|false|(stacks)}} per unit
}}
}}
|KnockedDown={{#switch:{{{type|0}}}
|KnockedDown={{#switch:{{{type|0}}}
|0=Knocks down for {{{time}}} seconds {{#ifeq:{{{refresh|true}}}|false|(stacks)}} per unit
|0=Knocks down for {{{time}}} seconds {{#ifeq:{{{refresh|true}}}|false|(stacks)}} per unit
|2=Knocks down for {{{time}}} seconds {{#ifeq:{{{refresh|true}}}|false|(stacks)}} per unit
|2=Knocks down for {{{time}}} seconds {{#ifeq:{{{refresh|true}}}|false|(stacks)}} per unit
|1=Blocks knockdowns for {{{time}}} seconds {{#ifeq:{{{refresh|true}}}|false|(stacks)}} per unit
|1=Reduces knockdown time by {{{time}}} seconds {{#ifeq:{{{refresh|true}}}|false|(stacks)}} per unit
}}
}}
|Stutter={{#switch:{{{type|0}}}
|Stutter={{#switch:{{{type|0}}}
|0=Causes stuttering for {{{time}}} seconds {{#ifeq:{{{refresh|true}}}|false|(stacks)}} per unit
|0=Causes stuttering for {{{time}}} seconds {{#ifeq:{{{refresh|true}}}|false|(stacks)}} per unit
|2=Causes stuttering for {{{time}}} seconds {{#ifeq:{{{refresh|true}}}|false|(stacks)}} per unit
|2=Causes stuttering for {{{time}}} seconds {{#ifeq:{{{refresh|true}}}|false|(stacks)}} per unit
|1=Blocks stuttering for {{{time}}} seconds {{#ifeq:{{{refresh|true}}}|false|(stacks)}} per unit
|1=Reduces stuttering time by {{{time}}} seconds {{#ifeq:{{{refresh|true}}}|false|(stacks)}} per unit
}}
}}
|Jitter={{#switch:{{{type|0}}}
|Jitter={{#switch:{{{type|0}}}
|0=Causes jittering for {{{time}}} seconds {{#ifeq:{{{refresh|true}}}|false|(stacks)}} per unit
|0=Causes jittering for {{{time}}} seconds {{#ifeq:{{{refresh|true}}}|false|(stacks)}} per unit
|2=Causes jittering for {{{time}}} seconds {{#ifeq:{{{refresh|true}}}|false|(stacks)}} per unit
|2=Causes jittering for {{{time}}} seconds {{#ifeq:{{{refresh|true}}}|false|(stacks)}} per unit
|1=Blocks jittering for {{{time}}} seconds {{#ifeq:{{{refresh|true}}}|false|(stacks)}} per unit
|1=Reduces jittering time by {{{time}}} seconds {{#ifeq:{{{refresh|true}}}|false|(stacks)}} per unit
}}
}}
}}{{#if:{{{when|}}}|&#x20;when {{{when}}}}}.
}}{{#if:{{{when|}}}|&#x20;when {{{when}}}}}.</includeonly><noinclude>
{{documentation}}
 
[[Category:Recipe templates]]
<templatedata>
{
"params": {
"key": {
"label": "Effect name",
"type": "string",
"suggestedvalues": [
"Stun",
"KnockedDown",
"Stutter",
"Jitter"
],
"default": "Stun",
"suggested": true
},
"type": {
"label": "Effect",
"type": "number",
"description": "Use \"0\" for negative (e.g. stuns for) and \"1\" for positive (e.g. reduces stun time).",
"default": "0",
"suggested": true
},
"time": {
"label": "Duration (seconds)",
"example": "10",
"type": "number",
"required": true
},
"refresh": {
"label": "Refreshes?",
"description": "If enabled, that means that the effect does not stack.",
"type": "string",
"suggestedvalues": [
"true",
"false"
],
"default": "true",
"suggested": true
},
"when": {
"label": "Condition",
"example": "shot by",
"type": "string",
"suggested": true
}
}
}
</templatedata>
</noinclude>

Latest revision as of 07:59, 25 June 2024

Template documentation
view or edit this documentation about template documentation

  • {{GenericStatusEffect|time=3}}

produces:

Stuns for 3 seconds per unit.

  • {{GenericStatusEffect|key=Stutter|time=10|when=mixed with XXX}}

produces:

Causes stuttering for 10 seconds per unit when mixed with XXX.

  • {{GenericStatusEffect|key=Jitter|time=20|refreshes=false}} "refreshes" doesn't work

produces:

Causes jittering for 20 seconds per unit.

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Effect namekey

no description

Suggested values
Stun KnockedDown Stutter Jitter
Default
Stun
Stringsuggested
Effecttype

Use "0" for negative (e.g. stuns for) and "1" for positive (e.g. reduces stun time).

Default
0
Numbersuggested
Duration (seconds)time

no description

Example
10
Numberrequired
Refreshes?refresh

If enabled, that means that the effect does not stack.

Suggested values
true false
Default
true
Stringsuggested
Conditionwhen

no description

Example
shot by
Stringsuggested