الگو:IPAlink

از ویکی‌پدیا، دانشنامهٔ آزاد
پرش به ناوبری پرش به جستجو
توضیحات الگو[نمایش] [ویرایش] [تاریخچه] [پاکسازی]

The template {{IPAlink}} create a ابرپیوند from an IPA symbol to the respective phonetic article. IPAlink displays the bare IPA symbol. Showing IPA defined brackets like // is an input option.

The conversion list, from symbol to article name, is not defined in this template, but inherited from {{IPAsym}}.

{{IPAalink}}, {{IPAblink}} and {{IPAslink}} are earlier versions with defined angular <>, square [] or slash // brackets.

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
Brackets
  • ​bracket=​, or secondor third parameter: set IPA bracket. Options are: / [ < . Default is none. The angle bracket input can be ​<​ from a regular keyboard, shown is U+27E8 mathematical left angle bracket (HTML: &#10216; closing=U+27E9).
  • {{IPAlink|m|<}}<
  • {{IPAlink|m||<}}m
  • {{IPAlink|301||<}}Error using {{IPA symbol}}: "301" not found in list
  • {{IPAlink|m||[}}m
  • {{IPAlink|ɡb||[}}ɡb
  • {{IPAlink|ɡb||/}}ɡb
Label

(Note: showsymbol= does the same, but is deprecated)

Combined
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 "showsymbol" deprecated (use label= or 2nd unnamed parameter, preferred)

The template can take the extra input like "showsymbol=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|showsymbol=Anytext}}m
{{IPAlink|ɽ͡r|showsymbol=*}}ɽ͡r

Option name[ویرایش]

Full parameter list[ویرایش]

In the short form:

{{IPAlink
|
|
|
| name      =
| errortext =
| showsymbol=
}}

Equally, the longer including optional names:

{{IPAlink
| ipa symbol= <!-- or 1st unnamed parameter-->
| label     = <!-- or 2nd unnnamed paramter -->
| bracket   = <!-- or 3rd unnamed parameter -->
| name      = <!-- yes/no -->
| errortext =
| showsymbol= <!-- deprecated, use label= ==>
}}

Known issue[ویرایش]

  • Output should be enveloped in {{{1}}}

See also[ویرایش]

  • {{IPAlink}} – Creates an article link
  • {{IPAalink}} – Creates a link in angle brackets: "‹›", for showing the IPA symbol, while linking to the named article.
  • {{IPAblink}} – Creates a link in IPA brackets: "[]"
  • {{IPAslink}} – Creates a link in IPA slashes: "//"