Difference between revisions of "Template:InfoBox UOSound"

m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{UOSoundData}}{{#vardefine: soundId |{{#replace:{{PAGENAME}}|UO:Items that make sound |}} }}{{#vardefine: soundNum |{{#expr: {{#var:soundId}} + 1 }}}}
+
<includeonly>{{UOSoundData}}{{#vardefine: soundId |{{#replace:{{PAGENAME}}|UO:Items that make sound |}} }}{{#vardefine: soundNum |{{#expr: {{#var:soundId}} + 1 }}}}{{#vardefine:soundfile|UO-Sound-{{#var:soundNum}}-1.mp3}}
 
{| class=infobox style="margin-top: 5em;"
 
{| class=infobox style="margin-top: 5em;"
 
|class=titlecell colspan="2"| Sound
 
|class=titlecell colspan="2"| Sound
 
|-
 
|-
|colspan="2" style="text-align:center;"|{{#ifeq:{{#arrayindex:sound{{#var:soundNum}}|0}}|unused|This sound number is not used by the client.|[[File:UO-Sound-{{#var:soundNum}}-1.mp3|File:UO-Sound-{{#var:soundNum}}-1.mp3]]
+
|colspan="2" style="text-align:center;"|{{#ifeq:{{#arrayindex:sound{{#var:soundNum}}|0}}|unused|This sound number is not used by the client.|[[File:{{#var:soundfile}}|File:{{#var:soundfile}}]]
 
{{!}}-
 
{{!}}-
 
{{!}}&nbsp;
 
{{!}}&nbsp;

Latest revision as of 01:39, 22 June 2020