Template:IPA link/testcases
< Template:IPA link
Jump to navigation
Jump to search
Revision as of 15:50, 19 July 2012 by imported>DePiep (→Usage)
| 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/sandbox|m}}→ m{{IPAlink/sandbox|ɡb}}→ ɡb{{IPAlink/sandbox|301}}→ Error using {{IPA symbol}}: "301" not found in list
- Label
label=, or 2nd, 3rd parameter, changes the label of the wikilink.
{{IPAlink/sandbox|m|label=Any text}}→ m{{IPAlink/sandbox|m|Any text2}}→ Any text2{{IPAlink/sandbox|m||Any text3}}→ m{{IPAlink/sandbox|ɡb|label=}}→ ɡb
{{IPAlink/sandbox|m||label=Any text}}→ m{{IPAlink/sandbox|m||Any text3}}→ m{{IPAlink/sandbox|ɡb||label=}}→ ɡb
- Brackets
bracket=, or 2nd or 3rd parameter: set IPA bracket. Options are:/ [ < (none). Default is none.
- 2nd parameter
{{IPAlink/sandbox|m|<}}→ <{{IPAlink/sandbox|301|<}}→ Error using {{IPA symbol}}: "301" not found in list{{IPAlink/sandbox|m|[}}→ [{{IPAlink/sandbox|ɡb|[}}→ [{{IPAlink/sandbox|ɡb|/}}→ /
- 3rd parameter
{{IPAlink/sandbox|m||<}}→ m{{IPAlink/sandbox|301||<}}→ Error using {{IPA symbol}}: "301" not found in list{{IPAlink/sandbox|m||[}}→ m{{IPAlink/sandbox|ɡb||[}}→ ɡb{{IPAlink/sandbox|ɡb||/}}→ ɡb
- 2nd/3rd parameter, the other one as label
{{IPAlink/sandbox|m|two-label|<}}→ two-label{{IPAlink/sandbox|301|2=two-label|<}}→ Error using {{IPA symbol}}: "301" not found in list{{IPAlink/sandbox|301|2=two-label|3=<}}→ Error using {{IPA symbol}}: "301" not found in list
{{IPAlink/sandbox|m|[|three-label}}→ [{{IPAlink/sandbox|ɡb|[|three-label}}→ [{{IPAlink/sandbox|ɡb|/|label=named-label}}→ /
- bracket named, 2 or 3 as label
{{IPAlink/sandbox|m|two-label|bracket=<}}→ two-label{{IPAlink/sandbox|301|2=two-label|bracket=<}}→ Error using {{IPA symbol}}: "301" not found in list{{IPAlink/sandbox|301|2=two-label|bracket=<}}→ Error using {{IPA symbol}}: "301" not found in list
{{IPAlink/sandbox|m|bracket=<|three-label}}→ three-label{{IPAlink/sandbox|ɡb|bracket=<|three-label}}→ three-label{{IPAlink/sandbox|ɡ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/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ˤ}} → [sˤ]
- {{IPAblink|301|i}} → Error using {{IPA symbol}}: "301" not found in list
Other options: name, wikilink
{{IPAlink/sandbox|m|/|name=yes}}→ /{{IPAlink/sandbox|m|>|wl=no}}→ >
Style
{{IPAlink/sandbox|m|style=background:#f7a6c5; font-size:140%;}}→ m