Template:Infobox enchantment: Difference between revisions
m Majority of enchantments have no incompatibilities, so making this hidden if value not set |
adding id and changing name to default to page |
||
| Line 1: | Line 1: | ||
{{#invoke:infobox|infobox | <includeonly>{{#invoke:infobox|infobox | ||
|title={{{1}}} | |title={{#if: {{{1|}}}|{{{1}}}|{{BASEPAGENAME}}}} | ||
|imagearea=none | |imagearea=none | ||
|rows= | |rows= | ||
| Line 9: | Line 9: | ||
{{#if: {{{incompat|}}} | {{infobox row|Incompatible with|{{{incompat|}}} }} }} | {{#if: {{{incompat|}}} | {{infobox row|Incompatible with|{{{incompat|}}} }} }} | ||
{{#if: {{{sounds|}}} | {{infobox row|Sounds |{{{sounds |}}} }} }} | {{#if: {{{sounds|}}} | {{infobox row|Sounds |{{{sounds |}}} }} }} | ||
| {{infobox row|label=[[Data values|Enchantment ID]]|field={{ | |||
{{ | #if: {{{nameid|{{{id|}}}}}} | ||
| <div style="word-break:break-all">{{{nameid|{{{id}}}}}}</div> | |||
{{ | | {{#if: {{NAMESPACE}} | ||
{ | | ? | ||
| <div style="word-break:break-all">{{lc: {{#replace: {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }} || _ }} }}</div> | |||
}} | |||
}}}} | |||
|- | |||
| | |||
| | |||
| | |||
| < | |||
| | |||
| | |||
| | |||
| | |||
| | |||
}} | }} | ||
}}</includeonly> | |||
}} | {{documentation}} | ||
</ | |||