Template:SoundEffect: Difference between revisions

From A KoL Wiki
imported>Wrldwzrd89
Why is this silly template not working?
imported>Wrldwzrd89
m Silly template syntax isn't intuitive
Line 1: Line 1:
<includeonly>{{#ifeq: {{{type|player}}}|'''<span style="color:blue">{{{sound}}}</span>'''|'''<span style="color:red">{{{sound}}}</span>'''}}</includeonly><noinclude>
<includeonly>{{#ifeq: {{{type}}}|player|'''<span style="color:blue">{{{sound}}}</span>'''|'''<span style="color:red">{{{sound}}}</span>'''}}</includeonly><noinclude>
{{Code2}}
{{Code2}}
This template should be used on the [[Sound Effects]] page and any other page that includes a custom sound effect.
This template should be used on the [[Sound Effects]] page and any other page that includes a custom sound effect.

Revision as of 19:01, 1 February 2012

{{#ifeq: {{{type}}}|player|'''<span style="color:blue">{{{sound}}}</span>'''|'''<span style="color:red">{{{sound}}}</span>'''}}

This template should be used on the Sound Effects page and any other page that includes a custom sound effect.

Usage

{{SoundEffect|type=player|sound=BAM!}}

appears as

BAM!

{{SoundEffect|sound=Eek!}}

appears as

Eek!