Template:Infobox entity: Difference between revisions

Don't link to image on template pages.
Added Template:Version link, removed IDs from being optional (every entity would have an ID?)
Line 12: Line 12:
{{ #if: {{{spawn|}}} | {{infobox row|label=Spawn|field={{{spawn}}} }} }}
{{ #if: {{{spawn|}}} | {{infobox row|label=Spawn|field={{{spawn}}} }} }}
{{ #if: {{{score|}}} | {{infobox row|label=Scorepoints|field={{{score}}} }} }}
{{ #if: {{{score|}}} | {{infobox row|label=Scorepoints|field={{{score}}} }} }}
{{#if: {{{firstver|}}} | {{infobox row|label=First Appearance|field={{{firstver}}} }} }}
{{ #if: {{{firstver|}}} | {{infobox row|label=First Appearance|field={{Version link|{{{firstver}}}}} }} }}
{{ #if: {{{id|}}} | {{infobox row|label=<span style="border-bottom: 1px dotted; cursor: help" title="ID in Network Traffic (Byte)">Network ID</span>|field={{{id}}} }} }}
{{infobox row|label=<span style="border-bottom: 1px dotted; cursor: help" title="ID in Network Traffic (Byte)">Network ID</span>|field={{#if: {{{id|}}} | {{{id}}} | ? }} }}
{{ #if: {{{entityid|}}} | {{infobox row|label=<span style="border-bottom: 1px dotted; cursor: help" title="ID in Saved Games (String)">Savegame ID</span>|field={{{entityid}}} }} }}
{{infobox row|label=<span style="border-bottom: 1px dotted; cursor: help" title="ID in Saved Games (String)">Savegame ID</span>|field={{#if: {{{entityid|}}} | {{{entityid}}} | ? }} }}
{{ #if: {{{drops|}}} | {{infobox row|label=Drops|field={{{drops|}}} }} }}
{{ #if: {{{drops|}}} | {{infobox row|label=Drops|field={{{drops|}}} }} }}
{{ #if: {{{raredrops|}}} | {{infobox row|label=Rare Drops|field={{{raredrops|}}} }} }}
{{ #if: {{{raredrops|}}} | {{infobox row|label=Rare Drops|field={{{raredrops|}}} }} }}