Template:Metadata id

From wiki.vg
Jump to: navigation, search

Used to generate incremental entity metadata IDs.

The simplest usage is {{Metadata id|}}; an empty first parameter is required to avoid caching issues (see T191574).

cur_meta and pre_meta are local variables, to avoid redundancy. meta_current_entity is defined elsewhere (by {{Metadata inherit}}), and meta_entity and meta_pre_entity are accessed via it. Those two values are incremented after this template.

Behavior changes if a meta_prerelease variable is defined: the template supports an optional parameter which may be set to blank, added, or removed, which can be used to mark metadata entries that were added or removed in the prerelease.