Difference between revisions of "Template:IPA-oc"

From blackwiki
Jump to navigation Jump to search
imported>AnPrionsaBeag
(Created page with 'Wikipedia:IPA for Occitan')
 
imported>Kwamikagami
Line 1: Line 1:
[[Wikipedia:IPA for Occitan]]
+
<onlyinclude><small>{{#switch: {{{2}}}|IPA=IPA:&nbsp;|lang=Occitan:&nbsp;|pron=pronounced&nbsp;|=|Occitan pronunciation:&nbsp;}}</small><span title="Pronunciation in IPA" class="IPA">[[WP:IPA for Occitan|[{{{1}}}]]]</span><small>{{#if:{{{3|}}}|&nbsp; {{nowrap|([[File:Speaker Icon.svg|13px|link=|alt=]] [[:Media:{{{3|}}}|listen]])}}}}</small></onlyinclude>
 +
{{pp-template|small=yes}}
 +
 
 +
==Usage==
 +
This template formats IPA transcriptions and links them to [[WP:IPA for Occitan]]. 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 ''Occitan pronunciation:'' appears:
 +
*<code><nowiki>{{IPA-oc|tu}}</nowiki></code> → {{IPA-oc|tu}}
 +
*<code><nowiki>{{IPA-oc|tu|pron}}</nowiki></code> → {{IPA-oc|tu|pron}}
 +
*<code><nowiki>{{IPA-oc|tu|lang}}</nowiki></code> → {{IPA-oc|tu|lang}}
 +
*<code><nowiki>{{IPA-oc|tu|IPA}}</nowiki></code> → {{IPA-oc|tu|IPA}}
 +
*<code><nowiki>{{IPA-oc|tu|}}</nowiki></code> → {{IPA-oc|tu|}}
 +
 
 +
Any of these may be combined with a sound file in an optional third cell:
 +
*<code><nowiki>{{IPA-oc|tu|IPA|Tú.ogg}}</nowiki></code> → {{IPA-oc|tu|IPA|Tú.ogg}}
 +
 
 +
For the default lede, however, a placeholder such as ‹-› is required in the second cell:
 +
*<code><nowiki>{{IPA-oc|tu|-|Tú.ogg}}</nowiki></code> → {{IPA-oc|tu|-|Tú.ogg}}
 +
 
 +
{{usage of IPA templates}}
 +
 
 +
<!-- PLEASE ADD CATEGORIES BELOW THIS LINE, THANKS. -->
 +
 
 +
[[Category:IPA templates|{{PAGENAME}}]]
 +
 
 +
<!-- PLEASE ADD INTERWIKIS BELOW THIS LINE, THANKS. -->

Revision as of 07:29, 22 May 2010

Occitan pronunciation: [{{{1}}}]

Usage

This template formats IPA transcriptions and links them to WP:IPA for Occitan. 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 Occitan pronunciation: appears:

  • {{IPA-oc|tu}}Occitan pronunciation: [tu]
  • {{IPA-oc|tu|pron}}pronounced [tu]
  • {{IPA-oc|tu|lang}}Occitan: [tu]
  • {{IPA-oc|tu|IPA}}IPA: [tu]
  • {{IPA-oc|tu|}}[tu]

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

  • {{IPA-oc|tu|IPA|Tú.ogg}}IPA: [tu]  ( listen)

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

  • {{IPA-oc|tu|-|Tú.ogg}}Occitan pronunciation: [tu]  ( listen)

Template:Usage of IPA templates