Template:Type: Difference between revisions

From wiki.vg
Jump to navigation Jump to search
imported>LassiPulkkinen
(New template to simplify type definition links.)
(No difference)

Revision as of 21:28, 24 February 2024

Generates a link to a type definition listed in Data types#Definitions. Uses an internal link when used in Protocol or Data types.

Usage examples

Wikitext Output
{{Type|VarInt}} {{Type|Enum}} {{#switch: Template:Type Data types =
       VarInt
#default =
       VarInt
   }} {{#switch: Template:Type
Data types =
       Enum
#default =
       Enum
   }}
{{Type|String}} (16) {{#switch: Template:Type Data types =
       String
#default =
       String
   }} (16)
{{Type|Array}} of {{Type|Text Component}} {{#switch: Template:Type Data types =
       Array
#default =
       Array
   }} of {{#switch: Template:Type
Data types =
       Text Component
#default =
       Text Component
   }}