Template:IPA link/testcases
< Template:IPA link
Jump to navigation
Jump to search
Revision as of 21:29, 24 July 2012 by imported>DePiep
| This is the template test cases page for the sandbox of Template:IPA link. Script error: No such module "Purge". to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki, see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins with these links: |
Usage
First parameter or ipa symbol= (required): Any IPA symbol, or its IPA number.
{{IPAlink|m}}→ m{{IPAlink|ɡb}}→ ɡb{{IPAlink|301}}→ Error using {{IPA symbol}}: "301" not found in list
- Label
label=, or 2nd, 3rd parameter, changes the label of the wikilink.
{{IPAlink|m|label=Any text}}→ m{{IPAlink|m|Any text2}}→ Any text2{{IPAlink|m||Any text3}}→ m{{IPAlink|ɡb|label=}}→ ɡb
- Brackets
bracket=, or 2nd or 3rd parameter: set IPA bracket. Options are:/ [ < (none). Default is none.
- 2nd parameter
{{IPAlink|m|<}}→ <{{IPAlink|301|<}}→ Error using {{IPA symbol}}: "301" not found in list{{IPAlink|m|[}}→ [{{IPAlink|ɡb|[}}→ [{{IPAlink|ɡb|/}}→ /
- 3rd parameter
{{IPAlink|m||<}}→ m{{IPAlink|301||<}}→ Error using {{IPA symbol}}: "301" not found in list{{IPAlink|m||[}}→ m{{IPAlink|ɡb||[}}→ ɡb{{IPAlink|ɡb||/}}→ ɡb
- 2nd/3rd parameter, the other one as label
{{IPAlink|m|two-label|<}}→ two-label{{IPAlink|301|2=two-label|<}}→ Error using {{IPA symbol}}: "301" not found in list{{IPAlink|301|2=two-label|3=<}}→ Error using {{IPA symbol}}: "301" not found in list
{{IPAlink|m|[|three-label}}→ [{{IPAlink|ɡb|[|three-label}}→ [{{IPAlink|ɡb|/|label=named-label}}→ /
- 2nd/3rd parameter label, no bracket
{{IPAlink|m|two-label}}→ two-label{{IPAlink|301|2=two-label}}→ Error using {{IPA symbol}}: "301" not found in list{{IPAlink|301|2=two-label}}→ Error using {{IPA symbol}}: "301" not found in list
{{IPAlink|m||three-label}}→ m{{IPAlink|ɡb||three-label}}→ ɡb{{IPAlink|ɡb||label=named-label}}→ ɡb
- bracket named, 2 or 3 as label
{{IPAlink|m|two-label|bracket=<}}→ two-label{{IPAlink|301|2=two-label|bracket=<}}→ Error using {{IPA symbol}}: "301" not found in list{{IPAlink|301|2=two-label|bracket=<}}→ Error using {{IPA symbol}}: "301" not found in list
{{IPAlink|m|bracket=<|three-label}}→ three-label{{IPAlink|ɡb|bracket=<|three-label}}→ three-label{{IPAlink|ɡb|bracket=<|label=named-label}}→ ɡb
- Error situation
If the IPA symbol is not defined in the IPAsym table, then an error message is returned.
- {{IPAlink|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|m|label=Anytext}} → m
- {{IPAlink|ɽ͡r|label=*}} → ɽ͡r
- {{IPAblink|ˤ|label=sˤ}} → [ˤ]
- {{IPAblink|ˤ|sˤ}} → [sˤ]
- {{IPAblink|301|i}} → Error using {{IPA symbol}}: "301" not found in list