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



YumeWiki
2,494Articles

Template:Audio: Difference between revisions

m (loathing)
(change default to center, add category)
Line 1: Line 1:
<includeonly><div style=""><div id="musicplayer" class="musicplayer" style="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>'''{{{title|Audio}}}'''</div>
   <div style="background:#222222;">{{#if:{{{filename|}}}
   <div style="background:#222222;">{{#if:{{{filename|}}}
Line 6: Line 6:
</div></div></div></includeonly>
</div></div></div></includeonly>
<noinclude>
<noinclude>
Normal text
{{documentation}}
{{audio|title=Test right|filename=Nya-.wav|align=right}}
[[Category:Formatting templates]]
Text with thumb image prior
</noinclude>
[[File:YN Big Red.png|thumb|center]]
{{audio|title=Test center|filename=Nya-.wav|align=center}}
An image prior to an aligned one shows up in the box for some reason
[[File:YN Big Red.png|thumb|left]]
{{audio|title=Test left, very long title, thumbnail image directly prior (with same alignment), and no filename specified|filename=|align=left}}
Normal text
{{audio|title=Test default with image inside title[[File:KALIMBA.png|right]]|filename=Nya-.wav}}
{{documentation}}</noinclude>

Revision as of 20:44, 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?)