Template:Infobox enchantment: Difference between revisions

actually, removing IDs, if you want the data values, you go to the data values tab, also results in more updating work if an ID changes (it' really awkward formatting with BE and JE having different IDs too)
m 57 revisions imported
 
(51 intermediate revisions by 11 users not shown)
Line 1: Line 1:
{{#invoke:infobox|infobox
{{#invoke:infobox|infobox
|title={{{1}}}
|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: {{{sounds|}}} | {{infobox row|Sounds|{{{sounds|}}}}} }}
{{#if: {{{id|}}} | {{Infobox row|[[Resource location|Identifier]]|<code>{{{id}}}</code> }} }}
{{#if: {{{incompat|}}} | {{Infobox row|Incompatible with|{{{incompat}}} }} }}
{{#if: {{{overleveling|}}} | {{Infobox row|{{abbr|Overleveling behavior|How the enchantment's behavior scales when exceeding the maximum level via commands or other means.}}|{{{overleveling}}} }} }}
}}<noinclude>
}}<noinclude>
{{documentation|content=
{{documentation}}
This template provides a uniform design for the infobox on the [[Enchanting]] page.
<!-- Put categories/interwiki on the documentation page -->
{{pipe escape|
{| class{{=}}"wikitable"
! Parameter
! Function
! Default value
|-
| <code>1</code>
| The enchantment's name
| ''None''
|-
| <code>maxlevel</code>
| The enchantment's maximum level
| —
|-
| <code>primaryitems</code>
| Items which can be offered the enchantment by an enchantment table
| ''None''
|-
| <code>secondaryitems</code>
| Other legitimate items
| ''None''
|-
| <code>weight</code>
| The enchantment's relative probability of being offered
|-
| <code>sounds</code>
| Sounds made when enchantment takes effect (if any)
| ''None''
|-
|}
}}
 
}}
 
[[Category:Infobox templates]]
</noinclude>
</noinclude>