Difference between revisions of "Template:IPA chart/table vowels/doc"

From blackwiki
Jump to navigation Jump to search
imported>Nardog
m (Nardog moved page Template:IPA vowels/doc to Template:IPA chart/table vowels/doc over redirect: revert the movie - I'll split the template to ensure compatibility)
imported>Nardog
(Reverted to revision 450405975 by Kwamikagami (talk): I'll split the template to ensure compatibility. (TW))
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
+
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
'''Customized usage'''
 
* <code><nowiki>{{IPA vowels|class=infobox}}</nowiki></code> – shows as an infobox
 
* <code><nowiki>{{IPA vowels|style=margin:auto}}</nowiki></code> – appears centered
 
* <code><nowiki>{{IPA vowels|caption=}}</nowiki></code> – hides the caption (or enter a preferred one after <code>=</code>)
 
* <code><nowiki>{{IPA vowels|notes=no}}</nowiki></code> – hides the footnotes
 
* <code><nowiki>{{IPA vowels|class=mw-collapsible}}</nowiki></code> – appears collapsible
 
* <code><nowiki>{{IPA vowels|class=mw-collapsible mw-collapsed}}</nowiki></code> – appears collapsed
 
  
{{IPA templates}}
+
=== Usage ===
<includeonly>{{sandbox other||
+
As a bare table (chart): {{tl|IPA vowel chart}}. <br>
<!-- Categories below this line, please; interwikis at Wikidata -->
+
For navigation, this chart is transcluded into navbox: {{tl|IPA navigation}}
[[Category:IPA chart templates]]
+
 
}}</includeonly>
+
===Positioning===
 +
By default the template is floating to the right side of the page (<tt><nowiki>float:right;</nowiki></tt>). Text will run left of the template, and there is no <tt><nowiki>{{clear}}</nowiki></tt> so it might overlap a next section.
 +
Optionally, the float can be left by using<br>
 +
* <tt><nowiki>{{IPA vowel chart|float=left}}</nowiki></tt>.
 +
 
 +
To force an align-placement, use:<br>
 +
* <tt><nowiki><div align=center>{{IPA vowel chart|float=none}}</div></nowiki></tt>.
 +
 
 +
===Technical notes===
 +
====Subtemplate vowelpair====
 +
The templates uses subtemplate [[Template:IPA vowel chart/vowelpair]]
 +
to produce a pair of vowels. Usage:
 +
* {{tlx|IPA vowel chart/vowelpair|left-symbol|right-symbol|symbol-over-midbullet|top|left}}. Top and left are numeric, the distances in px counting from the top, left corner (do no type the "px"). This will be the position of the bullet (central); symbols will shove against it from left & right. The trapezoid is 300px width and 210px height.
 +
 
 +
====Color scheme====
 +
The table uses a color scheme that is used on more phonetic IPA boxes. [[Help:Using colors]] describes how the English Wikipedia uses a set of four related colors, based on a single color ([[hue]]) e.g. green, are used on the wiki Main Page: headers, 2nd rank headers, borders and background. For another basic color, say blue, a corresponding set can be generated.<br>
 +
For this template, the colors are:
 +
 
 +
<table border="0" cellspacing="4" cellpadding="4" style="border:black solid 1px;">
 +
<tr>
 +
<th width="55px">Hue</th>
 +
<th>Saturation 4% / Brightness 100%<br /><br /><small>main background</small></th>
 +
<th>Saturation 10% / Brightness 100%<br /><br /><small>2nd header, accent colour</small></th>
 +
<th>Saturation 15% / Brightness 95%<br /><small>main border<br />header background</small></th>
 +
<th>Saturation 15% / Brightness 75%<br /><br /><small>header border only</small></th>
 +
</tr>
 +
<tr>
 +
<td style="background:#FFFF00; color:black; text-align:center;">Hue: 60</td>
 +
<td style="background:#FFFFF5; color:black; text-align:center;">#FFFFF5</td>
 +
<td style="background:#FFFFE6; color:black; text-align:center;">#FFFFE6</td>
 +
<td style="background:#F2F2CE; color:black; text-align:center;">#F2F2CE</td>
 +
<td style="background:#BFBFA3; color:black; text-align:center;">#BFBFA3</td>
 +
</tr>
 +
</table>
 +
 
 +
=== See also ===
 +
* {{tl|IPA consonant chart}} - basic IPA chart
 +
* {{tl|IPA navigation}} - Navigation box, including this vowel chart
 +
{{IPA templates}}<includeonly>
 +
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 +
[[Category:Linguistics templates|Vowel chart, IPA]]
 +
[[Category:Vowel letters]]
 +
 
 +
[[br:Patrom:CSS IPA vowel chart]]
 +
[[ca:Plantilla:Taula vocals AFI]]
 +
[[es:Plantilla:Vocales]]
 +
[[mk:Шаблон:Шема на МФА самогласки]]
 +
[[ja:Template:IPA母音表]]
 +
[[pt:Predefinição:Vogais IPA]]
 +
[[ru:Шаблон:Схема гласных МФА]]
 +
[[sr:Шаблон:Шема самогласника МФА]]
 +
[[vi:Tiêu bản:Biểu đồ nguyên âm IPA]]
 +
[[zh:Template:CSS IPA vowel chart]]
 +
 
 +
</includeonly>

Revision as of 08:44, 24 September 2017

Usage

As a bare table (chart): {{IPA vowel chart}}.
For navigation, this chart is transcluded into navbox: {{IPA navigation}}

Positioning

By default the template is floating to the right side of the page (float:right;). Text will run left of the template, and there is no {{clear}} so it might overlap a next section. Optionally, the float can be left by using

  • {{IPA vowel chart|float=left}}.

To force an align-placement, use:

  • <div align=center>{{IPA vowel chart|float=none}}</div>.

Technical notes

Subtemplate vowelpair

The templates uses subtemplate Template:IPA vowel chart/vowelpair to produce a pair of vowels. Usage:

  • {{IPA vowel chart/vowelpair|left-symbol|right-symbol|symbol-over-midbullet|top|left}}. Top and left are numeric, the distances in px counting from the top, left corner (do no type the "px"). This will be the position of the bullet (central); symbols will shove against it from left & right. The trapezoid is 300px width and 210px height.

Color scheme

The table uses a color scheme that is used on more phonetic IPA boxes. Help:Using colors describes how the English Wikipedia uses a set of four related colors, based on a single color (hue) e.g. green, are used on the wiki Main Page: headers, 2nd rank headers, borders and background. For another basic color, say blue, a corresponding set can be generated.
For this template, the colors are:

Hue Saturation 4% / Brightness 100%

main background
Saturation 10% / Brightness 100%

2nd header, accent colour
Saturation 15% / Brightness 95%
main border
header background
Saturation 15% / Brightness 75%

header border only
Hue: 60 #FFFFF5 #FFFFE6 #F2F2CE #BFBFA3

See also