Template:Infobox enchantment/doc: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
Namespaced ID
m interwiki JA
 
(9 intermediate revisions by 8 users not shown)
Line 2: Line 2:
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>
<pre style="display:table">
{{Enchantment
{{Enchantment
| title =
| title =
Line 26: Line 26:
| <code>1</code>, <code>title</code>
| <code>1</code>, <code>title</code>
| The enchantment's name
| The enchantment's name
| {{code|<nowiki>{{BASEPAGENAME}}</nowiki>}}
| <code><nowiki>{{BASEPAGENAME}}</nowiki></code>
|-
|-
| <code>maxlevel</code> || The enchantment's maximum level || —
| <code>maxlevel</code> || The enchantment's maximum level || —
Line 44: Line 44:
| <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>id</code>, <code>namespace</code>, <code>namespacedid</code> || The resource location of the enchantment ||
|-
|-
| <code>incompat</code> || Other enchantments incompatible with this one ||
| <code>incompat</code> || Other enchantments incompatible with this one ||
Line 50: Line 50:
| <code>overleveling</code> || The behavior the enchantment takes when scaled greater than normal using commands ||
| <code>overleveling</code> || The behavior the enchantment takes when scaled greater than normal using commands ||
|}
|}
<includeonly>
<!-- template categories/interwikis here -->
[[es:Plantilla:Encantamiento]]
[[ja:テンプレート:Enchantment]]
[[Category:Infobox templates]]
</includeonly>


<noinclude>
<!-- doc categories/interwikis here -->
[[es:Plantilla:Encantamiento/doc]]
[[ja:テンプレート:Enchantment/doc]]
</noinclude>
<templatedata>
<templatedata>
{
{
Line 152: Line 140:
"namespacedid"
"namespacedid"
],
],
"label": "Namespaced ID",
"label": "Resource location",
"description": "The namespaced ID to of the enchantment.",
"description": "The resource location of the enchantment.",
"example": "strength",
"example": "strength",
"type": "string",
"type": "string",
Line 177: Line 165:
}
}
</templatedata>
</templatedata>
==See also==
{{infobox see also}}
<includeonly>
<!-- template categories/interwikis here -->
[[es:Plantilla:Encantamiento]]
[[ja:テンプレート:Infobox enchantment]]
[[ko:틀:Enchantment]]
[[uk:Шаблон:Чари]]
[[Category:Infobox templates]]
</includeonly>
<noinclude>
<!-- doc categories/interwikis here -->
[[es:Plantilla:Encantamiento/doc]]
[[ja:テンプレート:Infobox enchantment/doc]]
[[ko:틀:Enchantment/doc]]
[[uk:Шаблон:Чари/док]]
</noinclude>

Latest revision as of 13:57, 30 June 2024

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 =
| 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, namespacedid The resource location of the enchantment
incompat Other enchantments incompatible with this one
overleveling The behavior the enchantment takes when scaled greater than normal using commands

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
Resource locationid namespace namespacedid

The resource location of the enchantment.

Example
strength
Stringsuggested
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

See also[edit source]

Minecraft
Minecraft Earth
Minecraft Dungeons
Minecraft Legends
Minecraft Story Mode
Other
Meta



es:Plantilla:Encantamiento/doc ja:テンプレート:Infobox enchantment/doc ko:틀:Enchantment/doc uk:Шаблон:Чари/док