Template:ItemEffect

From TheKolWiki
Jump to: navigation, search


{{ItemEffect}}
Effect: '''{{#ifeq:{{{effect|}}}|???|???|[[{{{effect}}}|{{Data|{{{effect}}}|name|{{{effect}}}(?)}}]]}}''' ({{#if:{{{durationtext|}}}|Duration:&nbsp;}}{{{duration|?}}} Adventure{{#ifeq:{{{duration|}}}|1||s}}){{#if:{{Data|{{{effect}}}|effect|}}|<span style="display: block;font-weight:bold;text-align:center;color:blue">{{Data|{{{effect}}}|effect|}}</span>}}

Formats an effect and duration (and possible effect description if that is included in the effect meta-data) for inclusion in an item description.

Example

  • {{ItemEffect|effect=Hippy Stench|duration=10}}

Effect: Hippy Stench (10 Adventures)Monsters will be more attracted to you

  • {{ItemEffect|effect=Hippy Stench|duration=10|durationtext=1}}

Effect: Hippy Stench (Duration: 10 Adventures)Monsters will be more attracted to you