Difference between revisions of "Template:IPAlink"

From Chevy Wiki
Jump to navigation Jump to search
m (1 revision)
 
m (1 revision)
 
Line 1: Line 1:
<includeonly><span class="IPA" style="white-space:nowrap">[[Wikipedia:IPA {{#switch:{{{1}}}|en=for English|fr=for French|de=for German|he=for Hebrew|ga=for Irish|it=for Italian|ko=for Korean|pl=for Polish|ru=for Russian|es=for Spanish}}|{{#switch:{{{2}}}|[-|[]|[]AUD=[|/-|//|//AUD=/|--|-]|-/|-]AUD|-/AUD=|{{#switch:{{{1}}}|en=/|[}}}}{{#switch:{{{2|}}}|[-|-]|[]|/-|-/|//|--|-]AUD|[]AUD|-/AUD|//AUD|AUD=|{{pho|{{{1}}}|{{{2}}}}}}}{{#if:{{{3|}}}|{{#switch:{{{2|}}}|-]AUD|[]AUD|-/AUD|//AUD|AUD=|{{pho|{{{1}}}|{{{3}}}}}}}}}{{#if:{{{4|}}}|{{pho|{{{1}}}|{{{4}}}}}}}{{#if:{{{5|}}}|{{pho|{{{1}}}|{{{5}}}}}}}{{#if:{{{6|}}}|{{pho|{{{1}}}|{{{6}}}}}}}{{#if:{{{7|}}}|{{pho|{{{1}}}|{{{7}}}}}}}{{#if:{{{8|}}}|{{pho|{{{1}}}|{{{8}}}}}}}{{#if:{{{9|}}}|{{pho|{{{1}}}|{{{9}}}}}}}{{#if:{{{10|}}}|{{pho|{{{1}}}|{{{10}}}}}}}{{#if:{{{11|}}}|{{pho|{{{1}}}|{{{11}}}}}}}{{#if:{{{12|}}}|{{pho|{{{1}}}|{{{12}}}}}}}{{#if:{{{13|}}}|{{pho|{{{1}}}|{{{13}}}}}}}{{#if:{{{14|}}}|{{pho|{{{1}}}|{{{14}}}}}}}{{#if:{{{15|}}}|{{pho|{{{1}}}|{{{15}}}}}}}{{#if:{{{16|}}}|{{pho|{{{1}}}|{{{16}}}}}}}{{#if:{{{17|}}}|{{pho|{{{1}}}|{{{17}}}}}}}{{#if:{{{18|}}}|{{pho|{{{1}}}|{{{18}}}}}}}{{#if:{{{19|}}}|{{pho|{{{1}}}|{{{19}}}}}}}{{#if:{{{20|}}}|{{pho|{{{1}}}|{{{20}}}}}}}{{#if:{{{21|}}}|{{pho|{{{1}}}|{{{21}}}}}}}{{#if:{{{22|}}}|{{pho|{{{1}}}|{{{22}}}}}}}{{#if:{{{23|}}}|{{pho|{{{1}}}|{{{23}}}}}}}{{#if:{{{24|}}}|{{pho|{{{1}}}|{{{24}}}}}}}{{#if:{{{25|}}}|{{pho|{{{1}}}|{{{25}}}}}}}{{#if:{{{26|}}}|{{pho|{{{1}}}|{{{26}}}}}}}{{#if:{{{27|}}}|{{pho|{{{1}}}|{{{27}}}}}}}{{#if:{{{28|}}}|{{pho|{{{1}}}|{{{28}}}}}}}{{#if:{{{29|}}}|{{pho|{{{1}}}|{{{29}}}}}}}{{#if:{{{30|}}}|{{pho|{{{1}}}|{{{30}}}}}}}{{#switch:{{{2}}}|-]|[]|-]AUD|[]AUD=]|-/|//|\/AUD|//AUD=/|--|[-|/-=|{{#switch:{{{1}}}|en=/|]}}}}]]</span>{{#switch:{{{2}}}|-]AUD|[]AUD|-/AUD|//AUD|AUD=<small> ([[Image:Ltspkr.png|link=:Media:{{{3}}}]] [[:Media:{{{3}}}|listen]])</small>}}</includeonly><noinclude>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.
<span title="Pronunciation in IPA" class="IPA">[[Wikipedia:IPA|[{{{1}}}]]]</span><noinclude>


===Parameters===
==Usage==
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.
{{usage of IPA templates}}
 
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===
<tt><nowiki>{{IPAr|pl|'|w|r|o|c|ł|a|f}}</nowiki></tt> produces {{IPAr|pl|'|w|r|o|c|ł|a|f}} (wikilinked to [[WP:IPA for Polish]])
 
<tt><nowiki>{{IPAr|pl|AUD|Wroclaw.ogg|'|w|r|o|c|ł|a|f}}</nowiki></tt> produces {{IPAr|pl|AUD|Wroclaw.ogg|'|w|r|o|c|ł|a|f}}
 
''(incorrect use)'' <tt><nowiki>{{IPAr|en|'|v|r|o|t|s|w|a|f}}</nowiki></tt> produces {{IPAr|en|'|v|r|o|t|s|w|a|f}} (no respelling currently defined for English)
 
<tt><nowiki>{{IPAr|en|'vrɒtswaːf}}</nowiki></tt> produces {{IPAr|en|'vrɒtswaːf}}
 
<tt><nowiki>{{IPAr|xx|,|vrɔtswaf|-|'|mjasto}}</nowiki></tt> produces {{IPAr|xx|,|vrɔtswaf|-|'|mjasto}} (linked to [[WP:IPA]] because language not recognized)
 
==See also==
[[Template:Usage of IPA templates|Information on other IPA templates]]
 
[[Category:IPA templates|IPA-]]
</noinclude>
</noinclude>

Latest revision as of 14:55, 3 February 2009

[{{{1}}}]

Usage

Wikipedia:IPA
Wikipedia:IPA for Arabic
Wikipedia:IPA for Armenian
Wikipedia:IPA for Czech
Wikipedia:IPA for English
Wikipedia:IPA for French
Wikipedia:IPA for German
Wikipedia:IPA for Hebrew
Wikipedia:IPA for Hungarian
Wikipedia:IPA for Irish
Wikipedia:IPA for Italian
Wikipedia:IPA for Korean
Wikipedia:IPA for Polish
Wikipedia:IPA for Russian
Wikipedia:IPA for Spanish

Wikipedia offers several templates for proper display of IPA transcriptions.

In general, instances of the IPA on a page should be enclosed in the {{IPA}} template, which formats the text in an IPA-compatible font. If a substantial portion of a page is in the IPA, it is customary to post notice of that fact with {{IPA notice|lang=en}}, though each token still requires the {{IPA}} template for proper formatting.

However, if there are not enough occurrences to warrant a notice, then consider a template that links to an IPA key for the first instance of the IPA on a page or section:

  • for English words, in a broad, non-regional transcription, as when giving the pronunciation of a key word in an article, use templates linking to Help:IPA for English, a chart of the subset of the IPA that is relevant to English:
  • for foreign words that are not assimilated into English, regional pronunciations of English words, and non-standard English dialects, use templates linking to the more general Help:IPA chart, containing all major IPA symbols:
  • for Australian English pronunciation specifically, use:

For IPA keys dedicated to a specific language in broad transcription, there are:

  • for Armenian:
    • {{IPA-hy}}, appearing as: Armenian pronunciation: [word]
  • for Czech:
    • {{IPA-cs}}, appearing as: Czech pronunciation: [word]
  • for French:
    • {{IPA-fr}}, appearing as: French pronunciation: [word]
  • for German:
    • {{IPA-de}}, appearing as: German pronunciation: [word]
  • for Hebrew:
    • {{IPA-he}}, appearing as: Hebrew IPA: [word], or
    • {{IPA-he-small}}, appearing as: IPA: [word]
  • for Hungarian:
    • {{IPA-hu}}, appearing as: Hungarian pronunciation: [word]
(though {{IPAr|hu|...}} is preferred)
  • for Irish:
  • for Italian:
    • {{IPA-it}}, appearing as: Italian pronunciation: [word]
  • for Korean:
    • {{IPA-ko}}, appearing as: Korean pronunciation: [word]
  • for Polish:
(though {{IPAr|pl|...}} is preferred)
  • for Russian:
    • {{IPA-ru}}, appearing as: Russian pronunciation: [word]
  • for Spanish:
    • {{IPA-es}}, appearing as: Spanish pronunciation: [word]

The template {{IPAr}} can be used to generate a properly linked transcription for any language, with optional soundfile, and (currently for Polish only) offers the ability to enter ordinary letters for conversion to phonetic symbols. See the template page for usage.

Note

The older inconsistently named (though still operational) templates {{IPA2}}, {{IPAEng}}, and {{pronEng}} are deprecated, and are to be no longer used.

See also

  • Category:IPA templates
  • {{IPA}}
  • {{respell}}, for pronunciation respellings, which may be used for English words in addition to the IPA