Template:SoundEffect: Difference between revisions
From A KoL Wiki
imported>Wrldwzrd89 Creating new template |
imported>Wrldwzrd89 Why is this silly template not working? |
||
Line 1: | Line 1: | ||
<includeonly>{{#ifeq: {{{ | <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. | ||
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| | :<nowiki>{{SoundEffect|sound=Eek!}}</nowiki> | ||
appears as | appears as | ||
:{{SoundEffect| | :{{SoundEffect|sound=Eek!}} | ||
[[Category:Standardization Templates]]</noinclude> | [[Category:Standardization Templates]]</noinclude> |
Revision as of 18:55, 1 February 2012
[edit]
{{SoundEffect}}
{{#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
- {{SoundEffect|sound=Eek!}}
appears as