Template:ItemEffect: Difference between revisions
From A KoL Wiki
imported>Rckt adding {{{note}}} parameter for special cases |
imported>Philmasterplus m Add {{Code2}} |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>Effect: '''{{#ifeq:{{{effect}}}|???|???|[[{{{effect}}}|{{Data|{{{effect}}}|name|{{{effect}}}(?)}}]]}}''' ({{#if:{{{durationtext|}}}|Duration: }}{{{duration|?}}} Adventure{{#ifeq:{{{duration}}}|1||s}}) | <includeonly>Effect: '''{{#ifeq:{{{effect|}}}|???|???|[[{{{effect}}}|{{Data|{{{effect}}}|name|{{{effect}}}(?)}}]]}}''' ({{#if:{{{durationtext|}}}|Duration: }}{{{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>}}</includeonly><noinclude> | ||
{{Code2}} | |||
Formats an effect and duration (and possible effect description if that is included in the effect meta-data) for inclusion in an item description. | Formats an effect and duration (and possible effect description if that is included in the effect meta-data) for inclusion in an item description. | ||
Line 7: | Line 10: | ||
*<nowiki>{{ItemEffect|effect=Hippy Stench|duration=10|durationtext=1}}</nowiki> | *<nowiki>{{ItemEffect|effect=Hippy Stench|duration=10|durationtext=1}}</nowiki> | ||
{{ItemEffect|effect=Hippy Stench|duration=10|durationtext=1}} | {{ItemEffect|effect=Hippy Stench|duration=10|durationtext=1}} | ||
[[Category:Standardization Templates]]</noinclude> | [[Category:Standardization Templates]]</noinclude> |
Latest revision as of 17:05, 27 December 2020
[edit]
{{ItemEffect}}
Effect: '''{{#ifeq:{{{effect|}}}|???|???|[[{{{effect}}}|{{Data|{{{effect}}}|name|{{{effect}}}(?)}}]]}}''' ({{#if:{{{durationtext|}}}|Duration: }}{{{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