Template:Type: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>JulienDethurens
I hope this works.
m Text replacement - "</SyntaxHighlight>" to "</syntaxhighlight>"
Tags: mobile web edit mobile edit
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
==Usage==
{{((}}type|''[enum/instance=]'''''name'''''[|'''text''']''{{))}}
==Examples==
==Examples==
===Code===
===Code===
Line 13: Line 15:
{{type|enum=Material}}
{{type|enum=Material}}
{{type|enum=CreatorType|CreatorTypes}}
{{type|enum=CreatorType|CreatorTypes}}
</code>
</syntaxhighlight>
===Result===
===Result===
{{type|string}}
{{type|string}}
Line 23: Line 25:
{{type|Vector3}}
{{type|Vector3}}
{{type|instance=Weld|Welds}}
{{type|instance=Weld|Welds}}
{{type|string|string|strings}}
{{type|string|strings}}
{{type|enum=Material}}
{{type|enum=Material}}
{{type|enum=CreatorType|CreatorTypes}}
{{type|enum=CreatorType|CreatorTypes}}
==Notes==
==Notes==
The first argument when using the template for instances/enums and the third argument when using the template for basic types should <strong>only</strong> be used for things like adding "s" for plural. Also, the second argument when using the template for basic types should only be used when you really need to redirect to another page and that page is strictly about the type.
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)|<span style="color: darkgreen; font-weight: normal;">{{{1|{{{instance|}}}}}}</span>]]|{{if|{{{enum|}}}|[[{{{enum|}}} (Enum)|<span style="color: darkgreen; font-weight: normal;">{{{1|{{{enum|}}}}}}</span>]]|[[{{{2|{{{1|}}}}}}|<span style="color: darkgreen; font-weight: normal;">{{{3|{{{1|}}}}}}</span>]]}}}}</onlyinclude></includeonly>
<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.