Template:Type: Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>NXTBoy You don't need {{if}} for that. Also, nameless arguments are easier |
m Text replacement - "</SyntaxHighlight>" to "</syntaxhighlight>" Tags: mobile web edit mobile edit |
||
(25 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
==Usage== | |||
{{((}}type|''[enum/instance=]'''''name'''''[|'''text''']''{{))}} | |||
==Examples== | ==Examples== | ||
===Code=== | ===Code=== | ||
Line 13: | Line 9: | ||
{{type|bool}} | {{type|bool}} | ||
{{type|number}} | {{type|number}} | ||
{{type| | {{type|instance=BasePart}} | ||
{{type|Vector3}} | {{type|Vector3}} | ||
</ | {{type|instance=Weld|Welds}} | ||
{{type|string|string|strings}} | |||
{{type|enum=Material}} | |||
{{type|enum=CreatorType|CreatorTypes}} | |||
</syntaxhighlight> | |||
===Result=== | ===Result=== | ||
{{type|string}} | {{type|string}} | ||
Line 23: | Line 22: | ||
{{type|bool}} | {{type|bool}} | ||
{{type|number}} | {{type|number}} | ||
{{type| | {{type|instance=BasePart}} | ||
{{type|Vector3}} | {{type|Vector3}} | ||
{{type|instance=Weld|Welds}} | |||
{{type|string|strings}} | |||
{{type|enum=Material}} | |||
{{type|enum=CreatorType|CreatorTypes}} | |||
==Notes== | |||
The second argument of this template (or the first, when using with enums or instances) should only be used to do things like adding a "s" for plural. | |||
<includeonly><onlyinclude>{{if|{{{instance|}}}|[[RBX.lua.{{{instance|}}} (Object)|{{{1|{{{instance|}}}}}}]]|{{if|{{{enum|}}}|[[{{{enum|}}} (Enum)|<span style="color: darkgreen; font-weight: normal;">{{{1|{{{enum|}}}}}}</span>]]|[[{{{1|}}}|<span style="color: darkgreen; font-weight: normal;">{{{2|{{{1|}}}}}}</span>]]}}}}</onlyinclude></includeonly> |
Latest revision as of 06:15, 27 April 2023
Usage
{{type|[enum/instance=]name[|text]}}
Examples
Code
string
thread
function
bool
number
BasePart
Vector3
Welds
string
Material
CreatorTypes
</syntaxhighlight>
Result
string
thread
function
bool
number
BasePart
Vector3
Welds
strings
Material
CreatorTypes
Notes
The second argument of this template (or the first, when using with enums or instances) should only be used to do things like adding a "s" for plural.