Difference between revisions of "Template:IPA link/doc"
imported>Tamfang m |
imported>DePiep (+showsymbol option & examples) |
||
| Line 16: | Line 16: | ||
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 {{tl|IPAsym}} table. | 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 {{tl|IPAsym}} table. | ||
| + | |||
| + | ;Option "showsymbol" | ||
| + | The template can take the extra input like "showsymbol=A", and then ''show'' that symbol, while ''linking'' to the appropriate article. This might be useful when linking to non-IPA symbols is needed. | ||
| + | :<tt><nowiki>{{IPAlink|m|showsymbol=Anytext}}</nowiki></tt> → {{IPAlink|m|showsymbol=Anytext}} | ||
| + | :<tt><nowiki>{{IPAlink|ɽ͡r|showsymbol=*}}</nowiki></tt> → {{IPAlink|ɽ͡r|showsymbol=*}} | ||
=== Extending this template === | === Extending this template === | ||
Revision as of 15:36, 15 October 2010
| 40px | This is a documentation subpage for Template:IPA link. It contains usage information, categories and other content that is not part of the original template page. |
Template:SpecialChars The templates {{IPAlink}} and {{IPAblink}} automatically wikilink an IPA symbol to the respective sound article. IPAlink displays only the IPA letters; IPAblink (IPA bracket link) displays them within [brackets].
The conversion table is not defined in this template, but inherited from {{IPAsym}}.
Usage
These templates have only one parameter. If the IPA symbol is not defined in the IPAsym table, then an error message is returned.
- {{IPAlink|m}} → m
- {{IPAlink|ɡb}} → ɡb
- {{IPAblink|m}} → [m]
- {{IPAblink|ɡb}} → [ɡb]
- {{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"
The template can take the extra input like "showsymbol=A", and then show that symbol, while linking to the appropriate article. This might be useful when linking to non-IPA symbols is needed.
Extending this template
Please keep this template simple. In particular, please preserve the only responsibility of this template to providing a wikilink to the corresponding sound. If you wish to add new features, like enclosing the link in <big>...</big> tags, please create a new template (for example Template:IPAbiglink).
See also
- {{IPAsym}} – Provides the conversion table for this template. Input: IPA-symbol. Returns: Wikipedia-article name.
- {{IPAsound}} – Dispays a playable sound box. Input: IPA-symbol. Returns: Corresponding playable sound box.