• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Difference between revisions of "Template:Audio"

From Kancolle Wiki
Jump to navigation Jump to search
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#if:{{{file|}}}|
+
<includeonly>{{#if:{{{1|{{{file|}}}}}}|{{#switch:{{lc:{{#explode:{{{1|{{{file|}}}}}}|.|-1}}}}|ogg|mp3=<sm2>{{{1|{{{file|}}}}}}</sm2>|#default={{#sub:{{file:{{{1|{{{file|}}}}}}|7}}}}}}}}</includeonly><noinclude>[[Category:Templates]] [[Category:Audio]]</noinclude>
{{#ifeq:
 
  {{lc:{{#explode:{{{file}}}|.|-1}}}}|ogg|
 
  <sm2>{{{file}}}</sm2>
 
  |{{#sub:{{file:{{{file}}}}}|7}}
 
}}
 
<script>
 
soundManager.setup({
 
defaultOptions: {
 
    // set global default volume for all sound objects
 
    volume: 33
 
  }
 
});
 
</script>
 
}}
 

Latest revision as of 06:23, 22 September 2021