Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:MC/Nbt inherit/doc

Template page
Revision as of 23:09, 15 September 2025 by imported>MetroKopUA (KO interwiki fix)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:Documentation header This template includes a section of NBT tags which is inherited into another set.

Usage

This template requires creating a couple of pages for each inherited set of tags. The Template:Nbt inherit/<id> page will use this template, and is what will actually be used by editors. The Template:Nbt inherit/<id>/template page simple transcludes the actual content to be inherited which will be loaded when clicking on the show button (this page is for technical caching reasons for the page loader script).

Example

To inherit Chunk format/Entity:

Template:Nbt inherit/entity should contain
{{Nbt inherit|Template:Nbt inherit/entity/template|Tags common to all entities}}
Template:Nbt inherit/entity/template should transclude the original page
{{:Chunk format/Entity}}

Then the usage in a tree which inherits it:

<div class="treeview">
* {{nbt|compound}} Entity tag
** {{nbt inherit/entity}}
** Tag unique to this entity
** Another tag unique to this entity
*** {{nbt inherit/item|indent=***}}
</div>


fr:Modèle:Arbre Nbt/doc ja:テンプレート:Nbt inherit/doc ko:틀:Nbt inherit/doc pt:Predefinição:Nbt inherit/doc ru:Шаблон:Nbt наследование/док uk:Шаблон:Nbt inherit/док zh:Template:Nbt inherit/doc