Template:SoundEffect: Difference between revisions
From A KoL Wiki
imported>Wrldwzrd89 Enhancing template to handle cold |
imported>Wrldwzrd89 m Fix Brrr |
||
Line 1: | Line 1: | ||
<includeonly>{{#ifeq: {{{type}}}|player|'''<span style="color:blue">{{{sound}}}</span>'''|{{#ifeq: {{{type}}}|cold|'''<span style="color:blue">{{#switch:{{{num}}}|1= | <includeonly>{{#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>'''}}}}</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. |
Latest revision as of 01:24, 15 February 2012
[edit]
{{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!
- {{SoundEffect|type=cold|num=1}}
appears as
- Brrr.
- {{SoundEffect|type=cold|num=5}}
appears as
- Brrrrrrrrrrr.
- {{SoundEffect|type=cold|num=10}}
appears as
- Brrrrrrrrrrrrrrrrrrrrr.