Difference between revisions of "Template:IPA-en"
imported>Nardog |
imported>Nardog (for compatibility with {{IPAc-en}}) |
||
| Line 1: | Line 1: | ||
| − | <onlyinclude><small>{{#switch: {{{2}}}|IPA=IPA: |lang=English: |pron=pronounced |UK=UK: |US=US: |local=locally |=|English pronunciation: }}</small>{{nowrap|{{IPA|[[Help:IPA/English|/{{{1}}}/]]}}}}{{#if:{{{3|}}}|{{IPA audio link|{{{3}}} }} }}</onlyinclude> | + | <onlyinclude><small>{{#switch: {{{2}}}|IPA=IPA: |lang=English: |pron=pronounced |uk|UK=UK: |us|US=US: |local=locally |=|English pronunciation: }}</small>{{nowrap|{{IPA|[[Help:IPA/English|/{{{1}}}/]]}}}}{{#if:{{{3|}}}|{{IPA audio link|{{{3}}} }} }}</onlyinclude> |
{{documentation}} | {{documentation}} | ||
Revision as of 15:45, 14 January 2018
English pronunciation: /{{{1}}}/
Note: Per WP:LEAD, do not use this template in the lead section for common English words (like pub, rose, pencil, bus, Monday, Earth, etc.).
Usage
This template formats IPA transcriptions and links them to Help:IPA/English. The transcription should match the conventions of that key; for narrower dialect transcriptions, use {{IPA-endia}} or {{IPA-all}}, which links to a more complete IPA key.
The first parameter in the template is for the transcription, and a second optional parameter is a switch that controls the wording introducing the transcription. With no second value, the introduction English pronunciation: appears:
{{IPA-en|n}}→ English pronunciation: /n/{{IPA-en|n|pron}}→ pronounced /n/{{IPA-en|n|lang}}→ English: /n/{{IPA-en|n|local}}→ locally /n/{{IPA-en|n|IPA}}→ IPA: /n/{{IPA-en|n|UK}}→ UK: /n/{{IPA-en|n|US}}→ US: /n/{{IPA-en|n|}}→ /n/
Any of these may be combined with a sound file in an optional third parameter:
To use the default introductory wording when a third parameter is used, a placeholder such as ‹-› (something that does not match any of the above switches) is required in the second parameter:
or the third parameter must be explicitly numbered:
Template:Usage of IPA templates
bg:Шаблон:IPA-en bn:টেমপ্লেট:IPA-en pt:Predefinição:IPA-en simple:Template:IPA-en sq:Stampa:IPA-en th:แม่แบบ:IPA-en
| The above documentation is transcluded from Template:IPA-en/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |