Template:Infobox enchantment: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
fix?
m 57 revisions imported
 
(38 intermediate revisions by 11 users not shown)
Line 1: Line 1:
<includeonly>{{#invoke:infobox|infobox
{{#invoke:infobox|infobox
|title={{{1|{{{title|{{BASEPAGENAME}} }}} }}}
|title={{{1|{{BASEPAGENAME}}}}}
|imagearea=none
|imagearea=none
|rows=
|rows=
{{infobox row|Maximum level|{{{maxlevel|—}}}}}
{{Infobox row|Maximum level|{{ #if: {{{maxlevel|}}} | {{{maxlevel}}} | — }} }}
{{infobox row|Primary items|{{{primaryitems|''None''}}}}}
{{Infobox row|{{tooltip|Primary items|Items that can receive the enchantment from an enchanting table}}|{{{primaryitems|''None''}}} }}
{{infobox row|Secondary items|{{{secondaryitems|''None''}}}}}
{{Infobox row|{{tooltip|Secondary items|Items that cannot receive the enchantment from an enchanting table but can receive it from an enchanted book on an anvil.}}|{{{secondaryitems|''None''}}} }}
{{infobox row|Enchantment weight|{{{weight|—}}}}}
{{Infobox row|{{tooltip|Enchantment weight|Relative chance of the enchantment being offered.}}|{{{weight|—}}} }}
{{#if: {{{incompat|}}} | {{infobox row|Incompatible with|{{{incompat}}} }} }}
{{#if: {{{id|}}} | {{Infobox row|[[Resource location|Identifier]]|<code>{{{id}}}</code> }} }}
{{#if: {{{sounds|}}} | {{infobox row|Sounds |{{{sounds|}}} }} }}
{{#if: {{{incompat|}}} | {{Infobox row|Incompatible with|{{{incompat}}} }} }}
{{infobox row|label=[[Data values|Enchantment ID]]|field={{
{{#if: {{{overleveling|}}} | {{Infobox row|{{abbr|Overleveling behavior|How the enchantment's behavior scales when exceeding the maximum level via commands or other means.}}|{{{overleveling}}} }} }}
  #if: {{{nameid|{{{id|}}}}}}
}}<noinclude>
  | <div style="word-break:break-all">{{{nameid|{{{id}}}}}}</div>
{{documentation}}
  | <div style="word-break:break-all">{{lc: {{#replace: {{{title| {{BASEPAGENAME}} }}} | | _ }} }}</div>
<!-- Put categories/interwiki on the documentation page -->
    }}
</noinclude>
  }}
}}</includeonly><noinclude>
{{documentation}}</noinclude>

Latest revision as of 07:39, 4 July 2024

Infobox enchantment
Maximum level

Primary items

None

Secondary items

None

Enchantment weight

[view] [edit] [history] [refresh]Documentation

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

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


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

[view] [edit] [history] [refresh]The above documentation is transcluded from Template:Infobox enchantment/doc.