Template:Listen/doc

This is the current revision of this page, as edited by K6ka (talk | contribs) at 02:46, 25 February 2019 (1 revision imported: Import from https://sims.wikia.com). The present address (URL) is a permanent link to this version.
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Description
This template can be placed next to terms that may be difficult to pronounce. It should contain a link to an audio file of the correct pronunciation.
Usage
This template has one mandatory parameter, and that is the name of the audio file, including the "File:" namespace prefix, excluding the square brackets. For example:

{{Listen|File:En us Derek Vijayakar.ogg}}

Produces:

( Listen)

There is one optional parameter, which is the direct URL to the file itself, skipping the intermediary of the file page.
To find this URL, go to the file page and click the raw name of the file just under the audio file player. Only the OGG file should be visible on screen. Copy and paste the URL of that page into the parameter "url". You may remove the "?cb=<numbers here>" part of the URL, since it is not needed.
For example:

{{Listen|File:En us Derek Vijayakar.ogg|url=http://vignette4.wikia.nocookie.net/sims/images/d/df/En_us_Derek_Vijayakar.ogg/revision/latest}}

Produces:

( Listen)