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

From blackwiki
Jump to navigation Jump to search
imported>DePiep
imported>DePiep
Line 3: Line 3:
  
 
=== Usage ===
 
=== Usage ===
* '''First parameter''' or '''<code>ipa symbol=</code>''' (required): Any IPA symbol, or its IPA number.
+
'''First parameter''' or '''<code>ipa symbol=</code>''' (required): Any IPA symbol, or its IPA number.
 
* {{tlx|IPAlink/sandbox|m}} &rarr; {{IPAlink/sandbox|m}}
 
* {{tlx|IPAlink/sandbox|m}} &rarr; {{IPAlink/sandbox|m}}
 
* {{tlx|IPAlink/sandbox|ɡb}} &rarr; {{IPAlink/sandbox|ɡb}}
 
* {{tlx|IPAlink/sandbox|ɡb}} &rarr; {{IPAlink/sandbox|ɡb}}
Line 9: Line 9:
  
 
;Label
 
;Label
* '''<code>label=</code>''', or 2nd, 3rd parameter, changes the label of the wikilink.  
+
'''<code>label=</code>''', or 2nd, 3rd parameter, changes the label of the wikilink.  
 
* {{tlx|IPAlink/sandbox|m<nowiki>|label=Any text</nowiki>}} &rarr; {{IPAlink/sandbox|m|label=Any text}}
 
* {{tlx|IPAlink/sandbox|m<nowiki>|label=Any text</nowiki>}} &rarr; {{IPAlink/sandbox|m|label=Any text}}
* {{tlx|IPAlink/sandbox|m<nowiki>|Any text</nowiki>}} &rarr; {{IPAlink/sandbox|m|Any text}}
+
* {{tlx|IPAlink/sandbox|m<nowiki>|Any text2</nowiki>}} &rarr; {{IPAlink/sandbox|m|Any text2}}
 +
* {{tlx|IPAlink/sandbox|m<nowiki>||Any text3</nowiki>}} &rarr; {{IPAlink/sandbox|m||Any text3}}
 
* {{tlx|IPAlink/sandbox|ɡb<nowiki>|label=</nowiki>}} &rarr; {{IPAlink/sandbox|ɡb|label=}}
 
* {{tlx|IPAlink/sandbox|ɡb<nowiki>|label=</nowiki>}} &rarr; {{IPAlink/sandbox|ɡb|label=}}
  

Revision as of 15:50, 19 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


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