• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:IPA symbol/sandbox

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:IPA symbol
This is the template sandbox page for Template:IPA symbol (diff).
See also the companion subpage for test cases.
Template documentation[view] [edit] [history] [purge]
This template uses Lua:
  • Module:IPA symbol (sandbox)

This template provides a simple conversion table from an IPA symbol to a Wikipedia article name. Its direct use is probably not too meaningful, but it can be useful inside other templates, e.g. {{IPA link}}. It is a meta-template.

The resulting article name should exist. The input symbol may be multiple characters.

Contents

  • 1 Usage
  • 2 Data
  • 3 Errors
  • 4 See also

Usage

edit

This template has one parameter that is mandatory. The parameter must be an IPA symbol or a sequence of IPA symbols. A formatting template like {{IPA}} is not necessary.

  • {{IPA symbol|m}} → Voiced bilabial nasal
  • {{IPA symbol|ɡ͡b}} → Voiced labial–velar plosive

Use output= to specify the type of the output: "name", "symbol", "article", or "audio".

  • {{IPA symbol|t̪|output=name}} → Voiceless dental plosive
  • {{IPA symbol|t̪|output=article}} → Voiceless dental plosive
  • {{IPA symbol|t̪|output=audio}} → Voiceless dental stop.ogg
  • {{IPA symbol|w̥|output=symbol}} → ʍ (returns the primarily defined symbol)

Certain symbols such as the tie bars, length marks, and dotted circle in the input are ignored so long as the rest of the input matches a definition, so that the below do not result in errors even though these individual combinations are not defined in the data.

  • {{IPA symbol|aː}} → Open front unrounded vowel
  • {{IPA symbol|◌ʰ}} → Aspirated consonant

If no direct match is found, the template will then look for the earliest instance of a diacritic in the input string.

  • {{IPA symbol|pʰ}} → Aspirated consonant
  • {{IPA symbol|pʰæ̃}} → Aspirated consonant
  • {{IPA symbol|pæ̃}} → Nasal vowel

A two-character diacritic takes precedence over a one-character one should they be found at the same position.

  • {{IPA symbol|ʰa}} → Aspirated consonant
  • {{IPA symbol|ʰpa}} → Preaspiration

Some symbols in the input are automatically replaced by the more suitable counterparts.

  • {{IPA symbol|’|output=symbol}} (right single quotation mark) → ʼ (modifier letter apostrophe)

Data

edit

The data is stored at Module:IPA symbol/data. It is divided into two groups: "sounds" and "diacritics". If no "article" is specified, the value for "name" will substitute it. A diacritic must be one or two Unicode characters. The data also stores substitution patterns for the input string.

Errors

edit

If the input matches no definition in the data, an error message is returned and the page will be categorized into Category:International Phonetic Alphabet pages needing attention.

  • {{IPA symbol|xyz}} → Error using {{IPA symbol}}: "xyz" not found in list

Optionally, an error text can be altered from the default message to any text by using the second parameter (if set to blank, the message will not appear at all). This cancels the addition of the error category.

  • {{IPA symbol|xyz|unknown}} → unknown
  • {{IPA symbol|xyz|blank}} →

See also

edit
  • {{IPA link}} – Displays an IPA symbol which is automatically linked to its sound article: β → β
  • {{IPAblink}} – As {{IPA link}}, enclosed in square brackets: [β]
  • {{IPAslink}} – As {{IPA link}}, enclosed in slashes: /β/
  • Category:International Phonetic Alphabet pages needing attention
  • v
  • t
  • e
IPA templates
Inline
Formatting
  • {{IPA}}
  • {{IPA link}}
  • {{IPAblink}} [a]
  • {{IPAslink}} /a/
  • {{IPAalink}} ⟨a⟩
  • {{IPAplink}}
  • {{angbr IPA}}
  • {{IPA double slash}}
  • {{Chinese tone letter}}
  • {{Audio-IPA}}
Conversion
  • {{IPAc-ar}}
  • {{IPAc-en}}
  • {{IPAc-cmn}}
  • {{IPAc-hu}}
  • {{IPAc-pl}}
  • {{IPAc-yue}}
  • {{subst:X-SAMPA to IPA}}
Maintenance
  • {{Needs IPA}}
  • {{Pronunciation needed}}
Charts
  • {{IPA vowels}}
  • {{IPA pulmonic consonants}}
  • {{IPA non-pulmonic consonants}}
  • {{IPA co-articulated consonants}}
  • {{IPA affricates}}
Guidance
  • {{IPA navigation}}
  • {{Infobox IPA}}
  • {{IPA notice}}
  • {{WikiIPA}}
  • {{IPA key}}
  • {{IPA keys}}
  • {{IPA language category}}
Meta templates
  • {{IPA symbol}}
  • {{IPA audio link}}
  • {{IPA common}}
  • {{IPA soundbox}}
  • {{IPA notice/msg}}
TemplateData

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Input symbol1

no description

Example
'm'
Stringrequired
Error text2

no description

Example
blank
Stringoptional
Output typeoutput

no description

Example
audio
Stringoptional
The above documentation is transcluded from Template:IPA symbol/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:IPA_symbol/sandbox&oldid=880299680"
Last edited on 26 January 2019, at 17:28

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 26 January 2019, at 17:28 (UTC).
      • Content is available under CC BY-SA 4.0 unless otherwise noted.
      • Privacy policy
      • About Wikipedia
      • Disclaimers
      • Contact Wikipedia
      • Code of Conduct
      • Developers
      • Statistics
      • Cookie statement
      • Terms of Use
      • Desktop