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)
Update template data
Tag: 2017 source edit
PenguinEncounter (talk | contribs)
No edit summary
Tag: 2017 source edit
Line 2: Line 2:
'''Displays a ''type widget''.'''
'''Displays a ''type widget''.'''


* All options are routed through [[Module:Type]].
* All options are routed through [[Module:Type]]. (Edit to add aliases or custom links for matching types.)
 
* Stylesheet: [[Template:Type/style.css]]. (Edit to add colors and decorations for custom types.)
Stylesheet: [[Template:Type/style.css]] (edit to add colors and decorations for custom types)


== Examples ==
== Examples ==

Revision as of 20:12, 28 September 2024

Displays a type widget.

  • All options are routed through Module:Type. (Edit to add aliases or custom links for matching types.)
  • Stylesheet: Template:Type/style.css. (Edit to add colors and decorations for custom types.)

Examples

  • nil {{type|nil}}
  • number
  • number | nil (optional number)
  • string
  • boolean
  • function
  • table
  • Vector (Vector2, Vector3, Vector4)
  • Matrix (Matrix2, Matrix3, Matrix4)
  • Event (custom type that exists)
  • CrashAPI (custom type that doesn't exist)
  • Main Page (links to Event) {{type|Main Page|link=Event}}

Testcases page.

Displays and links to types.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Type name1 name

Type name ('table' etc.) Supports modifiers, like ? and [].

Suggested values
nil boolean integer number string function table Vector Matrix
Stringrequired
Custom link targetlink

no description

Page nameoptional
Custom texttext

If provided, this text will be displayed instead of the type name. The link and styling will still be determined by the type name.

Contentoptional
22

Type modifiers (compatibility)

Unknowndeprecated
Contents