Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Template:IPA link/testcases

From Wikipedia, the free encyclopedia

First parameter or ipa symbol= (required): Any IPA symbol, or its IPA number.

CodeLiveSandbox
{{IPA link|m}}mm
{{IPA link|ɡb}}ɡbɡb
{{IPA link|301}}Error using {{IPA symbol}}: "301" not found in listError using {{IPA symbol}}: "301" not found in list
Label

label=, or 2nd, 3rd parameter, changes the label of the wikilink.

CodeLiveSandbox
{{IPA link|m|label=Any text}}mm
{{IPA link|m|Any text2}}Any text2Any text2
{{IPA link|m||Any text3}}mm
{{IPA link|ɡb|label=}}ɡbɡb
CodeLiveSandbox
{{IPA link|m||label=Any text}}mm
{{IPA link|m||Any text3}}mm
{{IPA link|ɡb||label=}}ɡbɡb
Brackets
  • bracket=, or 2nd or 3rd parameter: set IPA bracket. Options are: / [ < (none). Default is none.
2nd parameter
CodeLiveSandbox
{{IPA link|m|<}}<<
{{IPA link|301|<}}Error using {{IPA symbol}}: "301" not found in listError using {{IPA symbol}}: "301" not found in list
{{IPA link|m|[}}[[
{{IPA link|ɡb|[}}[[
{{IPA link|ɡb|/}}//
3rd parameter
CodeLiveSandbox
{{IPA link|m||<}}mm
{{IPA link|301||<}}Error using {{IPA symbol}}: "301" not found in listError using {{IPA symbol}}: "301" not found in list
{{IPA link|m||[}}mm
{{IPA link|ɡb||[}}ɡbɡb
{{IPA link|ɡb||/}}ɡbɡb
2nd/3rd parameter, the other one as label
CodeLiveSandbox
{{IPA link|m|two-label|<}}two-labeltwo-label
{{IPA link|301|2=two-label|<}}Error using {{IPA symbol}}: "301" not found in listError using {{IPA symbol}}: "301" not found in list
{{IPA link|301|2=two-label|3=<}}Error using {{IPA symbol}}: "301" not found in listError using {{IPA symbol}}: "301" not found in list
CodeLiveSandbox
{{IPA link|m|[|three-label}}[[
{{IPA link|ɡb|[|three-label}}[[
{{IPA link|ɡb|/|label=named-label}}//
2nd/3rd parameter label, no bracket
CodeLiveSandbox
{{IPA link|m|two-label}}two-labeltwo-label
{{IPA link|301|2=two-label}}Error using {{IPA symbol}}: "301" not found in listError using {{IPA symbol}}: "301" not found in list
{{IPA link|301|2=two-label}}Error using {{IPA symbol}}: "301" not found in listError using {{IPA symbol}}: "301" not found in list
CodeLiveSandbox
{{IPA link|m||three-label}}mm
{{IPA link|ɡb||three-label}}ɡbɡb
{{IPA link|ɡb||label=named-label}}ɡbɡb
bracket named, 2 or 3 as label
CodeLiveSandbox
{{IPA link|m|two-label|bracket=<}}two-labeltwo-label
{{IPA link|301|2=two-label|bracket=<}}Error using {{IPA symbol}}: "301" not found in listError using {{IPA symbol}}: "301" not found in list
{{IPA link|301|2=two-label|bracket=<}}Error using {{IPA symbol}}: "301" not found in listError using {{IPA symbol}}: "301" not found in list
CodeLiveSandbox
{{IPA link|m|bracket=<|three-label}}three-labelthree-label
{{IPA link|ɡb|bracket=<|three-label}}three-labelthree-label
{{IPA link|ɡb|bracket=<|label=named-label}}ɡbɡb
Error situation

If the IPA symbol is not defined in the IPA symbol table, then an error message is returned.

CodeLiveSandbox
{{../|pʰɪk}}pʰɪkpʰɪk

The latter is normally more an example of accidental misuse than intentional use, or it could be a sign that a symbol is missing from the {{IPA symbol}} table.

Option "label" (2nd, unnamed parameter)

The template can take the extra input like "label=A", and then show that symbol, while linking to the appropriate article. The symbol to be shown can also be the second, unnamed parameter.

CodeLiveSandbox
{{../|m|label=Anytext}}mm
{{../|ɽ͡r|label=*}}ɽ͡rɽ͡r
{{IPAblink|ˤ|label=sˤ}}[ˤ][ˤ]
{{IPAblink|ˤ|sˤ}}[][]
{{IPAblink|301|i}}Error using {{IPA symbol}}: "301" not found in listError using {{IPA symbol}}: "301" not found in list
Other options
name, wikilink
CodeLiveSandbox
{{IPA link|m|/|name=yes}}//
{{IPA link|m|>|wl=no}}>>
Style
CodeLiveSandbox
{{IPA link|m|style=background:#f7a6c5; font-size:140%;}}mm