Template:Infobox enchantment/doc: Difference between revisions
Documentation and templatedata |
Namespaced ID |
||
Line 13: | Line 13: | ||
| secondaryitems = | | secondaryitems = | ||
| weight = | | weight = | ||
| id = | |||
| incompat = | | incompat = | ||
| overleveling = | | overleveling = | ||
Line 42: | Line 43: | ||
|- | |- | ||
| <code>weight</code> || The enchantment's relative probability of being offered || | | <code>weight</code> || The enchantment's relative probability of being offered || | ||
|- | |||
| <code>id</code>, <code>namespace</code, <code>namespacedid</code> || The namespaced ID of the enchantment || | |||
|- | |- | ||
| <code>incompat</code> || Other enchantments incompatible with this one || | | <code>incompat</code> || Other enchantments incompatible with this one || | ||
Line 143: | Line 146: | ||
"example": "{{End date|2011|12|19}}", | "example": "{{End date|2011|12|19}}", | ||
"type": "date" | "type": "date" | ||
}, | |||
"id": { | |||
"aliases": [ | |||
"namespace", | |||
"namespacedid" | |||
], | |||
"label": "Namespaced ID", | |||
"description": "The namespaced ID to of the enchantment.", | |||
"example": "strength", | |||
"type": "string", | |||
"suggested": true | |||
} | } | ||
}, | }, | ||
Line 157: | Line 171: | ||
"secondaryitems", | "secondaryitems", | ||
"weight", | "weight", | ||
"id", | |||
"incompat", | "incompat", | ||
"overleveling" | "overleveling" |
Revision as of 18:17, 10 July 2021
This template provides a uniform design for the infobox on the Enchanting page.
{{Enchantment | title = | addedVersion = | addedDate = | removedVersion = | removedDate = | maxlevel = | primaryitems = | secondaryitems = | weight = | id = | incompat = | overleveling = }}
Parameter | Function | Default value |
---|---|---|
1 , title
|
The enchantment's name | {{BASEPAGENAME}}
|
maxlevel |
The enchantment's maximum level | — |
addedVersion |
The version that added this enchantment | None |
addedDate |
The date that removed this enchantment | None |
removedVersion |
The version that removed the enchantment | None |
removedDate |
The date that removed this enchantment | None |
primaryitems |
Items which can be offered the enchantment by an enchantment table | None |
secondaryitems |
Other legitimate items | None |
weight |
The enchantment's relative probability of being offered | |
id , namespace</code, |
The namespaced ID of the enchantment | |
incompat |
Other enchantments incompatible with this one | |
overleveling |
The behavior the enchantment takes when scaled greater than normal using commands |
es:Plantilla:Encantamiento/doc ja:テンプレート:Enchantment/doc
Creates an infobox for an enchantment.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Enchantment name | 1 title | The name of the enchantment, if it differs from the title.
| String | optional |
Version added | versionAdded added | The version the enchantment first appeared.
| Unknown | optional |
Date added | dateAdded | The date the enchantment first appeared.
| Date | optional |
Version removed | versionRemoved removed | The version that removed this enchantment
| Unknown | optional |
Date removed | dateRemoved | The date that this enchantment was removed.
| Date | optional |
Maximum level | maxlevel level | The maximum possible level acquirable in survival with no cheats.
| Unknown | suggested |
Primary items | primaryitems primary | Items which can be offered this enchantment in an enchantment table. | Unknown | suggested |
Secondary items | secondaryitems secondary | Other items that this enchantment items can be applied to | Unknown | optional |
Weight | weight | The probability for this enchantment to be offered in an enchanting table. | Number | suggested |
Namespaced ID | id namespace namespacedid | The namespaced ID to of the enchantment.
| String | suggested |
Incompatibilities | incompat incompatible incompatibilities | A list of enchantments that are incompatible with this enchantment. | Unknown | suggested |
Overleveling behavior | overleveling | How the enchantment scales when exceeding the maximum normal level. | String | optional |