Difference between revisions of "Template:IPA-es"

From blackwiki
Jump to navigation Jump to search
imported>HJ Mitchell
m (Changed protection level of Template:IPA-es: batch protection of templates on database report per WP:HRT using TW ([edit=autoconfirmed] (indefinite) [move=sysop])
imported>Primefac
m (Changed protection level for "Template:IPA-es": high-risk template with 4000+ transclusions ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)))
 
(13 intermediate revisions by 8 users not shown)
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><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=Spanish:&nbsp;|pron=pronounced&nbsp;|local=locally&nbsp;|am=American Spanish:&nbsp;|=|Spanish pronunciation:&nbsp;}}</small>{{IPA|[[Help:IPA/Spanish|[{{{1}}}]]]}}{{#if:{{{3|}}}|{{IPA audio link|{{{3}}} }} }}</onlyinclude>
{{pp-template|small=yes}}
+
<noinclude>{{documentation}}</noinclude>
 
 
==Usage==
 
This template formats IPA transcriptions and links them to [[WP:IPA for Spanish]]. 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 ''Spanish pronunciation:'' appears:
 
*<code><nowiki>{{IPA-es|tu}}</nowiki></code> → {{IPA-es|tu}}
 
*<code><nowiki>{{IPA-es|tu|pron}}</nowiki></code> → {{IPA-es|tu|pron}}
 
*<code><nowiki>{{IPA-es|tu|lang}}</nowiki></code> → {{IPA-es|tu|lang}}
 
*<code><nowiki>{{IPA-es|tu|IPA}}</nowiki></code> → {{IPA-es|tu|IPA}}
 
*<code><nowiki>{{IPA-es|tu|}}</nowiki></code> → {{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> → {{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> → {{IPA-es|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. -->
 

Latest revision as of 16:29, 23 February 2018

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}}American Spanish: [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