More actions
No edit summary Tag: 2017 source edit |
No edit summary Tag: 2017 source edit |
||
Line 29: | Line 29: | ||
* {{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| | * {{type|Main Page|Main Page}} (links to the [[Main Page]]) <code><nowiki>{{type|Main Page|Main Page}}</nowiki></code> | ||
[[Template:Type/testcases|Testcases page.]] | [[Template:Type/testcases|Testcases page.]] | ||
<templatedata> | <templatedata> |
Revision as of 20:39, 26 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
- 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|Main Page}}
Displays and links to types.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Type name | 1 | no description
| Unknown | required |
Custom link target | 2 | no description | Page name | optional |