More actions
No edit summary Tag: 2017 source edit |
No edit summary Tag: 2017 source edit |
||
Line 1: | Line 1: | ||
<includeonly><templatestyles src="Template:Type/style.css"/>{{#switch:{{{1}}} | <includeonly><templatestyles src="Template:Type/style.css"/>{{#if:{{{2|}}}|{{type/link|{{{1}}}|{{{2}}}}}|{{#switch:{{{1}}} | ||
| nil = {{type/builtin|{{{1}}}}} | | nil = {{type/builtin|{{{1}}}}} | ||
| number = {{type/builtin|{{{1}}}}} | | number = {{type/builtin|{{{1}}}}} | ||
Line 8: | Line 8: | ||
| table = {{type/builtin|{{{1}}}}} | | table = {{type/builtin|{{{1}}}}} | ||
| {{type/custom|{{{1}}}}} | | {{type/custom|{{{1}}}}} | ||
}}</includeonly><noinclude> | }}}}</includeonly><noinclude> | ||
'''Displays a ''type widget''.''' | '''Displays a ''type widget''.''' | ||
Chooses between... | Chooses between... | ||
* If argument 2 is provided, [[Template:Type/link|use that as the link target]]. | |||
* Specialized template for [[Template:Type/builtin|built-in Lua types]]. | * Specialized template for [[Template:Type/builtin|built-in Lua types]]. | ||
* Specialized template for [[Template:Type/custom|custom Figura types]]. If the page with <code>[argument 1] (type)</code> (i.e. disambiguated) exists, that page will be used instead of the plain name for the link. | * Specialized template for [[Template:Type/custom|custom Figura types]]. If the page with <code>[argument 1] (type)</code> (i.e. disambiguated) exists, that page will be used instead of the plain name for the link. |
Revision as of 19:51, 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
- 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)