Difference between revisions of "Template:Infobox IPA"
imported>Woohookitty (cat) |
imported>Nardog (rm "Kirshenbaum" - which is not what it's called btw - a system never used or codified by scholarly works) |
||
| (59 intermediate revisions by 25 users not shown) | |||
| Line 1: | Line 1: | ||
| − | {{ | + | <includeonly>{{infobox IPA/core1 |
| − | |ipa- | + | <!-- ABOVE-TITLE --> |
| − | |ipa-text= | + | | above = {{{above|}}} |
| − | |ipa- | + | <!-- IPA SYMBOL (in big font) --> |
| − | |imagesize={{{imagesize}}} | + | | ipa symbol=<!-- |
| − | |ipa- | + | IF input ipa symbol ELSE compose from decimals1234 |
| − | | | + | -->{{#if: {{{ipa symbol|{{{ipa-text|}}}}}}<!-- |
| − | | | + | -->| {{{ipa symbol|{{{ipa-text|}}}}}}<!-- |
| − | | | + | -->| {{infobox IPA/format numbers<!-- |
| − | }}< | + | -->| a={{{decimal1|{{{decimal|}}}}}}<!-- |
| − | + | -->| b={{{decimal2|}}}<!-- | |
| − | + | -->| c={{{decimal3|}}}<!-- | |
| − | + | -->| d={{{decimal4|}}}<!-- | |
| − | + | -->| format type=format character}}<!-- | |
| − | + | -->}}<!-- | |
| − | + | symbols 2--8 for big font pass through without further ado --> | |
| + | | ipa symbol2= {{{ipa symbol2|}}} | ||
| + | | ipa symbol3= {{{ipa symbol3|}}} | ||
| + | | ipa symbol4= {{{ipa symbol4|}}} | ||
| + | | ipa symbol5= {{{ipa symbol5|}}} | ||
| + | | ipa symbol6= {{{ipa symbol6|}}} | ||
| + | | ipa symbol7= {{{ipa symbol7|}}} | ||
| + | | ipa symbol8= {{{ipa symbol8|}}} | ||
| + | | ipa symbol 2-8 exist= {{{ipa symbol2|}}}{{{ipa symbol3|}}}{{{ipa symbol4|}}}{{{ipa symbol5|}}}{{{ipa symbol6|}}}{{{ipa symbol7|}}}{{{ipa symbol8|}}} | ||
| + | <!-- CHECK DECIMAL --> | ||
| + | | check decimals = <!--check if decimals are numeric | ||
| + | -->{{infobox IPA/format numbers<!-- | ||
| + | -->| a={{{decimal1|{{{decimal|}}}}}}<!-- | ||
| + | -->| b={{{decimal2|}}}<!-- | ||
| + | -->| c={{{decimal3|}}}<!-- | ||
| + | -->| d={{{decimal4|}}}<!-- | ||
| + | -->| format type=format check decimals<!-- | ||
| + | -->}} | ||
| + | <!-- IMAGE --> | ||
| + | | imagefile = {{{imagefile|{{{ipa-image|}}} }}} | ||
| + | | imagesize = {{{imagesize|}}} | ||
| + | | imagecaption = {{{imagecaption|}}} | ||
| + | <!-- DESCRIPTIONS --> | ||
| + | | ipa number = {{{ipa number|{{{ipa-number|}}}}}} | ||
| + | | note1 label = {{{note1 label|}}} | ||
| + | | note1 = {{{note1|}}} | ||
| + | <!-- ENCODINGS --> | ||
| + | | html format = <!-- compose from the decimals | ||
| + | -->{{infobox IPA/format numbers<!-- | ||
| + | -->| a={{{decimal1|{{{decimal|}}}}}}<!-- | ||
| + | -->| b={{{decimal2|}}}<!-- | ||
| + | -->| c={{{decimal3|}}}<!-- | ||
| + | -->| d={{{decimal4|}}}<!-- | ||
| + | -->| format type=format html<!-- | ||
| + | -->}} | ||
| + | | unicode format = <!-- compose from the decimals | ||
| + | -->{{infobox IPA/format numbers<!-- | ||
| + | -->| a={{{decimal1|{{{decimal|}}}}}}<!-- | ||
| + | -->| b={{{decimal2|}}}<!-- | ||
| + | -->| c={{{decimal3|}}}<!-- | ||
| + | -->| d={{{decimal4|}}}<!-- | ||
| + | -->| format type=format unicode<!-- | ||
| + | -->| unicode={{{unicode|}}}<!-- | ||
| + | -->}} | ||
| + | | x-sampa = {{{x-sampa|{{{xsampa|}}}}}} | ||
| + | | braille = {{{braille|}}} | ||
| + | | braille2 = {{{braille2|}}} | ||
| + | | braille3 = {{{braille3|}}} | ||
| + | | braille4 = {{{braille4|}}} | ||
| + | | note2 label = {{{note2 label|}}} | ||
| + | | note2 = {{{note2|}}} | ||
| + | <!-- SOUND --> | ||
| + | | soundfile = {{{soundfile|{{{sound| {{IPA symbol|{{{ipa symbol|}}}|output=audio}} }}}}}} | ||
| + | | decat = yes <!-- this infobox does not use data rows at all so will always trigger "no data rows" --> | ||
| + | }}</includeonly><noinclude> | ||
| + | <!-- Deprecated parameters for backward compatibility: ipa-number, ipa-text, decimal, xsampa, sound. These are entered here as the default-value of corresponding new parameter like: | ipa symbol={{{ipa symbol|{{{ipa-text|}}}}}}. January 2011. --> | ||
| + | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 20:08, 15 June 2019
Contents
Usage
This template can be used to add an infobox for a phonetic sound.
This infobox can be used to describe a phonetic sound, both by its name and its IPA symbol. Additional information can be added, like the X-SAMPA letters and a graphic image file.
In general, the descriptive name corresponds with the article name. The infobox is then placed on that article page.
Parameters
Basic parameters
Only a few parameters are required to produce a useful infobox. The above header can be set, and up to four IPA symbols can be shown:
|ipa number= is required to show the sound if available and the header if |above= is omitted.
Decimals are decimal character references, also known as "Entity", to define the symbol in HTML. The template tries to find all known information with these two numbers.
Some more basic parameters:
| Voiced velar plosive | |||
|---|---|---|---|
| ɡ | |||
| IPA Number | 110 | ||
| Encoding | |||
| Entity (decimal) | ɡ | ||
| Unicode (hex) | U+0261 | ||
| X-SAMPA | g | ||
| Braille | |||
| |||
{{Infobox IPA
| above = Voiced velar plosive
| ipa number = 110
| decimal = 609
| imagefile = Voiced velar stop (vector).svg
| imagesize = 150px
| x-sampa = g
| braille = g
}}
Full parameter list
{{infobox IPA
| above =
| ipa symbol =
| ipa symbol2 =
| ipa symbol3 =
| ipa symbol4 =
| imagefile =
| imagecaption =
| imagesize =
| ipa number =
| decimal1 =
| decimal2 =
| decimal3 =
| decimal4 =
| note1 label =
| note1 =
| unicode =
| x-sampa =
| braille =
| braille2 =
| braille3 =
| braille4 =
| note2 label =
| note2 =
}}
- Decimal numbers
Up to four decimal values can be entered, to compose the symbol:
| Voiceless | |
|---|---|
| ʎ̥˔ | |
| IPA Number | 157 402A 429 |
| Encoding | |
| Entity (decimal) | ʎ̥˔ |
| Unicode (hex) | U+028E U+0325 U+02D4 |
| ipa symbol = ʎ̥˔ | ipa number = 157 402A 429 | decimal1 = 654 | decimal2 = 805 | decimal3 = 724 | decimal4 =
Multiple symbols
Up to eight symbols can be shown in big font.
| Downstep and upstep | |
|---|---|
| ꜛ◌ | |
| ꜜ◌ |
| above = Downstep and upstep | ipa symbol = ꜛ◌ | ipa symbol2 = ꜜ◌ | ipa symbol3 = ... | ipa symbol8 =
Image
Adding an image of the symbol:
| Voiceless | ||||
|---|---|---|---|---|
| ʎ̥˔ | ||||
| ||||
{{infobox IPA
| ipa symbol = ʎ̥˔
| imagefile = Lateral fricatives.svg
| imagecaption = image example
| imagesize = 50px
}}
More input options
| Open front unrounded vowel | |
|---|---|
| a | |
| Extra note 1 | This is my first note |
| Encoding | |
| Unicode (hex) | U+9999 |
| X-SAMPA | X-S |
| Extra note 2 | Another note by me here |
| Audio sample | |
| File:PR-open front unrounded vowel.ogg | |
| ipa symbol = a | note1 label = Extra note 1 | note1 = This is my first note | unicode = U+9999 | x-sampa = X-S | note2 label = Extra note 2 | note2 = Another note by me here
Sound file
The template tries to determine the default sound file name by the IPA symbol as defined at Module:IPA symbol/data:
{{IPA symbol|m}}→ Bilabial nasal.ogg
Priorities in parameters
The template tries to get as much information as possible from the input. Overwriting:
| above = (overwrites ipa symbol name (IPA symbol) in header) | unicode = (overwrites Unicode numbers that were determinated by the decimal numbers)
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Label above | above title | Title of the info box
| Line | suggested |
| IPA symbol 1 | ipa symbol ipa-text | IPA symbol for the sound
| Line | suggested |
| decimal HMTL codepoint 1 | decimal1 decimal | Defines the first symbol in HTML
| Number | suggested |
| Decimal2 | decimal2 | no description | Unknown | optional |
| Decimal3 | decimal3 | no description | Unknown | optional |
| Decimal4 | decimal4 | no description | Unknown | optional |
| Ipa symbol2 | ipa symbol2 | no description | Unknown | optional |
| Ipa symbol3 | ipa symbol3 | no description | Unknown | optional |
| Ipa symbol4 | ipa symbol4 | no description | Unknown | optional |
| Ipa symbol5 | ipa symbol5 | no description | Unknown | optional |
| Ipa symbol6 | ipa symbol6 | no description | Unknown | optional |
| Ipa symbol7 | ipa symbol7 | no description | Unknown | optional |
| Ipa symbol8 | ipa symbol8 | no description | Unknown | optional |
| Image file | imagefile ipa-image | no description | File | optional |
| Image size | imagesize | no description | String | optional |
| Image caption | imagecaption | no description | Line | optional |
| IPA number | ipa number | no description
| Number | optional |
| Description 1 | note1 | Description for first symbol | Line | optional |
| Unicode | unicode | no description | String | optional |
| X-sampa | x-sampa | no description | Unknown | optional |
| Xsampa | xsampa | no description | Unknown | optional |
| Braille | braille | no description | Unknown | optional |
| Braille2 | braille2 | no description | Unknown | optional |
| Braille3 | braille3 | no description | Unknown | optional |
| Braille4 | braille4 | no description | Unknown | optional |
| Note2 label | note2 label | no description | Unknown | optional |
| Note2 | note2 | no description | Unknown | optional |
| The above documentation is transcluded from Template:Infobox IPA/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |