Template:Infobox entity: Difference between revisions

Cleanup; add added and removed parameters
Undo revision 1984193 by SWinxy (talk): Messed something up. Reverting.
Line 1: Line 1:
{{#invoke:infobox|infobox
<includeonly>{{#invoke:infobox|infobox
| invimage = none
| invimage = none
| rows =
| rows =
{{ #if: {{{addedVersion|}}} | {{Infobox row|Introduced|{{#if: {{{introducedEvent|}}} | {{{introducedEvent}}}{{#if: {{{introducedEventDate|}}} | , {{{introducedEventDate}}} }} <br/>{{{addedVersion}}}{{#if: {{{addedDate|}}} | , {{{addedDate}}} }} }} }}
{{ #if: {{{health|}}} | {{infobox row|label=[[Health|Health points]]|field={{{health}}} }} }}
{{ #if: {{{removedVersion|}}} | {{Infobox row| {{{removedVersion}}} {{#if: {{{removedDate|}}} |, {{{removedDate}}} }} }} }}
{{ #if: {{{armor|}}} | {{infobox row|label=[[Armor|Armor points]]|field={{{armor}}} }} }}
{{ #if: {{{health|}}} | {{Infobox row|[[Health|Health points]]|{{{health}}} }} }}
{{ #if: {{{behavior|}}} | {{infobox row|label=Behavior|field={{{behavior}}} }} }}
{{ #if: {{{armor|}}} | {{Infobox row|[[Armor|Armor points]]|{{{armor}}} }} }}
{{ #if: {{{damage|}}} | {{infobox row|label=Attack strength|field={{{damage}}} }} }}
{{ #if: {{{behavior|}}} | {{Infobox row|Behavior|{{{behavior}}} }} }}
{{ #if: {{{size|}}} | {{infobox row|label=[[Hitbox|Hitbox size]]|field={{{size}}} }} }}
{{ #if: {{{damage|}}} | {{Infobox row|Attack strength|{{{damage}}} }} }}
{{ #if: {{{speed|}}} | {{infobox row|label=[[Attribute#movementSpeed|Speed]]|field={{{speed}}} }} }}
{{ #if: {{{size|}}} | {{Infobox row|[[Hitbox|Hitbox size]]|{{{size}}} }} }}
{{ #if: {{{knockbackresistance|}}} | {{infobox row|label=[[Attribute#knockbackResistance|Knockback Resistance]]|field={{{knockbackresistance}}} }} }}
{{ #if: {{{speed|}}} | {{Infobox row|[[Attribute#movementSpeed|Speed]]|{{{speed}}} }} }}
{{ #if: {{{spawn|}}} | {{infobox row|label=[[Spawn]]|field={{{spawn}}} }} }}
{{ #if: {{{knockbackresistance|}}} | {{Infobox row|[[Attribute#knockbackResistance|Knockback Resistance]]|{{{knockbackresistance}}} }} }}
{{ #if: {{{equipment|}}} | {{infobox row|class=list-style-none|label=[[Drops#Equipped items|Natural equipment]]|field={{{equipment}}}}} }}
{{ #if: {{{spawn|}}} | {{Infobox row|[[Spawn]]|{{{spawn}}} }} }}
{{ #if: {{{usableitems|}}} | {{infobox row|class=list-style-none|label=Items usable on|field={{{usableitems}}}}} }}
{{ #if: {{{equipment|}}} | {{Infobox row|[[Drops#Equipped items|Natural equipment]]|{{{equipment}}}|class=list-style-none}} }}
{{ #if: {{{networkid|}}} | {{infobox row|label=<abbr title="ID in network traffic, if different from ID used internally (byte)">Network ID</abbr>|field={{{networkid|}}}}} }}
{{ #if: {{{usableitems|}}} | {{Infobox row|Items usable on|{{{usableitems}}}|class=list-style-none}} }} }}
{{ #if: {{{networkid|}}} | {{Infobox row|<abbr title="ID in network traffic, if different from ID used internally (byte)">Network ID</abbr>|{{{networkid|}}} }} }}
| footer =
| footer =
{{#if: {{{notes|}}} | '''Notes'''<br />{{{notes}}} }}
{{#if: {{{notes|}}} | '''Notes'''<br />{{{notes}}} }}
}}<noinclude>
}}</includeonly><noinclude>
{{Documentation}}
{{documentation}}
<!-- Put categories/interwiki on the documentation page -->
<!-- Put categories/interwiki on the documentation page -->
</noinclude>
</noinclude>