Difference between revisions of "Template:IPA-ht"

From blackwiki
Jump to navigation Jump to search
imported>Xyzzyva
(created Haitian Creole IPA template)
 
imported>Nardog
m (→‎top: fixing links to IPA key pages using AWB)
 
(8 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<onlyinclude><small>{{#if: {{{2|}}}|{{#switch: {{{2}}}|lang=Haitian Creole:&nbsp;|pron=pronounced:&nbsp;|IPA=IPA:&nbsp;|=|Haitian Creole pronunciation:&nbsp;}}|{{#if: {{{2}}}|Haitian Creole pronunciation:&nbsp;}}}}</small><span title="Pronunciation in IPA" class="IPA">[[WP:IPA for Haitian Creole|[{{{1}}}]]]</span><small>{{#if:{{{3|}}}|&nbsp; {{nowrap|([[File:Speaker Icon.svg|13px|link=|alt=]] [[:Media:{{{3|}}}|listen]])}}}}</small></onlyinclude>
+
<onlyinclude><small>{{#if: {{{2|}}}|{{#switch: {{{2}}}|lang=Haitian Creole:&nbsp;|pron=pronounced&nbsp;|IPA=IPA:&nbsp;|=|Haitian Creole pronunciation:&nbsp;}}|{{#if: {{{2}}}|Haitian Creole pronunciation:&nbsp;}}}}</small>{{IPA|[[Help:IPA/Haitian Creole|[{{{1}}}]]]}}{{#if:{{{3|}}}|{{IPA audio link|{{{3}}} }} }}</onlyinclude>
{{pp-template|small=yes}}
+
<noinclude>{{documentation}}</noinclude>
 
 
==Usage==
 
This template formats IPA transcriptions and links them to [[WP:IPA for Haitian Creole]]. The transcription should match the conventions of that key; for narrower dialect transcriptions, use {{tl|IPA-all}}, which links to a more complete IPA key.
 
 
 
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 ''Haitian Creole pronunciation:'' appears:
 
*<code><nowiki>{{IPA-ht|o}}</nowiki></code> → {{IPA-ht|o}}
 
*<code><nowiki>{{IPA-ht|o|pron}}</nowiki></code> → {{IPA-ht|o|pron}}
 
*<code><nowiki>{{IPA-ht|o|lang}}</nowiki></code> → {{IPA-ht|o|lang}}
 
*<code><nowiki>{{IPA-ht|o|IPA}}</nowiki></code> → {{IPA-ht|o|IPA}}
 
*<code><nowiki>{{IPA-ht|o|}}</nowiki></code> → {{IPA-ht|o|}}
 
 
 
Any of these may be combined with a sound file in an optional third cell:
 
*<code><nowiki>{{IPA-ht|o|IPA|Fr-eau.ogg}}</nowiki></code> → {{IPA-ht|o|IPA|Fr-eau.ogg}}
 
 
 
For the default lede, however, the placeholder ‹-› is required in the second cell:
 
*<code><nowiki>{{IPA-ht|o|-|Fr-eau.ogg}}</nowiki></code> → {{IPA-ht|o|-|Fr-eau.ogg}}
 
 
 
{{usage of IPA templates}}
 
 
 
 
 
 
 
<!-- PLEASE ADD CATEGORIES BELOW THIS LINE, THANKS. -->
 
 
 
[[Category:IPA templates|{{PAGENAME}}]]
 
 
 
<!-- PLEASE ADD INTERWIKIS BELOW THIS LINE, THANKS. -->
 
[[id:Templat:IPA-ht]]
 

Latest revision as of 15:35, 5 August 2017

Haitian Creole pronunciation: [{{{1}}}]

Template documentation[view] [edit] [history] [purge]

Usage

This template formats IPA transcriptions and links them to Help:IPA/Haitian Creole. The transcription should match the conventions of that key; for narrower dialect transcriptions, use {{IPA-all}}, which links to a more complete IPA key.

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 Haitian Creole pronunciation: appears:

  • {{IPA-ht|o}}Haitian Creole pronunciation: [o]
  • {{IPA-ht|o|pron}}pronounced [o]
  • {{IPA-ht|o|lang}}Haitian Creole: [o]
  • {{IPA-ht|o|IPA}}IPA: [o]
  • {{IPA-ht|o|}}[o]

Any of these may be combined with a sound file in an optional third cell:

  • {{IPA-ht|o|IPA|Fr-eau.ogg}}IPA: [o] (About this soundlisten)

For the default lede, however, the placeholder ‹-› is required in the second cell:

  • {{IPA-ht|o|-|Fr-eau.ogg}}Haitian Creole pronunciation: [o] (About this soundlisten)

Template:Usage of IPA templates

ja:Template:IPA-ht