Template:Infobox enchantment: Difference between revisions

m convert to portable infobox
m 57 revisions imported
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<onlyinclude><infobox>
{{#invoke:infobox|infobox
<title source="title">
|title={{{1|{{BASEPAGENAME}}}}}
<default>{{BASEPAGENAME}}</default>
|imagearea=none
</title>
|rows=
<image source="image" />
{{Infobox row|Maximum level|{{ #if: {{{maxlevel|}}} | {{{maxlevel}}} | — }} }}
<navigation>{{#if: {{{extratext|}}} | {{{extratext}}} }}</navigation>
{{Infobox row|{{tooltip|Primary items|Items that can receive the enchantment from an enchanting table}}|{{{primaryitems|''None''}}} }}
<data source="maxlevel">
{{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''}}} }}
<label>Maximum level</label>
{{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="primaryitems">
{{#if: {{{incompat|}}} | {{Infobox row|Incompatible with|{{{incompat}}} }} }}
<label><abbr title="The items that can receive the enchantment legitimately in Survival mode by using an enchanting table">Primary 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="secondaryitems">
<!-- Put categories/interwiki on the documentation page -->
<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>
</noinclude>
<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>