Difference between revisions of "Template:Type"

From wiki.vg
Jump to navigation Jump to search
(Performance test (to be reverted))
(Fix terminological confusion (mine).)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>[[#Type:{{{1}}}|{{{1}}}]]</includeonly><noinclude>
+
<includeonly>{{#switch: {{FULLPAGENAME}}
Generates a link to a type definition listed in [[Data types#Definitions]]. Uses an internal link when used in [[Protocol]] or [[Data types]].
+
    | Protocol | Data types = <!-- pages that include Data types; this should work for now -->
 +
        [[#Type:{{{1}}}|{{{1}}}]]
 +
    | #default =
 +
        [[Data types#Type:{{{1}}}|{{{1}}}]]
 +
    }}</includeonly><noinclude>
 +
Generates a link to a type definition listed in [[Data types#Definitions]]. Uses a page-internal link when used in [[Protocol]] or [[Data types]].
  
 
== Usage examples ==
 
== Usage examples ==

Latest revision as of 00:07, 25 February 2024

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

Usage examples

Wikitext Output
{{Type|VarInt}} {{Type|Enum}} VarInt Enum
{{Type|String}} (16) String (16)
{{Type|Array}} of {{Type|Text Component}} Array of Text Component