Template:Type: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>JulienDethurens
The thing is, it looks too much like a clicked link, now. Bah, let's be original and choose something else than blue, for once.
m Text replacement - "</SyntaxHighlight>" to "</syntaxhighlight>"
Tags: mobile web edit mobile edit
 
(41 intermediate revisions by 3 users not shown)
Line 1: Line 1:
==Usage==
{{((}}type|''[enum/instance=]'''''name'''''[|'''text''']''{{))}}
==Examples==
==Examples==
===Code===
===Code===
Line 7: Line 9:
{{type|bool}}
{{type|bool}}
{{type|number}}
{{type|number}}
{{type|Instance}}
{{type|instance=BasePart}}
{{type|BasePart}}
{{type|Vector3}}
{{type|Vector3}}
</code>
{{type|instance=Weld|Welds}}
{{type|string|string|strings}}
{{type|enum=Material}}
{{type|enum=CreatorType|CreatorTypes}}
</syntaxhighlight>
===Result===
===Result===
{{type|string}}
{{type|string}}
Line 17: Line 22:
{{type|bool}}
{{type|bool}}
{{type|number}}
{{type|number}}
{{type|Instance}}
{{type|instance=BasePart}}
{{type|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>
<includeonly><onlyinclude><span style="color: green;">{{{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.