Template:MP3: Difference between revisions

From Cvillepedia
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
<includeonly>
<includeonly>
{{#tag:mp3player
{{#tag:Play audio
|{{{url}}}
|{{{url}}}
}}
}}
{{#if:{{{source|}}}|<br> [{{{source|}}} ''Source website'']|}}</includeonly>
{{#if:{{{source|}}}|<br> [{{{source|}}} ''Source website'']|}}</includeonly>
<noinclude>{{MP3/doc}}</noinclude>
<noinclude>{{MP3/doc}}</noinclude>

Latest revision as of 12:12, 14 July 2019

Usage

Allows an MP3 audio file to be embedded in an article with a media player. The file does not have to reside on the wiki.

Usage

Use to cite references that appear on the web.

Parameters

Required

  • url - can be on external site or local to wiki (e.g. 'File:filename')

Optional

  • source - allows readers to find an external source for the audio which may include additional information about the program (e.g. timeline)

Examples

Media player for external MP3 file:

{{MP3
|url=http://cvilletomorrow.typepad.com/files/20090909-slutzky-interview.mp3
|source=http://cvilletomorrow.typepad.com/charlottesville_tomorrow_/2009/09/slutzky.html
}}

Results in:

<play audio>http://cvilletomorrow.typepad.com/files/20090909-slutzky-interview.mp3 </play audio>
Source website


Media player for LOCAL MP3 file:

{{MP3|url=File:20090901-cummings-interview.mp3}}

Results in:

<play audio>File:20090901-cummings-interview.mp3 </play audio>


See also