Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Type: Difference between revisions

Template page
PenguinEncounter (talk | contribs)
No edit summary
Tag: 2017 source edit
PenguinEncounter (talk | contribs)
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...

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)

Testcases page.

Contents