More actions
switch to module (part 1 of ?) Tag: 2017 source edit |
No edit summary Tag: 2017 source edit |
||
Line 20: | Line 20: | ||
* {{type|Event}} (custom type that exists) | * {{type|Event}} (custom type that exists) | ||
* {{type|CrashAPI}} (custom type that doesn't exist) | * {{type|CrashAPI}} (custom type that doesn't exist) | ||
* {{type|Main Page|link= | * {{type|Main Page|link=Event}} (links to [[Event]]) <code><nowiki>{{type|Main Page|link=Event}}</nowiki></code> | ||
[[Template:Type/testcases|Testcases page.]] | [[Template:Type/testcases|Testcases page.]] | ||
<templatedata> | <templatedata> |
Revision as of 20:05, 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 Event)
{{type|Main Page|link=Event}}
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 |