Template:MC/Nbt inherit
Template page
More actions
Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]
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 ja:テンプレート:Nbt inherit ko:틀:Nbt inherit pt:Predefinição:Nbt inherit ru:Шаблон:Nbt наследование uk:Шаблон:Nbt inherit
zh:Template:Nbt inheritThe above text is transcluded from Template:MC/Nbt inherit/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/Nbt inherit/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/Nbt inherit/doc. (View all subpages of this page.)