Difference between revisions of "Template:IPAc-fr/doc"

From blackwiki
Jump to navigation Jump to search
imported>Nardog
m (Reverted 1 edit by 192.197.245.144 (talk) to last revision by Nardog)
imported>Jonesey95
m (Fix Linter errors using AutoEd)
 
(One intermediate revision by one other user not shown)
Line 8: Line 8:
  
 
Normal usage:
 
Normal usage:
*<tt><nowiki>{{IPAc-fr|f|r|an|s|ai}}</nowiki></tt> produces {{IPAc-fr|f|r|an|s|ai}}
+
*<code><nowiki>{{IPAc-fr|f|r|an|s|ai}}</nowiki></code> produces {{IPAc-fr|f|r|an|s|ai}}
*<tt><nowiki>{{IPAc-fr|ch|e|-|m|E|s_|a|m|i}}</nowiki></tt> produces {{IPAc-fr|ch|e|-|m|E|s_|a|m|i}}
+
*<code><nowiki>{{IPAc-fr|ch|e|-|m|E|s_|a|m|i}}</nowiki></code> produces {{IPAc-fr|ch|e|-|m|E|s_|a|m|i}}
  
 
With an audio file:
 
With an audio file:
*<tt><nowiki>{{IPAc-fr|qu|e|b|E|c|audio=FR-Québec.ogg}}</nowiki></tt> produces {{IPAc-fr|qu|e|b|E|c|audio=FR-Québec.ogg}}
+
*<code><nowiki>{{IPAc-fr|qu|e|b|E|c|audio=FR-Québec.ogg}}</nowiki></code> produces {{IPAc-fr|qu|e|b|E|c|audio=FR-Québec.ogg}}
  
 
To change the delimiters (for example, if several instances of the template need to be strung together because of the limit on the number of parameters):
 
To change the delimiters (for example, if several instances of the template need to be strung together because of the limit on the number of parameters):
*<tt><nowiki>{{IPAc-fr|[-|r|é|p|y|b|l|i|q|-|f|r|an|ç|ai|z}}</nowiki></tt> produces {{IPAc-fr|[-|r|é|p|y|b|l|i|q|-|f|r|an|ç|ai|z}}
+
*<code><nowiki>{{IPAc-fr|[-|r|é|p|y|b|l|i|q|-|f|r|an|ç|ai|z}}</nowiki></code> produces {{IPAc-fr|[-|r|é|p|y|b|l|i|q|-|f|r|an|ç|ai|z}}
 
The full range of special values for the first parameter (changing the delimiters) is as follows:
 
The full range of special values for the first parameter (changing the delimiters) is as follows:
*<tt>-- [- -] // /- -/</tt>
+
*<code>-- [- -] // /- -/</code>
  
 
<!--The following parameters represent their normal sounds in French:
 
<!--The following parameters represent their normal sounds in French:
*<tt>a ą b c ć cz d dz dź e ę f g h</tt> (or <tt>ch</tt>) <tt>i j k l ł m n ń o p r s ś sz t u</tt> (or <tt>ó</tt>) <tt>w y z ź ż</tt> (or <tt>rz</tt>)
+
*<code>a ą b c ć cz d dz dź e ę f g h</code> (or <code>ch</code>) <code>i j k l ł m n ń o p r s ś sz t u</code> (or <code>ó</code>) <code>w y z ź ż</code> (or <code>rz</code>)
  
 
-->
 
-->
 
The following parameters have special meanings:
 
The following parameters have special meanings:
*<tt>-</tt> (hyphen) for a space between words
+
*<code>-</code> (hyphen) for a space between words
*<tt>_</tt> (underscore) [[Liaison (French)|Liaison]]
+
*<code>_</code> (underscore) [[Liaison (French)|Liaison]]
*<tt>'</tt> (apostrophe) for a primary stress mark (placed before the stressed syllable)
+
*<code>'</code> (apostrophe) for a primary stress mark (placed before the stressed syllable)
*<tt>N</tt> for a sound like English ''ng'' (in words like ''camping'')
+
*<code>N</code> for a sound like English ''ng'' (in words like ''camping'')
 
<!--more needed here-->
 
<!--more needed here-->
  
Line 37: Line 37:
 
* [[French phonology]]
 
* [[French phonology]]
  
<includeonly>
+
<includeonly>{{Sandbox other||
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
[[Category:IPA language templates|c]]
 
[[Category:IPA language templates|c]]
  
 
[[ja:Template:IPAc-fr]]
 
[[ja:Template:IPAc-fr]]
</includeonly>
+
}}</includeonly>

Latest revision as of 15:24, 31 May 2020

This template is used to produce a phonetic or phonemic representation (using the IPA system) of French words or sounds, using natural spelling to avoid the need to search for the correct phonetic symbols. The result is wikilinked to Help:IPA for French. Optionally, an audio file can also be specified.

Usage

The number of parameters is always limited to 50.

Normal usage:

With an audio file:

  • {{IPAc-fr|qu|e|b|E|c|audio=FR-Québec.ogg}} produces [kebɛk] (About this soundlisten)

To change the delimiters (for example, if several instances of the template need to be strung together because of the limit on the number of parameters):

The full range of special values for the first parameter (changing the delimiters) is as follows:

  • -- [- -] // /- -/

The following parameters have special meanings:

  • - (hyphen) for a space between words
  • _ (underscore) Liaison
  • ' (apostrophe) for a primary stress mark (placed before the stressed syllable)
  • N for a sound like English ng (in words like camping)

Other values used as parameters will be displayed unconverted. (The conversion system is coded in Template:c-fr.)

See also