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

From blackwiki
Jump to navigation Jump to search
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
imported>Jonesey95
m (Fix Linter errors using AutoEd)
 
Line 8: Line 8:
  
 
Normal usage:
 
Normal usage:
*<tt><nowiki>{{IPAc-pl|'|w|r|o|c|ł|a|f}}</nowiki></tt> produces {{IPAc-pl|'|w|r|o|c|ł|a|f}}
+
*<code><nowiki>{{IPAc-pl|'|w|r|o|c|ł|a|f}}</nowiki></code> produces {{IPAc-pl|'|w|r|o|c|ł|a|f}}
*<tt><nowiki>{{IPAc-pl|s|e|m|'|p|u|l|n|o|-|k|r|a|'|j|e|ń|s|k|J|e}}</nowiki></tt> produces {{IPAc-pl|s|e|m|'|p|u|l|n|o|-|k|r|a|'|j|e|ń|s|k|J|e}}
+
*<code><nowiki>{{IPAc-pl|s|e|m|'|p|u|l|n|o|-|k|r|a|'|j|e|ń|s|k|J|e}}</nowiki></code> produces {{IPAc-pl|s|e|m|'|p|u|l|n|o|-|k|r|a|'|j|e|ń|s|k|J|e}}
  
 
With an audio file:
 
With an audio file:
*<tt><nowiki>{{IPAc-pl|AUD|Pl-Wrocław-2.ogg|'|w|r|o|c|ł|a|f}}</nowiki></tt> produces {{IPAc-pl|AUD|Pl-Wrocław-2.ogg|'|w|r|o|c|ł|a|f}}
+
*<code><nowiki>{{IPAc-pl|AUD|Pl-Wrocław-2.ogg|'|w|r|o|c|ł|a|f}}</nowiki></code> produces {{IPAc-pl|AUD|Pl-Wrocław-2.ogg|'|w|r|o|c|ł|a|f}}
  
 
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-pl|[-|'|m|a|ć|e1|I|-|f|a|U|s|'|t|o|f|s|k|i}}</nowiki></tt> produces {{IPAc-pl|[-|'|m|a|ć|e1|I|-|f|a|U|s|'|t|o|f|s|k|i}}
+
*<code><nowiki>{{IPAc-pl|[-|'|m|a|ć|e1|I|-|f|a|U|s|'|t|o|f|s|k|i}}</nowiki></code> produces {{IPAc-pl|[-|'|m|a|ć|e1|I|-|f|a|U|s|'|t|o|f|s|k|i}}
 
The full range of special values for the first parameter (changing the delimiters and/or specifying that the next parameter is an audio file) is as follows:
 
The full range of special values for the first parameter (changing the delimiters and/or specifying that the next parameter is an audio file) is as follows:
*<tt>-- [- -] // /- -/ AUD -]AUD //AUD -/AUD</tt>
+
*<code>-- [- -] // /- -/ AUD -]AUD //AUD -/AUD</code>
  
 
The following parameters represent their normal sounds in Polish:
 
The following parameters represent their normal sounds in Polish:
*<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> (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>,</tt> (comma) for a secondary stress mark
+
*<code>,</code> (comma) for a secondary stress mark
*<tt>J</tt> for a superscript j (used after k and g)
+
*<code>J</code> for a superscript j (used after k and g)
*<tt>I</tt> for non-syllabic i (normally spelt ''j'' in words like ''gaj'')
+
*<code>I</code> for non-syllabic i (normally spelt ''j'' in words like ''gaj'')
*<tt>U</tt> for non-syllabic u (normally spelt ''ł'' in words like ''miał'')
+
*<code>U</code> for non-syllabic u (normally spelt ''ł'' in words like ''miał'')
*<tt>N</tt> for a sound like English ''ng'' (in words like ''bank'')
+
*<code>N</code> for a sound like English ''ng'' (in words like ''bank'')
*<tt>e1</tt> for a more closed ''e'' sound (as when adjacent to soft consonants, in words like ''Maciej'')
+
*<code>e1</code> for a more closed ''e'' sound (as when adjacent to soft consonants, in words like ''Maciej'')
  
 
Other values used as parameters will be displayed unconverted. (The conversion system is coded in [[Template:c-pl]].)
 
Other values used as parameters will be displayed unconverted. (The conversion system is coded in [[Template:c-pl]].)

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 Polish 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 Polish. Optionally, an audio file can also be specified.

Usage

The number of parameters is always limited to 33.

Normal usage:

With an audio file:

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 and/or specifying that the next parameter is an audio file) is as follows:

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

The following parameters represent their normal sounds in Polish:

  • a ą b c ć cz d dz dź e ę f g h (or ch) i j k l ł m n ń o p r s ś sz t u (or ó) w y z ź ż (or rz)

The following parameters have special meanings:

  • - (hyphen) for a space between words
  • ' (apostrophe) for a primary stress mark (placed before the stressed syllable)
  • , (comma) for a secondary stress mark
  • J for a superscript j (used after k and g)
  • I for non-syllabic i (normally spelt j in words like gaj)
  • U for non-syllabic u (normally spelt ł in words like miał)
  • N for a sound like English ng (in words like bank)
  • e1 for a more closed e sound (as when adjacent to soft consonants, in words like Maciej)

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

See also