Template:IPA chart/cell vowelpair/doc

From blackwiki
< Template:IPA chart‎ | cell vowelpair
Revision as of 13:36, 31 August 2011 by imported>DePiep
Jump to navigation Jump to search

Usage

This /cell vowelpair produces a CSS formatted text in a box, to be placed in the IPA vowel trapezoid, see {{IPA chart vowels}}. The position on the trapezoid is "absolute", defined by percentage from Top and Left. /cell vowelpair organises the interior of that positioned box.

Parameter 3 replaces the bullet.

Title
Close
Blank vowel trapezoid.svg
 • bp
 • bp
Near-close
Close-mid
Mid
Open-mid
Near-open
Open

CSS background

/vowelpair has three nested boxes. At the inner (3rd) level, there are thee equal boxes that contain the symbols left-bullet-right.

1. The outer box is positioned by <div> using top: and left: percentage parameters (#4 and #5). Through its fixed width the position can be set for the center point. Positioning from the left onwards would make the bullet-position dependent of the symbol- and fontsize.
2. There are three equal intermediate (2nd level) boxes, one for each symbol. They position each symbol within the outer box, effectively central for the bullet with left and right closing in. They have fixed width, enough to contain a wide symbol, and together fit into the outer box. Positioning is by (outer) <span>.
3. Within each 2nd level box, there is an inline box that actually produces the symbol. The inline settings are done by (inner) <span>.

The background is transparent for levels 1 and 2, the 3rd lever (inner) textboxes are opaque, thereby hiding the background lines of the trapezoid.

Parameter: background=yellow or 6=yellow (unnamed parameter #6)

See also

This template gives an overview of IPA templates. It is aimed to be used in templates' documentation.

Initial visibility: currently defaults to autocollapse

To set this template's initial visibility, the |state= parameter may be used:

  • |state=collapsed: {{IPA chart/cell vowelpair|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{IPA chart/cell vowelpair|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{IPA chart/cell vowelpair|state=autocollapse}}
    • shows the template collapsed to the title bar if there is a {{navbar}}, a {{sidebar}}, or some other table on the page with the collapsible attribute
    • shows the template in its expanded state if there are no other collapsible items on the page

If the |state= parameter in the template on this page is not set, the template's initial visibility is taken from the |default= parameter in the Collapsible option template. For the template on this page, that currently evaluates to autocollapse.