Template:Infobox enchantment: Difference between revisions

mNo edit summary
m rebase dev changes onto prod
Line 1: Line 1:
<onlyinclude><infobox>
{{#invoke:infobox|infobox
<title source="title"><default>{{BASEPAGENAME}}</default></title>
|title={{{1|{{BASEPAGENAME}}}}}
<image source="image" />
|imagearea=none
<navigation>{{{extratext|}}}</navigation>
|rows=
<data source="maxlevel"><label>Maximum level</label></data>
{{Infobox row|Maximum level|{{ #if: {{{maxlevel|}}} | {{{maxlevel}}} | — }} }}
<data source="primaryitems">
{{Infobox row|{{tooltip|Primary items|The items that can receive the enchantment legitimately in Survival mode by using an enchanting table}}|{{{primaryitems|''None''}}} }}
<label><abbr title="The items that can receive the enchantment legitimately in Survival mode by using an enchanting table">Primary items</abbr></label>
{{Infobox row|{{tooltip|Secondary items|Items which, in Survival mode, cannot receive the enchantment from an enchanting table but can from an enchanted book with an anvil.}}|{{{secondaryitems|''None''}}} }}
<default>''None''</default>
{{Infobox row|{{tooltip|Enchantment weight|Relative chance of the enchantment being offered.}}|{{{weight|—}}} }}
</data>
{{#if: {{{id|}}} | {{Infobox row|[[Resource location|Identifier]]|<code>{{{id}}}</code> }} }}
<data source="secondaryitems">
{{#if: {{{incompat|}}} | {{Infobox row|Incompatible with|{{{incompat}}} }} }}
<label><abbr title="Items which, in Survival mode, cannot receive the enchantment from an enchanting table but can from an enchanted book with an anvil.">Secondary items</abbr></label>
{{#if: {{{overleveling|}}} | {{Infobox row|{{abbr|Overleveling behavior|How the enchantment's behavior scales when exceeding the maximum level via commands or other means.}}|{{{overleveling}}} }} }}
<default>''None''</default>
}}<noinclude>
</data>
{{documentation}}
<data source="weight">
<!-- Put categories/interwiki on the documentation page -->
<label><abbr title="Relative chance of the enchantment being offered.">Enchantment weight</abbr></label>
</noinclude>
</data>
<data source="id">
<label>[[Resource location|Identifier]]</label>
<format><code>{{{id}}}</code></format>
</data>
<data source="incompat"><label>Incompatible with</label></data>
<data source="overleveling">
<label><abbr title="How the enchantment's behavior scales when exceeding the maximum level via commands or other means.">Overleveling behavior</abbr></label>
</data>
</infobox></onlyinclude><noinclude>{{Documentation}}</noinclude>