Difference between revisions of "Template:IPA-fr"

From blackwiki
Jump to navigation Jump to search
imported>Kwamikagami
(nother switch)
imported>Kaldari
(adding support for "attribution=no")
 
(55 intermediate revisions by 23 users not shown)
Line 1: Line 1:
<onlyinclude><small>{{#switch: {{{2}}}|IPA=IPA:|lang=French:|=|French pronunciation:}}</small> <span title="Pronunciation in IPA" class="IPA">[[WP:IPA for French|[{{{1}}}]]]</span></onlyinclude>
+
<onlyinclude><small>{{#if: {{{2|}}}|{{#switch: {{{2}}}|lang=French:&nbsp;|pron=pronounced&nbsp;|IPA=IPA:&nbsp;|local=locally&nbsp;|=|French pronunciation:&nbsp;}}|{{#if: {{{2}}}|French pronunciation:&nbsp;&#8203;}}}}</small>{{IPA|[[Help:IPA/French|[{{{1}}}]]]}}{{#if:{{{3|}}}|{{IPA audio link|{{{3}}}|attribution={{{attribution|}}} }} }}</onlyinclude><noinclude>
{{pp-template|small=yes}}
+
{{documentation}}
 
+
</noinclude>
==Usage==
 
{{usage of IPA templates}}
 
 
 
 
 
 
 
<!-- PLEASE ADD CATEGORIES BELOW THIS LINE, THANKS. -->
 
 
 
[[Category:IPA templates|{{PAGENAME}}]]
 
 
 
<!-- PLEASE ADD INTERWIKIS BELOW THIS LINE, THANKS. -->
 
[[id:Templat:IPA-fr]]
 

Latest revision as of 21:21, 29 October 2020

French pronunciation: ​[{{{1}}}]

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

Usage

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

  • {{IPA-fr|o}}French pronunciation: ​[o]
  • {{IPA-fr|o|pron}}pronounced [o]
  • {{IPA-fr|o|lang}}French: [o]
  • {{IPA-fr|o|IPA}}IPA: [o]
  • {{IPA-fr|o|local}}locally [o]
  • {{IPA-fr|o|}}[o]

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

  • {{IPA-fr|o|IPA|Fr-eau.ogg}}IPA: [o] (Audio file "Fr-eau.ogg" not found)

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

  • {{IPA-fr|o|-|Fr-eau.ogg}}French pronunciation: [o] (Audio file "Fr-eau.ogg" not found)

Template:Usage of IPA templates ur:سانچہ:IPA-fr

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for IPA-fr

Gives IPA pronunciation for French text

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
IPA pronunciation1

The IPA pronunciation of the text

Example
pʁezidɑ̃t‿a mɔʁtje
Linerequired
lede2

controls the lede (label) before the IPA text

Example
-, pron, IPA, local, lang
Lineoptional
sound file3

A sound file for the pronunciation

Example
Fr-eau.ogg
Fileoptional