Difference between revisions of "Template:IPA link/testcases"

From blackwiki
Jump to navigation Jump to search
imported>DePiep
imported>DePiep
Line 44: Line 44:
 
* {{tlx|IPAlink/sandbox|ɡb<nowiki>|[</nowiki>|three-label}} &rarr; {{IPAlink/sandbox|ɡb|[|three-label}}
 
* {{tlx|IPAlink/sandbox|ɡb<nowiki>|[</nowiki>|three-label}} &rarr; {{IPAlink/sandbox|ɡb|[|three-label}}
 
* {{tlx|IPAlink/sandbox|ɡb<nowiki>|/|label=named-label</nowiki>}} &rarr; {{IPAlink/sandbox|ɡb|/|label=named-label}}
 
* {{tlx|IPAlink/sandbox|ɡb<nowiki>|/|label=named-label</nowiki>}} &rarr; {{IPAlink/sandbox|ɡb|/|label=named-label}}
 +
 +
;2nd/3rd parameter label, no bracket:
 +
* {{tlx|IPAlink/sandbox|m<nowiki>|two-label</nowiki>}} &rarr; {{IPAlink/sandbox|m|two-label}}
 +
* {{tlx|IPAlink/sandbox|301<nowiki>|2=two-label</nowiki>}} &rarr; {{IPAlink/sandbox|301|2=two-label}}
 +
* {{tlx|IPAlink/sandbox|301<nowiki>|2=two-label</nowiki>}} &rarr; {{IPAlink/sandbox|301|2=two-label}}
 +
 +
* {{tlx|IPAlink/sandbox|m<nowiki>||three-label</nowiki>}} &rarr; {{IPAlink/sandbox|m||three-label}}
 +
* {{tlx|IPAlink/sandbox|ɡb<nowiki>|</nowiki>|three-label}} &rarr; {{IPAlink/sandbox|ɡb||three-label}}
 +
* {{tlx|IPAlink/sandbox|ɡb<nowiki>||label=named-label</nowiki>}} &rarr; {{IPAlink/sandbox|ɡb||label=named-label}}
  
 
;bracket named, 2 or 3 as label:
 
;bracket named, 2 or 3 as label:

Revision as of 21:16, 24 July 2012


Usage

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

Label

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


Brackets
  • bracket=, or 2nd or 3rd parameter: set IPA bracket. Options are: / [ < (none). Default is none.
2nd parameter
3rd parameter
2nd/3rd parameter, the other one as label


2nd/3rd parameter label, no bracket
bracket named, 2 or 3 as label



Error situation

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

{{IPAlink/sandbox|pʰɪk}}pʰɪ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 {{IPAsym}} 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.

{{IPAlink/sandbox|m|label=Anytext}}m
{{IPAlink/sandbox|ɽ͡r|label=*}}ɽ͡r
{{IPAblink|ˤ|label=sˤ}}[ˤ]
{{IPAblink|ˤ|sˤ}}[]
{{IPAblink|301|i}}Error using {{IPA symbol}}: "301" not found in list

Other options: name, wikilink

Style

brackets