Difference between revisions of "Template:SoundEffect"

From TheKolWiki
Jump to: navigation, search
(Why is this silly template not working?)
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

{{SoundEffect}}
{{#ifeq: {{{type}}}|player|'''<span style="color:blue">{{{sound}}}</span>'''|{{#ifeq: {{{type}}}|cold|'''<span style="color:blue">{{#switch:{{{num}}}|1=Brrr.|2=Brrrrr.|3=Brrrrrrr.|4=Brrrrrrrrr.|5=Brrrrrrrrrrr.|6=Brrrrrrrrrrrrr.|7=Brrrrrrrrrrrrrrr.|8=Brrrrrrrrrrrrrrrrr.|9=Brrrrrrrrrrrrrrrrrrr.|10=Brrrrrrrrrrrrrrrrrrrrr.}}</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!