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

From blackwiki
Jump to navigation Jump to search
imported>Bibi Saint-Pol
(- wrong interwiki)
imported>Jonesey95
m (Fix Linter errors using AutoEd)
 
(17 intermediate revisions by 5 users not shown)
Line 3: Line 3:
  
 
=== Usage ===
 
=== Usage ===
As a bare table (chart): {{tl|IPA vowel chart}}. <br>
+
As a bare table (chart): {{tl|IPA vowel chart}}. <br />
 
For navigation, this chart is transcluded into navbox: {{tl|IPA navigation}}
 
For navigation, this chart is transcluded into navbox: {{tl|IPA navigation}}
  
 
===Positioning===
 
===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.
+
By default the template is floating to the right side of the page (<code><nowiki>float:right;</nowiki></code>). Text will run left of the template, and there is no <code><nowiki>{{clear}}</nowiki></code> so it might overlap a next section.
Optionally, the float can be left by using<br>
+
Optionally, the float can be left by using<br />
* <tt><nowiki>{{IPA vowel chart|float=left}}</nowiki></tt>.
+
* <code><nowiki>{{IPA vowel chart|float=left}}</nowiki></code>.
  
To force an align-placement, use:<br>
+
To force an align-placement, use:<br />
* <tt><nowiki><div align=center>{{IPA vowel chart|float=none}}</div></nowiki></tt>.
+
* <code><nowiki><div align=center>{{IPA vowel chart|float=none}}</div></nowiki></code>.
  
===Color scheme===
+
===Technical notes===
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>
+
====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:
 
For this template, the colors are:
  
Line 34: Line 40:
 
</tr>
 
</tr>
 
</table>
 
</table>
 
===Commons semi-copy===
 
On '''Wiki-Commons''' there is a similar template. Comments in code here (at English wiki) ask for carefully overdoing the edits on both sides. Still there are differences (e.g., a IPA-symbol at Commons is by image, here it is by font), which make the task to synchronize them undoable for one editor. Which is a bad thing. This all originated in 2005 or so, so maybe wikimedia etc are more helpful now.
 
(Personal note: I did not restrain from improving here on the English wiki: no bothering about Commons. Later on, when the edits are done, someone might take a look at the synchronization/copying at Commons. For now, we want the best Vowels-table at en., without compromising.).
 
 
Here follows the commented code, top of the templatecode, about the Commmons-synchronisation (moved from the template itself):<br>
 
Note: A comment like <tt><nowiki><!-- my comment --></nowiki></tt> is replaced by <tt><c-- same comment --></tt>. Some parts were in noinclude-tags.
 
 
<c-- There is a copy of this chart on the Wikimedia Commons, under the same page title.  The links are different in form:
 
  Wikipedia:  <nowiki>[[Close front rounded vowel|y]]</nowiki>
 
  Commons:  <nowiki>[[:Image:Close front rounded vowel.ogg|y]]</nowiki>
 
When making edits to this chart, it is recommended that you make the same edits to both copies.
 
Using a browser text size between 6 and 20 pixels is recommended when viewing this chart. -->
 
<c--  Wikipedia only: -->
 
<c-- It's not necessary to add the "w:" in links from here, as that refers to the English Wikipedia, which is what you're looking at. -->{{tl|SpecialChars}}
 
<c-- above Wikipedia only --></nowiki><br>
 
''(Here the body code of the template''
 
<c-- Commons only:
 
[[:Category:Uncategorized templates|<nowiki>{{PAGENAME}}</nowiki>]]
 
above Commons only -->
 
  
 
=== See also ===
 
=== See also ===
* {{tl|IPA navigation}} Navbox, including this vowel chart
+
* {{tl|IPA consonant chart}} - basic IPA chart
* {{tl|Consonants}} (Navigation box Consonants)
+
* {{tl|IPA navigation}} - Navigation box, including this vowel chart
* {{tl|IPA consonant chart}} (basic IPA chart)
+
{{IPA templates}}<includeonly>{{Sandbox other||
 
 
<includeonly>
 
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
[[Category:Linguistics templates|Vowel chart, IPA]]
 
[[Category:Linguistics templates|Vowel chart, IPA]]
 +
[[Category:Vowel letters]]
 +
 
[[br:Patrom:CSS IPA vowel chart]]
 
[[br:Patrom:CSS IPA vowel chart]]
 
[[ca:Plantilla:Taula vocals AFI]]
 
[[ca:Plantilla:Taula vocals AFI]]
Line 74: Line 60:
 
[[zh:Template:CSS IPA vowel chart]]
 
[[zh:Template:CSS IPA vowel chart]]
  
</includeonly>
+
}}</includeonly>

Latest revision as of 19:14, 4 June 2020

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