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"/>{{#if:{{{2|}}}|{{type/link|{{{1}}}|{{{2}}}}}|{{#switch:{{{1}}}
<includeonly><templatestyles src="Template:Type/style.css"/>{{#if:{{{3|{{{link|}}}}}}|{{type/link|{{{1}}}|{{{2}}}|link={{{3|{{{link}}}}}}}}|{{#switch:{{{1}}}
  | nil = {{type/builtin|{{{1}}}}}
  | nil = {{type/builtin|{{{1}}}|{{{2}}}}}
  | number = {{type/builtin|{{{1}}}}}
  | number = {{type/builtin|{{{1}}}|{{{2}}}}}
  | integer = {{type/builtin|{{{1}}}}}
  | integer = {{type/builtin|{{{1}}}|{{{2}}}}}
  | string = {{type/builtin|{{{1}}}}}
  | string = {{type/builtin|{{{1}}}|{{{2}}}}}
  | boolean = {{type/builtin|{{{1}}}}}
  | boolean = {{type/builtin|{{{1}}}|{{{2}}}}}
  | true = {{type/builtin|{{{1}}}}}
  | true = {{type/builtin|{{{1}}}|{{{2}}}}}
  | false = {{type/builtin|{{{1}}}}}
  | false = {{type/builtin|{{{1}}}|{{{2}}}}}
  | function = {{type/builtin|{{{1}}}}}
  | function = {{type/builtin|{{{1}}}|{{{2}}}}}
  | table = {{type/builtin|{{{1}}}}}
  | table = {{type/builtin|{{{1}}}|{{{2}}}}}
  | {{type/custom|{{{1}}}}}
  | {{type/custom|{{{1}}}|{{{2}}}}}
}}}}</includeonly><noinclude> <!-- Documentation starts here. -->
}}}}</includeonly><noinclude> <!-- Documentation starts here. -->
'''Displays a ''type widget''.'''
'''Displays a ''type widget''.'''

Revision as of 00:18, 27 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 {{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/custom (links to the Main Page) {{type|Main Page|Main Page}}

Testcases page.

Displays and links to types.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Type name1

no description

Suggested values
nil boolean integer number string function table
Unknownrequired
Custom link target2

no description

Page nameoptional
Contents