Template:Audio: Difference between revisions
(Created) |
mNo edit summary |
||
(13 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{| class="wikitable" style="{{{style|}}}; float: {{{float|none}}};" | <includeonly>{| class="wikitable {{class|}}" style="{{#IF: {{{file|}}|width:305px|width:255px}}; {{{style|}}}; float: {{{float|none}}};" | ||
!colspan=2|{{{title|{{{2|Audio File}}}}}} | !colspan=2 style="color:black;"|{{{title|{{{2|Audio File}}}}}} | ||
{{#IF: {{{image|}}} | {{!}}- | |||
{{!}} colspan=2 style="text-align:center" {{!}} [[File:{{{image}}}|{{#IF: {{{file|}}|300px|250px}}|link={{link|}}]] |}} | |||
|- | |- | ||
|colspan=2|{{ #IF: {{{yt|{{{1|}}} }}} | {{YoutubeAudio|{{{yt|{{{1|6Lj5C7plSR4}}}}}}}} | {{ #IF: {{{file|}}} |[[File:{{{file}}} | |colspan=2 align="center" style="align:center;"|{{ #IF: {{{yt|{{{1|}}} }}} | {{YoutubeAudio|{{{yt|{{{1|6Lj5C7plSR4}}}}}}}} | {{ #IF: {{{file|}}} | [[File:{{{file}}}]] | Error: No input specified }} }} | ||
|- | |- | ||
{{#IF: {{{caption|{{{3|}}} }}} | {{!}} {{#IF: {{{author|{{{4|}}}}}}||colspan=2{{!}}}} {{{caption|{{{3|caption goes here}}}}}} }} | {{#IF: {{{caption|{{{3|}}} }}} | {{!}} {{#IF: {{{author|{{{4|}}}}}}||colspan=2{{!}}}} {{{caption|{{{3|caption goes here}}}}}} }} | ||
{{#IF: {{{author|{{{4|}}}}}} | {{!}} {{#IF: {{{caption|{{{3|}}}}}}||colspan=2{{!}}}} '''{{{authortitle|Author}}}:''' {{{author|{{{4|author goes here}}}}}} }} | {{#IF: {{{author|{{{4|}}}}}} | {{!}} {{#IF: {{{caption|{{{3|}}}}}}||colspan=2{{!}}}} '''{{{authortitle|Author}}}:''' {{{author|{{{4|author goes here}}}}}} }} | ||
|}</includeonly><noinclude>{{doc}}</noinclude> | |}</includeonly><noinclude>{{doc}}</noinclude> |
Latest revision as of 17:42, 23 April 2012
- This documentation is imported from Template:Audio/doc
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 | GTA 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 = GTAIV-Boxart.jpg| caption = Theme from [[Grand Theft Auto IV|GTA IV]] | author = [[Michael Hunter]] | authortitle = Author | float=right | style=background-color:black; color:white; }} |
|