More actions
m depluralize example Vector and Matrix plus suggestion |
switch to module (part 1 of ?) Tag: 2017 source edit |
||
Line 1: | Line 1: | ||
<includeonly><templatestyles src="Template:Type/style.css"/>{{# | <includeonly><templatestyles src="Template:Type/style.css"/>{{#invoke:Type|run}}</includeonly><noinclude> <!-- Documentation starts here. --> | ||
}}</includeonly><noinclude> <!-- Documentation starts here. --> | |||
'''Displays a ''type widget''.''' | '''Displays a ''type widget''.''' | ||
Revision as of 20:01, 28 September 2024
Displays a type widget.
- If a link is provided: Template:Type/link
- Built-in types: Template:Type/builtin
- Custom types (fallback): Template:Type/custom. If the page with
[argument 1] (type)
(i.e. disambiguated) exists, that page will be used instead of the plain name for the link.
Stylesheet: Template:Type/style.css (edit to add colors and decorations for custom types)
Examples
- nil
{{type|nil}}
- number
- number | nil (optional number)
- string
- boolean
- function
- table
- Vector (Vector2, Vector3, Vector4)
- Matrix (Matrix2, Matrix3, Matrix4)
- Event (custom type that exists)
- CrashAPI (custom type that doesn't exist)
- Main Page (links to the Main Page)
{{type|Main Page|link=Main Page}}
Displays and links to types.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Type name | 1 | no description
| Unknown | required |
Type modifiers | mod 2 | Modifiers to the type, like array / optional
| Content | optional |
Custom link target | link 3 | no description | Page name | optional |