Template:ItemTemplate: Difference between revisions

Added new book id row. Automatically places items in category:books if row exists
m (sorry still messing around)
(Added new book id row. Automatically places items in category:books if row exists)
Line 10: Line 10:
{{#if: {{{ma|}}}      | {{infobox row|MA|{{{ma}}} }} }}
{{#if: {{{ma|}}}      | {{infobox row|MA|{{{ma}}} }} }}
{{#if: {{{commerce|}}}| {{infobox row|Value|{{{commerce}}} }} }}
{{#if: {{{commerce|}}}| {{infobox row|Value|{{{commerce}}} }} }}
<!--This is the name of the object in ObjectBlueprints.xml-->
{{#if: {{{id|}}}      | {{infobox row|ID|{{{id}}} }} }}
{{#if: {{{id|}}}      | {{infobox row|ID|{{{id}}} }} }}
<!--If book id exists, places in books category-->
{{#if: {{{bookid|}}}  | {{infobox row|Book ID|{{{bookid}}}[[Category:Books]] }} }}
<!--Makes the attributes box show up if *any* of the attributes are filled out-->
<!--Makes the attributes box show up if *any* of the attributes are filled out-->
{{#if: {{{strength|}}}{{{agility|}}}{{{toughness|}}}{{{intelligence|}}}{{{willpower|}}}{{{ego|}}} |
{{#if: {{{strength|}}}{{{agility|}}}{{{toughness|}}}{{{intelligence|}}}{{{willpower|}}}{{{ego|}}} |