More actions
No edit summary Tag: 2017 source edit |
No edit summary |
||
Line 4: | Line 4: | ||
| nil = {{type/builtin|{{{1}}}|mod={{{2|{{{mod|}}}}}}}} | | nil = {{type/builtin|{{{1}}}|mod={{{2|{{{mod|}}}}}}}} | ||
| number = {{type/builtin|{{{1}}}|mod={{{2|{{{mod|}}}}}}}} | | number = {{type/builtin|{{{1}}}|mod={{{2|{{{mod|}}}}}}}} | ||
| numbers = {{type/builtin|{{{1}}}|mod={{{2|{{{mod|}}}}}}}} | |||
| double = {{type/builtin|{{{1}}}|mod={{{2|{{{mod|}}}}}}}} | |||
| doubles = {{type/builtin|{{{1}}}|mod={{{2|{{{mod|}}}}}}}} | |||
| integer = {{type/builtin|{{{1}}}|mod={{{2|{{{mod|}}}}}}}} | | integer = {{type/builtin|{{{1}}}|mod={{{2|{{{mod|}}}}}}}} | ||
| integers = {{type/builtin|{{{1}}}|mod={{{2|{{{mod|}}}}}}}} | |||
| string = {{type/builtin|{{{1}}}|mod={{{2|{{{mod|}}}}}}}} | | string = {{type/builtin|{{{1}}}|mod={{{2|{{{mod|}}}}}}}} | ||
| strings = {{type/builtin|{{{1}}}|mod={{{2|{{{mod|}}}}}}}} | |||
| boolean = {{type/builtin|{{{1}}}|mod={{{2|{{{mod|}}}}}}}} | | boolean = {{type/builtin|{{{1}}}|mod={{{2|{{{mod|}}}}}}}} | ||
| booleans = {{type/builtin|{{{1}}}|mod={{{2|{{{mod|}}}}}}}} | |||
| true = {{type/builtin|{{{1}}}|mod={{{2|{{{mod|}}}}}}}} | | true = {{type/builtin|{{{1}}}|mod={{{2|{{{mod|}}}}}}}} | ||
| false = {{type/builtin|{{{1}}}|mod={{{2|{{{mod|}}}}}}}} | | false = {{type/builtin|{{{1}}}|mod={{{2|{{{mod|}}}}}}}} | ||
| function = {{type/builtin|{{{1}}}|mod={{{2|{{{mod|}}}}}}}} | | function = {{type/builtin|{{{1}}}|mod={{{2|{{{mod|}}}}}}}} | ||
| functions = {{type/builtin|{{{1}}}|mod={{{2|{{{mod|}}}}}}}} | |||
| table = {{type/builtin|{{{1}}}|mod={{{2|{{{mod|}}}}}}}} | | table = {{type/builtin|{{{1}}}|mod={{{2|{{{mod|}}}}}}}} | ||
| tables = {{type/builtin|{{{1}}}|mod={{{2|{{{mod|}}}}}}}} | |||
| {{type/custom|{{{1}}}|mod={{{2|{{{mod|}}}}}}}} | | {{type/custom|{{{1}}}|mod={{{2|{{{mod|}}}}}}}} | ||
}} | }} |
Revision as of 00:37, 27 September 2024
Displays a type widget.
Chooses between...
- If argument 2 is provided, use that as the link target.
- Specialized template for built-in Lua types.
- Specialized template for custom Figura types. 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
- Template:Type/builtin
{{type|nil}}
- Template:Type/builtin
- Template:Type/builtin (optional number)
- Template:Type/builtin
- Template:Type/builtin
- Template:Type/builtin
- Template:Type/builtin
- Template:Type/custom (custom type that exists)
- Template:Type/custom (custom type that doesn't exist)
- Template:Type/link (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 |