Difference between revisions of "Template:IPA-en/sandbox"
imported>Kwamikagami m (split off sound to subtemplate, replaced: <small>{{#if:{{{3|}}}| {{nowrap|(13px|link=File:{{{3|}}}|alt= [[:Media:{{{3|}}}|listen]])}}}}</small> → {{#if:{{{3|}}}|{{IPA audio link|{{{3}}} }} using AWB) |
|||
| Line 1: | Line 1: | ||
| − | <onlyinclude><small>{{#switch: {{{2}}}|IPA=IPA: |lang=English: |pron=pronounced |UK=UK: |US=US: |local=locally |=|English pronunciation:& | + | <onlyinclude><small>{{#switch: {{{2}}}|IPA=IPA: |lang=English: |pron=pronounced |UK=UK: |US=US: |local=locally |=|English pronunciation: }}</small>{{IPA|[[Help:IPA for English|/{{{1}}}/]]}}{{#if:{{{3|}}}|{{IPA audio link|{{{3}}} }} }}</onlyinclude> |
{{documentation}} | {{documentation}} | ||
Revision as of 00:03, 17 February 2013
English pronunciation: /{{{1}}}/
| This is the template sandbox page for Template:IPA-en (diff). |
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: Expression error: Unrecognized punctuation character "[".{{IPA-en|n|pron}}→ pronounced Expression error: Unrecognized punctuation character "[".{{IPA-en|n|lang}}→ English: Expression error: Unrecognized punctuation character "[".{{IPA-en|n|local}}→ locally Expression error: Unrecognized punctuation character "[".{{IPA-en|n|IPA}}→ IPA: Expression error: Unrecognized punctuation character "[".{{IPA-en|n|UK}}→ UK: Expression error: Unrecognized punctuation character "[".{{IPA-en|n|US}}→ US: Expression error: Unrecognized punctuation character "[".{{IPA-en|n|}}→ Expression error: Unrecognized punctuation character "[".
Any of these may be combined with a sound file in an optional third parameter:
{{IPA-en|n|local|En-us-'n'.ogg}}→ locally Expression error: Unrecognized punctuation character "[".
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:
{{IPA-en|n|-|En-us-'n'.ogg}}→ English pronunciation: Expression error: Unrecognized punctuation character "[".
or the third parameter must be explicitly numbered:
{{IPA-en|n|3=En-us-'n'.ogg}}→ English pronunciation: Expression error: Unrecognized punctuation character "[".
Template:Usage of IPA templates
| 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. |