Template:Infobox enchantment: Difference between revisions

Not abbreviations
m convert to portable infobox
Line 1: Line 1:
{{#invoke:infobox|infobox
<onlyinclude><infobox>
|title={{{1|{{BASEPAGENAME}}}}}
<title source="title">
|imagearea=none
<default>{{BASEPAGENAME}}</default>
|rows=
</title>
{{Infobox row|Maximum level|{{ #if: {{{maxlevel|}}} | {{{maxlevel}}} | — }} }}
<image source="image" />
{{Infobox row|{{tooltip|Primary items|The items that can receive the enchantment legitimately in Survival mode by using an enchanting table}}|{{{primaryitems|''None''}}} }}
<navigation>{{#if: {{{extratext|}}} | {{{extratext}}} }}</navigation>
{{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''}}} }}
<data source="maxlevel">
{{Infobox row|{{tooltip|Enchantment weight|Relative chance of the enchantment being offered.}}|{{{weight|—}}} }}
<label>Maximum level</label>
{{#if: {{{id|}}} | {{Infobox row|[[Resource location|Identifier]]|<code>{{{id}}}</code> }} }}
</data>
{{#if: {{{incompat|}}} | {{Infobox row|Incompatible with|{{{incompat}}} }} }}
<data source="primaryitems">
{{#if: {{{overleveling|}}} | {{Infobox row|{{abbr|Overleveling behavior|How the enchantment's behavior scales when exceeding the maximum level via commands or other means.}}|{{{overleveling}}} }} }}
<label><abbr title="The items that can receive the enchantment legitimately in Survival mode by using an enchanting table">Primary items</abbr></label>
}}<noinclude>
<default>''None''</default>
{{documentation}}
</data>
<!-- Put categories/interwiki on the documentation page -->
<data source="secondaryitems">
</noinclude>
<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>
<default>''None''</default>
</data>
<data source="weight">
<label><abbr title="Relative chance of the enchantment being offered.">Enchantment weight</abbr></label>
</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>