Protected page

Template:InlineMedia

From Uncyclopedia, the content-free encyclopedia
Jump to navigation Jump to search

(link=Media:UnNews--{{{1}}}.mp3| [[Media:UnNews--{{{1}}}.mp3|listen]])

[edit] [purge] Template-info.svg Template documentation

A template that expands to be an in-line reference to an UnNews Audio. As shown, the reference appears as a speaker graphic and "listen" or caller-specified text. It has been used, to provide an indication that a referenced article also has an audio version, in the following contexts:

  • after an item in {{RecentUnNews}}, when an UnNews is mentioned on the Uncyclopedia home page, and
  • before the Synopsis in lead articles when featuring them on the UnNews Front Page.

Variables

  • 1 - Title of file (required)
  • 2 - Text to display (optional)
  • 3 - replaces 'listen'
  • filetype - Filetype, if other than .mp3. Example: .aac
  • filename - If the filename is something other than the title of the article. This will also exclude the *start "unnews--" part from the filename. This WILL NOT exclude the filetype.

Usage

Common

{{InlineMedia|India unveils prototype of $3 iPad}}

Produces:

(Gnome-speakernotes.png listen)

Alternate title

{{InlineMedia|India unveils prototype of $3 iPad|'''India makes an iPad!'''}}

Produces:

India makes an iPad! (Gnome-speakernotes.png listen)

Files without UnNews-- beginning

Or rather, FAILS without UnNews-- beginning:

{{InlineMedia|India unveils prototype of $3 iPad|'''India makes an iPad!'''|start=}}

This will produce a link for files without the UnNews-- beginning in the filename.