Template:Nbt inherit/doc

This template includes a section of NBT tags which is inherited into another set. This documentation will also document the usage of the Nbt inherit/template template.

Usage
This template requires creating a couple of pages for each inherited set of tags. The  page will use this template, and is what will actually be used by editors. The  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), it should contain nothing but the Nbt inherit/template template.


 * is the name of the template +
 * is the title used in the header


 * usage
 * is the page to be transcluded
 * will be used for dpl later

Example
To inherit Chunk format/Entity:
 * Template:Nbt inherit/entity should contain:
 * Template:Nbt inherit/entity/template should contain:

Then the usage in a tree which inherits it:
 * Entity tag
 * Tag unique to this entity
 * Another tag unique to this entity
 * Another tag unique to this entity
 * Entity tag
 * Tag unique to this entity
 * Another tag unique to this entity
 * Another tag unique to this entity

Inherited sections can themselves inherit a section of NBT tags, simply include the inherited tags in the  template, and pass along the  parameter. Then include the #if statement on every line below the first (required because of T14974). For example, the mob class inherited by mobs also inherits the tags from the entity class
 * Template:Nbt inherit/mob should contain:

Then the usage in a tree which inherits it:
 * Entity tag
 * Tag unique to this mob
 * Another tag unique to this mob
 * Another tag unique to this mob
 * Entity tag
 * Tag unique to this mob
 * Another tag unique to this mob
 * Another tag unique to this mob

ko:틀:Nbt 상속

ko:틀:Nbt 상속/설명문서