Difference between revisions of "Template:IPA-es"

From blackwiki
Jump to navigation Jump to search
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)
imported>Nuvolet
Line 1: Line 1:
<onlyinclude><small>{{#switch: {{{2}}}|IPA=IPA:&nbsp;|lang=Spanish:&nbsp;|pron=pronounced&nbsp;|local=local pronunciation:&nbsp;|locally=locally:&nbsp;|=|Spanish pronunciation:&nbsp;}}</small><span title="Pronunciation in IPA" class="IPA">[[WP:IPA for Spanish|[{{{1}}}]]]</span>{{#if:{{{3|}}}|{{IPA audio link|{{{3}}} }} }}</onlyinclude>
+
<onlyinclude><small>{{#switch: {{{2}}}|IPA=IPA:&nbsp;|lang=Spanish:&nbsp;|pron=pronounced&nbsp;|local=locally:&nbsp;|=|Spanish pronunciation:&nbsp;}}</small><span title="Pronunciation in IPA" class="IPA">[[WP:IPA for Spanish|[{{{1}}}]]]</span>{{#if:{{{3|}}}|{{IPA audio link|{{{3}}} }} }}</onlyinclude>
 
<noinclude>{{documentation}}</noinclude>
 
<noinclude>{{documentation}}</noinclude>

Revision as of 20:53, 6 November 2011

Spanish pronunciation: [{{{1}}}]

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

Usage

This template formats IPA transcriptions and links them to Help:IPA/Spanish. 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 Spanish pronunciation: appears:

  • {{IPA-es|tu}}Spanish pronunciation: [tu]
  • {{IPA-es|tu|pron}}pronounced [tu]
  • {{IPA-es|tu|lang}}Spanish: [tu]
  • {{IPA-es|tu|am}}Spanish pronunciation: [tu]
  • {{IPA-es|tu|local}}locally: [tu]
  • {{IPA-es|tu|IPA}}IPA: [tu]
  • {{IPA-es|tu|}}[tu]

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

  • {{IPA-es|tu|IPA|Es-tú.ogg}}IPA: [tu] (About this soundlisten)

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

  • {{IPA-es|tu|-|Es-tú.ogg}}Spanish pronunciation: [tu] (About this soundlisten)

Template:Usage of IPA templates