Template:IPAlink

From Chevy Wiki
Revision as of 14:43, 2 February 2009 by Budlight (talk | contribs) (1 revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This template is used to produce a phonetic or phonemic representation (using the IPA system), which is linked to a page that explains the symbols used. Optionally, an audio file can be specified. For some languages (currently only Polish), natural spelling can be used to avoid the need to search for the correct phonetic symbol.

Parameters

The first parameter (required) is the two-letter code for the language (en, fr, de, etc.) If the language is unknown or unspecific, use any non-existent code, such as xx.

The second parameter can be used to define what delimiters are to be used, and whether an audio file is available. Possible values are: // (slashes, for phonemic representation), //AUD, /- (slash before but not after), -/, -/AUD, [] (square brackets, for phonetic representation), []AUD, [-, -], -]AUD, -- (no delimiters), AUD (default delimiters with audio). (The missing delimiter options are used if several instances of the template have to be strung together due to the limited number of parameters.) If any other value is used for the second parameter, then the default delimiters are used (// for English, otherwise []) and it is treated as the first of the trailing parameters (see below).

The third parameter is the name of the audio file, if one of the AUD options was defined in the second parameter. Otherwise it is treated as a trailing parameter.

Trailing parameters (fourth and subsequent, or second or third and subsequent if they do not have the special meanings defined above) contain elements of the phonetic transcription. These may be IPA symbols or groups of them; however, if a parameter has one of the respelling values for the selected language (see below), then it will be automatically converted to the corresponding phonetic representation. Note: the total number of parameters is limited to 30; if you need more, string together instances of the template.

At present, respelling values are defined only for Polish (pl). For example, the parameter "ł" will be converted to the symbol w, "h" or "ch" to x, etc.. There are also three general respelling values that work for all languages: an apostrophe converts to a primary stress, a comma converts to a secondary stress mark, and a hyphen converts to a (no-break) space.

Examples

{{IPAr|pl|'|w|r|o|c|ł|a|f}} produces [ˈvrɔt​͡swaf] (wikilinked to WP:IPA for Polish)

{{IPAr|pl|AUD|Wroclaw.ogg|'|w|r|o|c|ł|a|f}} produces [ˈvrɔt​͡swaf] (Ltspkr.png listen)

(incorrect use) {{IPAr|en|'|v|r|o|t|s|w|a|f}} produces /ˈvrotswaf/ (no respelling currently defined for English)

{{IPAr|en|'vrɒtswaːf}} produces /'vrɒtswaːf/

{{IPAr|xx|,|vrɔtswaf|-|'|mjasto}} produces [ˌvrɔtswaf ˈmjasto] (linked to WP:IPA because language not recognized)

See also

Information on other IPA templates