Template:ItemTemplate: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
mNo edit summary
m (sorry still messing around)
Line 9: Line 9:
{{#if: {{{dv|}}}      | {{infobox row|DV|{{{dv}}} }} }}
{{#if: {{{dv|}}}      | {{infobox row|DV|{{{dv}}} }} }}
{{#if: {{{ma|}}}      | {{infobox row|MA|{{{ma}}} }} }}
{{#if: {{{ma|}}}      | {{infobox row|MA|{{{ma}}} }} }}
{{#if: {{{commerce|}}}| {{infobox row|Value|{{{commerce}}} }} }}
{{#if: {{{id|}}}      | {{infobox row|ID|{{{id}}} }} }}
<!--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|}}} |
Line 17: Line 19:
{{#if: {{{acid|}}}    | <p style="color:#00C420">  {{{acid}}} Acid</p>}}{{#if: {{{electric|}}} | <p style="color:#CFC041"> {{{electric}}} Electric</p>}}{{#if: {{{cold|}}}    | <p style="color:#0096FF">  {{{cold}}} Cold</p>}}{{#if: {{{heat|}}}    | <p style="color:#D74200">    {{{heat}}} Heat</p>}} }} }}
{{#if: {{{acid|}}}    | <p style="color:#00C420">  {{{acid}}} Acid</p>}}{{#if: {{{electric|}}} | <p style="color:#CFC041"> {{{electric}}} Electric</p>}}{{#if: {{{cold|}}}    | <p style="color:#0096FF">  {{{cold}}} Cold</p>}}{{#if: {{{heat|}}}    | <p style="color:#D74200">    {{{heat}}} Heat</p>}} }} }}
}}
}}
{{#if: {{{commerce|}}} | {{infobox row|Value|{{{commerce}}} }} }}
{{#if: {{{id|}}} | {{infobox row|ID|{{{id}}} }} }}
{{#if: {{{desc|}}} | {{Quote | {{{desc}}} }} }}
{{#if: {{{desc|}}} | {{Quote | {{{desc}}} }} }}
</includeonly>
</includeonly>
<noinclude>
<noinclude>
{{doc}}
{{doc}}

Revision as of 18:28, 15 June 2019