Difference between revisions of "Template:IPA-es"

From blackwiki
Jump to navigation Jump to search
imported>Kwamikagami
imported>Kwamikagami
Line 3: Line 3:
  
 
==Usage==
 
==Usage==
 +
This template formats IPA transcriptions and links them to [[WP:IPA for Spanish]]. The first cell 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:
 +
*<code><nowiki>{{IPA-es|tu}}</nowiki></code> &rarr; {{IPA-es|tu}}
 +
*<code><nowiki>{{IPA-es|tu|pron}}</nowiki></code> &rarr; {{IPA-es|tu|pron}}
 +
*<code><nowiki>{{IPA-es|tu|short}}</nowiki></code> &rarr; {{IPA-es|tu|short}}
 +
*<code><nowiki>{{IPA-es|tu|lang}}</nowiki></code> &rarr; {{IPA-es|tu|lang}}
 +
*<code><nowiki>{{IPA-es|tu|IPA}}</nowiki></code> &rarr; {{IPA-es|tu|IPA}}
 +
*<code><nowiki>{{IPA-es|tu|}}</nowiki></code> &rarr; {{IPA-es|tu|}}
 +
 +
Any of these may be combined with a sound file in an optional third cell:
 +
*<code><nowiki>{{IPA-es|tu|IPA|Tú.ogg}}</nowiki></code> &rarr; {{IPA-es|tu|IPA|Tú.ogg}}
 +
 +
For the default lede, however, a placeholder such as ‹-› is required in the second cell:
 +
*<code><nowiki>{{IPA-es|tu|-|Tú.ogg}}</nowiki></code> &rarr; {{IPA-es|tu|-|Tú.ogg}}
 +
 
{{usage of IPA templates}}
 
{{usage of IPA templates}}
  

Revision as of 15:42, 21 May 2009

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

Usage

This template formats IPA transcriptions and links them to WP:IPA for Spanish. The first cell 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|short}}Spanish IPA: [tu]
  • {{IPA-es|tu|lang}}Spanish: [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|Tú.ogg}}IPA: [tu]  (Speaker Icon.svg listen)

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

  • {{IPA-es|tu|-|Tú.ogg}}Spanish pronunciation: [tu]  (Speaker Icon.svg listen)

Template:Usage of IPA templates