Template:Infobox enchantment/doc: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
m Use <code> tag instead of {{code}}
Documentation and templatedata
Line 1: Line 1:
{{Documentation header}}
{{Documentation header}}
{{Enchantment}}
This template provides a uniform design for the infobox on the [[Enchanting]] page.
This template provides a uniform design for the infobox on the [[Enchanting]] page.
<pre>
{{Enchantment
| title =
| addedVersion =
| addedDate =
| removedVersion =
| removedDate =
| maxlevel =
| primaryitems =
| secondaryitems =
| weight =
| incompat =
| overleveling =
}}
</pre>
{| class="wikitable"
{| class="wikitable"
! Parameter
! Parameter
Line 11: Line 27:
| {{code|<nowiki>{{BASEPAGENAME}}</nowiki>}}
| {{code|<nowiki>{{BASEPAGENAME}}</nowiki>}}
|-
|-
| <code>maxlevel</code>
| <code>maxlevel</code> || The enchantment's maximum level || —
| The enchantment's maximum level
|-
|
| <code>addedVersion</code> || The version that added this enchantment || ''None''
|-
|-
| <code>primaryitems</code>
| <code>addedDate</code> || The date that removed this enchantment || ''None''
| Items which can be offered the enchantment by an enchantment table
| ''None''
|-
|-
| <code>secondaryitems</code>
| <code>removedVersion</code> || The version that removed the enchantment || ''None''
| Other legitimate items
| ''None''
|-
|-
| <code>weight</code>
| <code>removedDate</code> || The date that removed this enchantment || ''None''
| The enchantment's relative probability of being offered
|
|-
|-
| <code>incompat</code>
| <code>primaryitems</code> || Items which can be offered the enchantment by an enchantment table || ''None''
| Other enchantments incompatible with this one
|
|-
|-
| <code>overleveling</code>
| <code>secondaryitems</code> || Other legitimate items || ''None''
| The behavior the enchantment takes when scaled greater than normal using commands
|-
|
| <code>weight</code> || The enchantment's relative probability of being offered ||
|-
| <code>incompat</code> || Other enchantments incompatible with this one ||
|-
| <code>overleveling</code> || The behavior the enchantment takes when scaled greater than normal using commands ||
|}
|}
<includeonly>
<includeonly>
Line 103: Line 115:
"description": "How the enchantment scales when exceeding the maximum normal level.",
"description": "How the enchantment scales when exceeding the maximum normal level.",
"type": "string"
"type": "string"
},
"versionAdded": {
"aliases": [
"added"
],
"label": "Version added",
"description": "The version the enchantment first appeared.",
"example": "18w47a"
},
"dateAdded": {
"label": "Date added",
"description": "The date the enchantment first appeared.",
"example": "{{Start date|2018|9|25}}",
"type": "date"
},
"versionRemoved": {
"aliases": [
"removed"
],
"label": "Version removed",
"description": "The version that removed this enchantment",
"example": "Beta 1.5"
},
"dateRemoved": {
"label": "Date removed",
"description": "The date that this enchantment was removed.",
"example": "{{End date|2011|12|19}}",
"type": "date"
}
}
}
},
"format": "block",
"description": "Creates an infobox for an enchantment.",
"paramOrder": [
"1",
"versionAdded",
"dateAdded",
"versionRemoved",
"dateRemoved",
"maxlevel",
"primaryitems",
"secondaryitems",
"weight",
"incompat",
"overleveling"
]
}
}
</templatedata>
</templatedata>

Revision as of 18:05, 10 July 2021

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

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

{{Enchantment
| title =
| addedVersion =
| addedDate =
| removedVersion =
| removedDate =
| maxlevel =
| primaryitems =
| secondaryitems =
| weight =
| 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
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.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Enchantment name1 title

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

Example
Sharpness
Stringoptional
Version addedversionAdded added

The version the enchantment first appeared.

Example
18w47a
Unknownoptional
Date addeddateAdded

The date the enchantment first appeared.

Example
{{Start date|2018|9|25}}
Dateoptional
Version removedversionRemoved removed

The version that removed this enchantment

Example
Beta 1.5
Unknownoptional
Date removeddateRemoved

The date that this enchantment was removed.

Example
{{End date|2011|12|19}}
Dateoptional
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