Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 13:27, 19 October 2025 by imported>Jacobsjo (Add list parameter)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:Documentation header This template is used to represent references in json files to other registry entries. The reference can optionally also be included inline or be a reference to a tag or list.

Usage

  • Template:P is the name of the type
  • Template:P is the page name to link to, defaults to the name
  • Template:P whether it is possible to inline the objects
  • Template:P the type of the inline object, defaults to {{nbt|compound}}
  • Template:P whether the field accepts a list of objects
  • Template:P whether the field accepts tag of objects, implies Template:P
  • Template:P whether the field only accepts a list or tag of objects and not a single entry

Examples

{{json ref|type name|type link (optional)}}

Template:Json ref

{{json ref|type name|type link (optional)|inline=1}}

Template:Json ref

{{json ref|type name|type link (optional)|list=1}}

Template:Json ref

{{json ref|type name|type link (optional)|tag=1|tag_link=tag link (optional)}}

Template:Json ref

{{json ref|type name|type link (optional)|list=1|inline=1}}

Template:Json ref

{{json ref|type name|type link (optional)|tag=1|tag_link=tag link (optional)|inline=1}}

Template:Json ref

{{json ref|type name|type link (optional)|tag=1|tag_link=tag link (optional)|inline=1|inline_type={{nbt|string}}{{nbt|compound}}}}

Template:Json ref

{{json ref|type name|type link (optional)|no_single=1|tag=1|tag_link=tag link (optional)|inline=1}}

Template:Json ref


pt:Predefinição:Referência JSON/doc fr:Modèle:Ref json/doc ko:틀:Json ref/doc uk:Шаблон:Json ref/док zh:Template:Json ref/doc