Template:Audio/doc: Difference between revisions
(New Page: "This template shows an audio file (either from a Youtube video or an uploaded OGG file) within a prepared table, showing a title, caption and author. ===Basic Usage=== {|class=wiki...") |
mNo edit summary |
||
Line 17: | Line 17: | ||
| | | | ||
<pre> | <pre> | ||
{{audio | file= File Name | | {{audio | file= File Name | caption=Caption }} | ||
{{audio | file=GTAIV-Theme.ogg | | {{audio | file=GTAIV-Theme.ogg | caption=GTA IV Theme }} | ||
</pre> | </pre> | ||
{{audio | file=GTAIV-Theme.ogg | | {{audio | file=GTAIV-Theme.ogg | caption=GTA IV Theme }} | ||
|} | |} | ||
Line 31: | Line 31: | ||
<pre> | <pre> | ||
yt = Youtube Video ID | yt = Youtube Video ID | ||
file = OGG file upload (eg: audio.ogg) | file = OGG file upload (eg: audio.ogg) (be careful not to leave a space after) | ||
title = Title | title = Title | ||
image= Image name only (eg: Image.jpg) | image= Image name only (eg: Image.jpg) |
Revision as of 17:33, 23 April 2012
This template shows an audio file (either from a Youtube video or an uploaded OGG file) within a prepared table, showing a title, caption and author.
Basic Usage
Youtube video | OGG File | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
{{audio | Youtube Video ID | Title }} {{audio | 5p1vacn3KcE | Vice City Theme }}
|
{{audio | file= File Name | caption=Caption }} {{audio | file=GTAIV-Theme.ogg | caption=GTA IV Theme }}
|
Advanced variables
yt = Youtube Video ID file = OGG file upload (eg: audio.ogg) (be careful not to leave a space after) title = Title image= Image name only (eg: Image.jpg) link= Page for image to link to (eg: GTA IV) caption = Caption to go below the video author = Author or source authortitle = Bold caption before the author's name (default: "Author", could use "Source" etc) float = left/right/none (default: none) style = Advanced CSS to apply to the table itself
{{audio | jqE8M2ZnFL8 | title = GTA IV Theme | image = Iv_boxart.jpg| caption = Theme from [[GTA IV]] | author = [[Rockstar Games]] | authortitle = Source | float=right | style=background-color:black; color:white; }} |
|