Template:IPA-all: Difference between revisions
Jump to navigation
Jump to search
m (51 revisions) |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude><small>{{#if: {{{2|}}}|{{#switch: {{{2}}}|local=local pronunciation: |IPA=IPA: |lang=locally: |pron=pronounced |{{{2}}} }}|{{#if: {{{2}}}|IPA: }}}}</small>{{IPA|[[Help:IPA|[{{{1}}}]]]}}{{#if:{{{3|}}}|{{IPA audio link|{{{3}}} }} }}</onlyinclude><noinclude> | <onlyinclude><small>{{#if: {{{2|}}}|{{#switch: {{{2}}}|local=local pronunciation: |IPA=IPA: |lang=locally: |pron=pronounced |{{{2}}} }}|{{#if: {{{2}}}|IPA: }}}}</small>{{IPA|[[Help:IPA|[{{{1}}}]]]}}{{#if:{{{3|}}}|{{IPA audio link|{{{3}}} }} }}</onlyinclude><noinclude> | ||
{{ | {{IPA-all/doc}} [[Category:IPA]][[Category:IPA templates]][[Category:Templates]]</noinclude> | ||
</noinclude> |
Latest revision as of 14:56, 1 March 2014
IPA: [{{{1}}}]
Usage
This template formats IPA transcriptions and links them to Wikipedia:IPA, a general IPA key. It is intended for languages without specific support, and for narrow transcriptions of languages that do. See below for specific templates.
The first cell in the template is for the transcription, and a second optional cell is a switch that controls the lede. With no second value, the lede IPA: appears:
{{IPA-all|a}}
→ IPA: [a]{{IPA-all|a|pron}}
→ pronounced [a]{{IPA-all|a|local}}
→ local pronunciation: [a]{{IPA-all|a|}}
→ [a]
Language names may be entered as well; in this case, the colon is required:
{{IPA-all|a|Dutch:}}
→ Dutch: [a]
Any of these may be combined with a sound file in an optional third cell:
{{IPA-all|a|local|Nl-A.ogg}}
→ local pronunciation: [a] ( )
To keep the default lede, however, ‹IPA› must be entered in the second cell:
{{IPA-all|a|IPA|Nl-A.ogg}}
→ IPA: [a] ( )
The similar template {{pronunciation}} has no lede switch:
{{pronunciation|Nl-A.ogg}}
→ About this sound pronunciation (help·info)