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:24, 19 October 2025 by imported>Jacobsjo (Add list=1 parameter to allow multiple but not tags.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]

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

Template:Sandbox other
The above text is transcluded from Template:MC/Json ref/doc; you can change it or view its history.
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:MC/Json ref/doc. (View all subpages of this page.)