Template:Metadata type definition

From wiki.vg
Revision as of 03:00, 26 February 2024 by LassiPulkkinen (talk | contribs) (Created page with "<includeonly>{{#if: {{#var:meta_prerelease}} | <!-- pre-release mode --> {{!}}- id="Metadata_type:{{#replace: {{{1}}}| |_}}" {{#if: {{{rel|}}} | {{{{{rel}}}}}}} <!...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Generates an entity metadata type entry—more specifically a row separator and the first two table cells. Takes the name of the type as a parameter, and infers the type ID from the ordering.

Use Template:Metadata type definition/begin to begin the table, e.g.:

{{Metadata type definition/begin}}
 ! Value
 ! Notes
{{Metadata type definition|Byte}}
 | {{Type|Byte}}
 | It's a byte.
{{Metadata type definition|Short}}
 | {{Type|Short}}
 | It's a short.
{{Metadata type definition|Int}}
 | {{Type|Int}}
 | You get the drill.
 |}

If meta_prerelease is set, an additional rel parameter can be used to indicate that the type has been added or removed.

The type's (full release) ID is stored in meta_type_typename. In pre-release mode, meta_pre_type_typename stores the new ID.