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



YumeWiki
3,094Articles

Template:Audio: Difference between revisions

(audio template import from yume nikki wikia)
 
(title defaults to filename if empty)
 
(4 intermediate revisions by the same user not shown)
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=""><div id="musicplayer" class="musicplayer" style="border:solid #000000 1px; margin:auto; margin-{{{align|center}}}:unset; 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>'''{{#if: {{{title|}}} | {{{title}}} | {{{filename}}} }}'''</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>
}}
{{documentation}}
}}</div>
[[Category:Formatting templates]]
</div>{{#ifeq:{{lc:{{{align}}}}}|left|}}</includeonly>
</noinclude>
<noinclude>{{documentation}}</noinclude>

Latest revision as of 20:53, 19 May 2024


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?)