Difference between revisions of "Template:IPA-all/sandbox"
Jump to navigation
Jump to search
imported>Kwamikagami m (link to sound file page, replaced: link= → link=File:{{{3|}}} using AWB) |
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>{{#if: {{{2|}}}|{{#switch: {{{2}}}|local=local pronunciation: |IPA=IPA: |lang=locally: |pron=pronounced |{{{2}}} }}|{{#if: {{{2}}}|IPA: }}}}</small><span title="Pronunciation in IPA" class="IPA">[[WP:IPA|[{{{1}}}]]]</span | + | <onlyinclude><small>{{#if: {{{2|}}}|{{#switch: {{{2}}}|local=local pronunciation: |IPA=IPA: |lang=locally: |pron=pronounced |{{{2}}} }}|{{#if: {{{2}}}|IPA: }}}}</small><span title="Pronunciation in IPA" class="IPA">[[WP:IPA|[{{{1}}}]]]</span>{{#if:{{{3|}}}|{{IPA audio link|{{{3}}} }} }}</onlyinclude><noinclude> |
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 23:43, 3 June 2011
IPA: [{{{1}}}]
| This is the template sandbox page for Template:IPA-all (diff). |
Usage
This template formats IPA transcriptions and links them to Help: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:
To keep the default lede, however, ‹IPA› must be entered in the second cell:
The similar template {{pronunciation}} has no lede switch:
{{pronunciation|Nl-A.ogg}}→ Template:Pronunciation
Template:Usage of IPA templates
| The above documentation is transcluded from Template:IPA-all/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. |