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



YumeWiki
3,036Articles

Template:Audio: Difference between revisions

m (still hate it)
(title defaults to filename if empty)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div style="clear:both;"><div id="musicplayer" class="musicplayer" style="float:; border:solid #000000 1px; margin:auto; margin-{{{align|right}}}:unset; font-size:80%; background:#404040; color:#CCCCCC; width:300px; overflow:clip; padding:1px; 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>'''{{{title|Audio}}}'''</div>
   <div>'''{{#if: {{{title|}}} | {{{title}}} | {{{filename}}} }}'''</div>
   <div style="background:#222222">{{#if:{{{filename|}}}
   <div style="background:#222222;">{{#if:{{{filename|}}}
|[[File:{{{filename}}}|Upload file]]
|[[File:{{{filename}}}|Upload file]]
|No filename specified}}
|No filename specified}}
</div></div></div></includeonly>
</div></div></div></includeonly>
<noinclude>
<noinclude>
text
{{documentation}}
{{audio|title=Test right|filename=Nya-.wav|align=right}}
[[Category:Formatting templates]]
text
</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>

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