Template:MC/Json ref
Template page
More actions
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)}}
{{json ref|type name|type link (optional)|inline=1}}
{{json ref|type name|type link (optional)|list=1}}
{{json ref|type name|type link (optional)|tag=1|tag_link=tag link (optional)}}
{{json ref|type name|type link (optional)|list=1|inline=1}}
{{json ref|type name|type link (optional)|tag=1|tag_link=tag link (optional)|inline=1}}
{{json ref|type name|type link (optional)|tag=1|tag_link=tag link (optional)|inline=1|inline_type={{nbt|string}}{{nbt|compound}}}}
{{json ref|type name|type link (optional)|no_single=1|tag=1|tag_link=tag link (optional)|inline=1}}
Template:Sandbox otherThe 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.)
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.)