Template:MC/Nbt inherit/doc
More actions
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).
- Template:P is the name of the template +
/template - Template:P is the title used in the header
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>
- Template:Nbt Entity tag
- Template:Nbt inherit/entity
- Tag unique to this entity
- Another tag unique to this entity
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