Template:Infobox entity: Difference between revisions

No edit summary
Porting from the test subpage
Line 1: Line 1:
{{#invoke:infobox|infobox
<onlyinclude><infobox>
| invimage = none
  <title source="title">
| rows =
  <default>{{BASEPAGENAME}}</default>
{{ #if: {{{addedVersion|}}} | {{Infobox row|Introduced|{{#if: {{{introducedEvent|}}} | {{{introducedEvent}}}{{#if: {{{introducedEventDate|}}} | , {{{introducedEventDate}}} }} <br/>{{{addedVersion}}}{{#if: {{{addedDate|}}} | , {{{addedDate}}} }} }} }} }}
  </title>
{{ #if: {{{removedVersion|}}} | {{Infobox row| {{{removedVersion}}} {{#if: {{{removedDate|}}} |, {{{removedDate}}} }} }} }}
  <image source="image" />
{{ #if: {{{health|}}} | {{Infobox row|[[Health|Health points]]|{{{health}}} }} }}
  <navigation>{{#if: {{{extratext|}}} | {{{extratext}}} | }}</navigation>
{{ #if: {{{armor|}}} | {{Infobox row|[[Armor|Armor points]]|{{{armor}}} }} }}
  <group collapse="open">
{{ #if: {{{behavior|}}} | {{Infobox row|Behavior|{{{behavior}}} }} }}
    <header>Description</header>
{{ #if: {{{classification|}}} | {{Infobox row|Classification|{{{classification}}} }} }}
    <data source="health"><label>[[Health]]</label></data>
{{ #if: {{{damage|}}} | {{Infobox row|Attack<br/>strength|{{{damage}}} }} }}
    <data source="classification"><label>Classification</label></data>
{{ #if: {{{size|}}} | {{Infobox row|[[Hitbox|Hitbox size]]|{{{size}}} }} }}
    <data source="behavior">
{{ #if: {{{speed|}}} | {{Infobox row|[[Attribute#movementSpeed|Speed]]|{{{speed}}} }} }}
    <label>Behaviour</label>
{{ #if: {{{knockbackresistance|}}} | {{Infobox row|[[Attribute#knockbackResistance|Knockback<br/>resistance]]|{{{knockbackresistance}}} }} }}
      <default>''Does not exist''</default>
{{ #if: {{{spawn|}}} | {{Infobox row|[[Spawn]]|{{{spawn}}} }} }}
    </data>
{{ #if: {{{equipment|}}} | {{Infobox row|[[Drops#Equipped items|Natural<br/>equipment]]|{{{equipment}}}|class=list-style-none}} }}
    <data source="spawn"><label>[[Spawn]]</label></data>
{{ #if: {{{usableitems|}}} | {{Infobox row|Usable items|{{{usableitems}}}|class=list-style-none}} }}
    <data source="damage"><label>[[Damage]]</label></data>
{{ #if: {{{networkid|}}} | {{Infobox row|1=<abbr title="Integer ID in network traffic">Network ID</abbr>|2={{{networkid|}}} }} }}
    <data source="equipment"><label>[[Drops#Equipped items|Natural<br/>equipment]]</label></data>
{{ #if: {{{rarity|}}} | {{Infobox row|[[MCE:Rarity|Rarity]]|{{{rarity}}} }} }}
    <data source="usableitems"><label>Usable items</label></data>
| footer =
    <data source="rarity"><label>[[MCE:Rarity|Rarity]]</label></data>
{{#if: {{{notes|}}} | '''Notes'''<br />{{{notes}}} }}
  </group>
}}<noinclude>
  <group collapse="closed">
{{Documentation}}
    <header>Secondary information</header>
<!-- Put categories/interwiki on the documentation page -->
    <data source="size"><label>Size</label></data>
</noinclude>
    <data source="armor"><label>[[Armor]]</label></data>
    <data source="speed"><label>Speed</label></data>
    <data source="knockbackresistance"><label>Knockback</label></data>
  </group>
</infobox></onlyinclude><noinclude>{{Documentation}}</noinclude>