Difference between revisions of "Template:IPA-oc"

From blackwiki
Jump to navigation Jump to search
imported>Kwamikagami
m (Changed protection level of Template:IPA-oc ([edit=autoconfirmed] (indefinite) [move=sysop] (indefinite)))
imported>WOSlinker
(move docs to subpage)
Line 1: Line 1:
 
<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>
 
<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}}
+
<noinclude>{{documentation}}</noinclude>
 
 
==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|Es-tú.ogg}}</nowiki></code> → {{IPA-oc|tu|IPA|Es-tú.ogg}}
 
 
 
For the default lede, however, a placeholder such as ‹-› is required in the second cell:
 
*<code><nowiki>{{IPA-oc|tu|-|Es-tú.ogg}}</nowiki></code> → {{IPA-oc|tu|-|Es-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 12:17, 5 October 2010

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

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

Usage

This template formats IPA transcriptions and links them to Help:IPA/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|Es-tú.ogg}}IPA: [tu]  ( listen)

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

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

Template:Usage of IPA templates

ja:Template:IPA-oc