Template:SoundEffect: Difference between revisions

From A KoL Wiki
imported>Wrldwzrd89
Creating new template
 
imported>Wrldwzrd89
m Fix Brrr
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#ifeq: {{{1|player}}}|'''<span style="color:blue">{{{2}}}</span>'''}}{{#ifeq: {{{1|monster}}}|'''<span style="color:red">{{{2}}}</span>'''}}</includeonly><noinclude>
<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.
Line 5: Line 5:
==Usage==
==Usage==


:<nowiki>{{SoundEffect|player|BAM!}}</nowiki>
:<nowiki>{{SoundEffect|type=player|sound=BAM!}}</nowiki>
appears as
appears as
:{{SoundEffect|player|BAM!}}
:{{SoundEffect|type=player|sound=BAM!}}
----
----


:<nowiki>{{SoundEffect|monster|Eek!}}</nowiki>
:<nowiki>{{SoundEffect|sound=Eek!}}</nowiki>
appears as
appears as
:{{SoundEffect|monster|Eek!}}
:{{SoundEffect|sound=Eek!}}
----
 
:<nowiki>{{SoundEffect|type=cold|num=1}}</nowiki>
appears as
:{{SoundEffect|type=cold|num=1}}
----
 
:<nowiki>{{SoundEffect|type=cold|num=5}}</nowiki>
appears as
:{{SoundEffect|type=cold|num=5}}
----


:<nowiki>{{SoundEffect|type=cold|num=10}}</nowiki>
appears as
:{{SoundEffect|type=cold|num=10}}
[[Category:Standardization Templates]]</noinclude>
[[Category:Standardization Templates]]</noinclude>

Latest revision as of 01:24, 15 February 2012

{{#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.