More actions
m →Examples: Add another example Tag: 2017 source edit |
|||
(One intermediate revision by one other user not shown) | |||
Line 8: | Line 8: | ||
* {{type|nil}} <code><nowiki>{{type|nil}}</nowiki></code> | * {{type|nil}} <code><nowiki>{{type|nil}}</nowiki></code> | ||
* {{type|number}} | * {{type|number}} | ||
* {{type|integer}},{{type|double}},{{type|float}} | * {{type|integer}}, {{type|double}}, {{type|float}} | ||
* {{type|numbers|?}} (optional number) | * {{type|numbers|?}} (optional number) | ||
* {{type|numbers|[]}} (array of numbers) | |||
* {{type|string}} | * {{type|string}} | ||
* {{type|boolean}} | * {{type|boolean}} |
Latest revision as of 23:56, 29 October 2024
Displays a type widget.
- All options are routed through Module:Type. (Edit to add aliases or custom links for matching types.)
- Stylesheet: Template:Type/style.css. (Edit to add colors and decorations for custom types.)
Examples
- nil
{{type|nil}}
- number
- integer, double, float
- numbers | nil (optional number)
- numbers[] (array of numbers)
- 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 name | Type name ('table' etc.) Supports modifiers, like ? and [].
| String | required |
Custom link target | link | no description | Page name | optional |
Custom text | text | If provided, this text will be displayed instead of the type name. The link and styling will still be determined by the type name. | Content | optional |
2 | 2 | Type modifiers (compatibility) | Unknown | deprecated |