Template:Infobox enchantment: Difference between revisions

move code inside div
m 57 revisions imported
 
(34 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|Numeric 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: {{{id|}}}
}}<noinclude>
  | <div style="word-break:break-all"><code>{{{id}}}</code></div>
{{documentation}}
    }}
<!-- Put categories/interwiki on the documentation page -->
  }}
</noinclude>
{{infobox row|label=[[Data values|Name ID]]|field={{
  #if: {{{nameid|}}}
  | <div style="word-break:break-all"><doce>{{{nameid}}}</code></div>
  | <div style="word-break:break-all"><code>{{lc: {{#replace: {{{title| {{BASEPAGENAME}} }}} | | _ }} }}</code></div>
    }}
  }}
}}</includeonly><noinclude>
{{documentation}}</noinclude>