Difference between revisions of "Template:IPAc-es"

From blackwiki
Jump to navigation Jump to search
imported>Gaèlic
imported>Gaèlic
Line 1: Line 1:
<includeonly>{{IPA|[[Help:IPA for Spanish|[{{#if:{{{1|}}}{{{2|}}}|{{c-es|{{{1|}}}|{{{2|}}}}}}}{{#if:{{{3|}}}{{{4|}}}|{{c-es|{{{3|}}}|{{{4|}}}}}}}{{#if:{{{5|}}}{{{6|}}}|{{c-es|{{{5|}}}|{{{6|}}}}}}}{{#if:{{{7|}}}{{{8|}}}|{{c-es|{{{7|}}}|{{{8|}}}}}}}{{#if:{{{9|}}}{{{10|}}}|{{c-es|{{{9|}}}|{{{10|}}}}}}}{{#if:{{{11|}}}{{{12|}}}|{{c-es|{{{11|}}}|{{{12|}}}}}}}{{#if:{{{13|}}}{{{14|}}}|{{c-es|{{{13|}}}|{{{14|}}}}}}}{{#if:{{{15|}}}{{{16|}}}|{{c-es|{{{15|}}}|{{{16|}}}}}}}{{#if:{{{17|}}}{{{18|}}}|{{c-es|{{{17|}}}|{{{18|}}}}}}}{{#if:{{{19|}}}{{{20|}}}|{{c-es|{{{19|}}}|{{{20|}}}}}}}{{#if:{{{21|}}}{{{22|}}}|{{c-es|{{{21|}}}|{{{22|}}}}}}}{{#if:{{{23|}}}{{{24|}}}|{{c-es|{{{23|}}}|{{{24|}}}}}}}{{#if:{{{25|}}}{{{26|}}}|{{c-es|{{{25|}}}|{{{26|}}}}}}}{{#if:{{{27|}}}{{{28|}}}|{{c-es|{{{27|}}}|{{{28|}}}}}}}{{#if:{{{29|}}}{{{30|}}}|{{c-es|{{{29|}}}|{{{30|}}}}}}}{{#if:{{{31|}}}{{{32|}}}|{{c-es|{{{31|}}}|{{{32|}}}}}}}{{#if:{{{33|}}}{{{34|}}}|{{c-es|{{{33|}}}|{{{34|}}}}}}}{{#if:{{{35|}}}{{{36|}}}|{{c-es|{{{35|}}}|{{{36|}}}}}}}{{#if:{{{37|}}}{{{38|}}}|{{c-es|{{{37|}}}|{{{38|}}}}}}}{{#if:{{{39|}}}{{{40|}}}|{{c-es|{{{39|}}}|{{{40|}}}}}}}{{#if:{{{41|}}}{{{42|}}}|{{c-es|{{{41|}}}|{{{42|}}}}}}}{{#if:{{{43|}}}{{{44|}}}|{{c-es|{{{43|}}}|{{{44|}}}}}}}{{#if:{{{45|}}}{{{46|}}}|{{c-es|{{{45|}}}|{{{46|}}}}}}}{{#if:{{{47|}}}{{{48|}}}|{{c-es|{{{47|}}}|{{{48|}}}}}}}{{#if:{{{49|}}}{{{50|}}}|{{c-es|{{{49|}}}|{{{50|}}}}}}}]<nowiki/>]]}}{{#if:{{{audio|}}}|{{IPA audio link|{{{audio|}}}}}}}</includeonly><noinclude>{{documentation}}</noinclude>
+
<includeonly><span class="IPA" style="white-space:nowrap">[[Wikipedia:IPA for Spanish|{{#switch:{{{1}}}|[-|[]|[]AUD=[|/-|//|//AUD=/|--|-]|-/|-]AUD|-/AUD=|[}}{{#switch:{{{1|}}}|[-|-]|[]|/-|-/|//|--|-]AUD|[]AUD|-/AUD|//AUD|AUD=|{{c-es|{{{1}}}|{{{2|}}}}}}}{{#if:{{{2|}}}|{{#switch:{{{1|}}}|-]AUD|[]AUD|-/AUD|//AUD|AUD=|{{c-es|{{{2|}}}|{{{3|}}}}}}}}}{{#if:{{{3|}}}|{{c-es|{{{3}}}|{{{4|}}}}}}}{{#if:{{{4|}}}|{{c-es|{{{4}}}|{{{5|}}}}}}}{{#if:{{{5|}}}|{{c-es|{{{5}}}|{{{6|}}}}}}}{{#if:{{{6|}}}|{{c-es|{{{6}}}|{{{7|}}}}}}}{{#if:{{{7|}}}|{{c-es|{{{7}}}|{{{8|}}}}}}}{{#if:{{{8|}}}|{{c-es|{{{8}}}|{{{9|}}}}}}}{{#if:{{{9|}}}|{{c-es|{{{9}}}|{{{10|}}}}}}}{{#if:{{{10|}}}|{{c-es|{{{10}}}|{{{11|}}}}}}}{{#if:{{{11|}}}|{{c-es|{{{11}}}|{{{12|}}}}}}}{{#if:{{{12|}}}|{{c-es|{{{12}}}|{{{13|}}}}}}}{{#if:{{{13|}}}|{{c-es|{{{13}}}|{{{14|}}}}}}}{{#if:{{{14|}}}|{{c-es|{{{14}}}|{{{15|}}}}}}}{{#if:{{{15|}}}|{{c-es|{{{15}}}|{{{16|}}}}}}}{{#if:{{{16|}}}|{{c-es|{{{16}}}|{{{17|}}}}}}}{{#if:{{{17|}}}|{{c-es|{{{17}}}|{{{18|}}}}}}}{{#if:{{{18|}}}|{{c-es|{{{18}}}|{{{19|}}}}}}}{{#if:{{{19|}}}|{{c-es|{{{19}}}|{{{20|}}}}}}}{{#if:{{{20|}}}|{{c-es|{{{20}}}|{{{21|}}}}}}}{{#if:{{{21|}}}|{{c-es|{{{21}}}|{{{22|}}}}}}}{{#if:{{{22|}}}|{{c-es|{{{22}}}|{{{23|}}}}}}}{{#if:{{{23|}}}|{{c-es|{{{23}}}|{{{24|}}}}}}}{{#if:{{{24|}}}|{{c-es|{{{24}}}|{{{25|}}}}}}}{{#if:{{{25|}}}|{{c-es|{{{25}}}|{{{26|}}}}}}}{{#if:{{{26|}}}|{{c-es|{{{26}}}|{{{27|}}}}}}}{{#if:{{{27|}}}|{{c-es|{{{27}}}|{{{28|}}}}}}}{{#if:{{{28|}}}|{{c-es|{{{28}}}|{{{29|}}}}}}}{{#if:{{{29|}}}|{{c-es|{{{29}}}|{{{30|}}}}}}}{{#if:{{{30|}}}|{{c-es|{{{30}}}|{{{31|}}}}}}}{{#if:{{{31|}}}|{{c-es|{{{31}}}|{{{32|}}}}}}}{{#if:{{{32|}}}|{{c-es|{{{32}}}|{{{33|}}}}}}}{{#if:{{{33|}}}|{{c-es|{{{33}}}|{{{34|}}}}}}}{{#switch:{{{1}}}|-]|[]|-]AUD|[]AUD=]|-/|//|\/AUD|//AUD=/|--|[-|/-=|]}}]]</span>{{#switch:{{{1}}}|-]AUD|[]AUD|-/AUD|//AUD|AUD={{IPA audio link|{{{2}}} }}}}</includeonly><noinclude>
 +
{{documentation}}
 +
</noinclude>

Revision as of 16:11, 11 January 2017

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

Usage

This template is used to display the Spanish International Phonetic Alphabet (IPA). The pronunciation is broken into individual phones so that they will have mouseovers to indicate pronunciation (the complete list is available at {{H:IPAc-es}}). All phones from IPA for Spanish are available. For anything outside that set, a different template should be used.

If [unsupported input] is displayed, it means that an unsupported input or non-existent sound file was used. Such instances are tallied at Category:Ill-formatted IPAc-es transclusions, where they can be reviewed and fixed.

The first two variables can be used to indicate a prescript (e.g., Spanish pronunciation:). All available flags are shown at {{IPAc-es/pronunciation}}. The named parameter |audio= may be used to link to an audio file.

  • {{IPAc-es|e|s|'|p|a|ñ|a}}[[Wikipedia:IPA for Spanish|[[[Help:IPA/Spanish|e]]sˈpaɲa]]]
  • {{IPAc-es|pron|e|s|'|p|a|ñ|a}}[[Wikipedia:IPA for Spanish|[[[Help:IPA/Spanish|[unsupported input]]]esˈpaɲa]]]
  • {{IPAc-es|audio=Es-España.ogg|e|s|'|p|a|ñ|a}}[[Wikipedia:IPA for Spanish|[[[Help:IPA/Spanish|e]]sˈpaɲa]]]
  • {{IPAc-es|pron|audio=Es-España.ogg|e|s|'|p|a|ñ|a}}[[Wikipedia:IPA for Spanish|[[[Help:IPA/Spanish|[unsupported input]]]esˈpaɲa]]]

Use a keyboard underscore _ for a space between words.

There are a maximum of 50 variables.

Behaviour changes from Template:IPA-es

The default behaviour has changed to no prescript.

  • {{IPA-es|esˈpaɲa}}Spanish pronunciation: [esˈpaɲa]
  • {{IPAc-es|e|s|'|p|a|ñ|a}}[[Wikipedia:IPA for Spanish|[[[Help:IPA/Spanish|e]]sˈpaɲa]]]

It can be simulated using the flags lang & pron.

  • {{IPAc-es|lang|pron|e|s|'|p|a|ñ|a}}[[Wikipedia:IPA for Spanish|[[[Help:IPA/Spanish|[unsupported input]]][unsupported input]esˈpaɲa]]]

Audio files are specifically called:

  • {{IPA-es|esˈpaɲa|-|Es-España.ogg}}Spanish pronunciation: [esˈpaɲa] (About this soundlisten)
  • {{IPAc-es|audio=Es-España.ogg|e|s|'|p|a|ñ|a}} or {{IPAc-es|e|s|'|p|a|ñ|a|audio=Es-España.ogg}}[[Wikipedia:IPA for Spanish|[[[Help:IPA/Spanish|e]]sˈpaɲa]]], [[Wikipedia:IPA for Spanish|[[[Help:IPA/Spanish|e]]sˈpaɲa]]]