Boilerplate:ParserFunctions: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
No edit summary
No edit summary
Line 12: Line 12:


</noinclude></boilerplate>
</noinclude></boilerplate>
[[Category:Boilerplates]]

Revision as of 00:23, 1 July 2022

<!-- This is a template edition convenience copy/paste reference. Remember to delete it before saving!! -->

{{#if: ThisExists | OutputThis | ElseOutputThis }}
{{#ifeq: This | EqualsThis | OutputThis | ElseOutputThis }}
{{#switch: IfThisParameter | EqualsThis | OrThis | OrThat = OutputThis | ElseIfItEqualsThat = OutputThat }}
{{#expr: ( {{{Number}}}*{{{OtherNumber}}} ) }}
{{#ifexpr: {{{Number}}}*{{{OtherNumber}}} | IfExpressionEqualsThis | OutputThis | ElseOutputThis }}
{{#vardefine: VariableName | VariableContent }}
{{#vardefineecho: VariableName | VariableContent }}
{{#var: {{{VariableName}}} }}