Template:GenericStatusEffect: Difference between revisions

From Space Station 14 Wiki
No edit summary
(docs)
 
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
Line 20: Line 20:
|1=Reduces jittering time by {{{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.

produces:

Causes jittering for 20 seconds per unit.

No description.

Template parameters

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