×
Create a new article
Write your page title here:
We currently have 3,037 articles on YumeWiki. Type your article name above or click on one of the titles below and start writing!



YumeWiki
3,037Articles

Template:Audio: Difference between revisions

(audio template import from yume nikki wikia)
 
(i hate html)
Line 1: Line 1:
<includeonly><div id="musicplayer" class="musicplayer" style="clear:{{{align|right}}}; float:{{{align|right}}}; border:solid #000000 1px; margin:0 0 1em 1em; font-size:80%; background:#404040; color:#CCCCCC; width:300px; padding:1px; spacing:0px; text-align:center;">
<includeonly><div style="clear:both;"><div id="musicplayer" class="musicplayer" style="{{{align|right}}}:-38%; position:relative; border:solid #000000 1px; margin:auto; font-size:80%; background:#404040; color:#CCCCCC; width:300px; overflow:clip; padding:1px; text-align:center;">
   <div style="margin-left:0px;">'''{{{title|Title}}}'''</div>
   <div>'''{{{title|Audio}}}'''</div>
   <div style="margin-left:0px;">{{#if:{{{filename|}}}|
   <div style="background:#222222">{{#if:{{{filename|}}}
{{#ifeq:
|[[File:{{{filename}}}|Upload file]]
  {{lc:{{#explode:{{{filename}}}|.|-1}}}}|ogg|
|No filename specified}}
  [[File:{{{filename}}}|noicon]]
</div></div></div></includeonly>
  |<div class="embedMe" id="{{#sub:{{filepath:{{{filename}}}}}|7}}"></div>
<noinclude>
}}
text
}}</div>
{{audio|title=Test right|filename=Nya-.wav|align=right}}
</div>{{#ifeq:{{lc:{{{align}}}}}|left|}}</includeonly>
text
<noinclude>{{documentation}}</noinclude>
{{audio|title=Test center|filename=Nya-.wav|align=center}}
text
{{audio|title=Test left, very long title, and no filename specified|filename=|align=left}}
text
{{audio|title=Test right with image[[File:KALIMBA.png|center]]|filename=Nya-.wav|align=right}}
{{documentation}}</noinclude>

Revision as of 20:26, 29 April 2024


text

text

text

Test left, very long title, and no filename specified
No filename specified

text

Test right with image
KALIMBA.png
Documentation (for the above template, sometimes hidden or invisible)

Normal text

Text with thumb image prior

YN Big Red.png

An image prior to an aligned one shows up in the box for some reason

YN Big Red.png
Test left, very long title, thumbnail image directly prior (with same alignment), and no filename specified
No filename specified

Normal text

Test default with image inside title
KALIMBA.png

No title


Parameters

Template parameters

ParameterDescriptionTypeStatus
titletitle

The title or caption to display with the audio player.

Example
Pink Sea (Original Speed)
Auto value
filename
Stringsuggested
filenamefilename

The filename of the audio file to embed.

Example
BGM_008.ogg
Filerequired
alignalign

Alignment within the page.

Suggested values
left right center
Stringoptional



Visit Template:Audio/doc to edit this text! (How does this work?)