Template:Infobox enchantment/doc: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
mNo edit summary
Documentation and templatedata
Line 25: Line 25:
| <code>weight</code>
| <code>weight</code>
| The enchantment's relative probability of being offered
| The enchantment's relative probability of being offered
| (not shown)
|
|-
|-
| <code>incompat</code>
| <code>incompat</code>
| Other enchantments incompatible with this one
| Other enchantments incompatible with this one
| (not shown)
|
|-
| <code>overleveling</code>
| The behavior the enchantment takes when scaled greater than normal using commands
|
|}
|}
<includeonly>
<includeonly>
Line 44: Line 48:
[[ja:テンプレート:Enchantment/doc]]
[[ja:テンプレート:Enchantment/doc]]
</noinclude>
</noinclude>
<templatedata>
{
"params": {
"1": {
"aliases": [
"title"
],
"label": "Enchantment name",
"description": "The name of the enchantment, if it differs from the title.",
"example": "Sharpness",
"type": "string"
},
"maxlevel": {
"aliases": [
"level"
],
"label": "Maximum level",
"description": "The maximum possible level acquirable in survival with no cheats.",
"example": "4",
"suggested": true
},
"primaryitems": {
"aliases": [
"primary"
],
"label": "Primary items",
"description": "Items which can be offered this enchantment in an enchantment table.",
"suggested": true
},
"secondaryitems": {
"aliases": [
"secondary"
],
"label": "Secondary items",
"description": "Other items that this enchantment items can be applied to"
},
"weight": {
"label": "Weight",
"description": "The probability for this enchantment to be offered in an enchanting table.",
"type": "number",
"suggested": true
},
"incompat": {
"aliases": [
"incompatible",
"incompatibilities"
],
"label": "Incompatibilities",
"description": "A list of enchantments that are incompatible with this enchantment.",
"suggested": true
},
"overleveling": {
"label": "Overleveling behavior",
"description": "How the enchantment scales when exceeding the maximum normal level.",
"type": "string"
}
}
}
</templatedata>

Revision as of 04:12, 10 July 2021

This is the documentation page. It should be transcluded into Template:Infobox enchantment. See Template:Documentation for more information.

Template:Enchantment This template provides a uniform design for the infobox on the Enchanting page.

Parameter Function Default value
1 or title The enchantment's name {{BASEPAGENAME}}
maxlevel The enchantment's maximum level
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
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

No description.

Template parameters

ParameterDescriptionTypeStatus
Enchantment name1 title

The name of the enchantment, if it differs from the title.

Example
Sharpness
Stringoptional
Maximum levelmaxlevel level

The maximum possible level acquirable in survival with no cheats.

Example
4
Unknownsuggested
Primary itemsprimaryitems primary

Items which can be offered this enchantment in an enchantment table.

Unknownsuggested
Secondary itemssecondaryitems secondary

Other items that this enchantment items can be applied to

Unknownoptional
Weightweight

The probability for this enchantment to be offered in an enchanting table.

Numbersuggested
Incompatibilitiesincompat incompatible incompatibilities

A list of enchantments that are incompatible with this enchantment.

Unknownsuggested
Overleveling behavioroverleveling

How the enchantment scales when exceeding the maximum normal level.

Stringoptional