Template:IPAalink/doc: Difference between revisions
Appearance
Content deleted Content added
m removing over-categorization (via WP:JWB) |
|||
(5 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
#REDIRECT [[Template:IPA link/doc]] |
|||
{{Documentation subpage}} |
|||
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> |
|||
{{SpecialChars}} |
|||
The templates {{tlb|IPAalink}}, {{tlb|IPAblink}} and {{tlb|IPAslink}} automatically [[wikilink]] an IPA symbol to the respective sound article and provide IPA-defined brackets. IPA'''a'''link (IPA angle bracket link) displays them within ‹angle brackets›, IPA'''b'''link (IPA bracket link) displays them within [square brackets], and IPA'''s'''link displays the symbol between /slashes/. |
|||
{{Redirect category shell| |
|||
The conversion table is not defined in this template, but inherited from {{tl|IPAsym}}. |
|||
{{R from documentation page}} |
|||
{{R to documentation page}} |
|||
}} |
|||
== Template Data == |
|||
For a more general IPA-linking template, with multiple options including IPA brackting, see {{tlx|IPAlink}}. |
|||
{{TemplateDataHeader}} |
|||
<templatedata> |
|||
=== Usage === |
|||
{ |
|||
These templates have one parameter, and an optional second. |
|||
"params": { |
|||
* '''First parameter''': Any IPA symbol, ''or'' its IPA number. |
|||
"1": { |
|||
* '''<code>showsymbol=</code>''', or use '''second parameter''': changes the visible output into any text. <br> |
|||
"label": "IPA symbol", |
|||
If the IPA symbol is not defined in the IPAsym table, then an error message is returned. |
|||
"description": "IPA symbol whose article to link to", |
|||
"example": "ʉː", |
|||
:<tt><nowiki>{{IPAalink|m}}</nowiki></tt> → {{IPAalink|m}} |
|||
"type": "string", |
|||
:<tt><nowiki>{{IPAalink|301}}</nowiki></tt> → {{IPAalink|301}} |
|||
"required": true |
|||
:<tt><nowiki>{{IPAblink|m}}</nowiki></tt> → {{IPAblink|m}} |
|||
}, |
|||
:<tt><nowiki>{{IPAblink|ɡb}}</nowiki></tt> → {{IPAblink|ɡb}} |
|||
"2": { |
|||
:<tt><nowiki>{{IPAslink|ɡb}}</nowiki></tt> → {{IPAslink|ɡb}} |
|||
"label": "Display text", |
|||
"description": "Text to show instead of the IPA symbol", |
|||
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. |
|||
"type": "string" |
|||
}, |
|||
;Option "showsymbol" (2nd, unnamed parameter) |
|||
"audio": { |
|||
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. |
|||
"label": "Audio", |
|||
:<tt><nowiki>{{IPAalink|m|showsymbol=Anytext}}</nowiki></tt> → {{IPAalink|m|showsymbol=Anytext}} |
|||
"description": "Adds a link to sound if available", |
|||
:<tt><nowiki>{{IPAalink|ɽ͡r|showsymbol=*}}</nowiki></tt> → {{IPAalink|ɽ͡r|showsymbol=*}} |
|||
"example": "yes", |
|||
:<tt><nowiki>{{IPAblink|ˤ|showsymbol=sˤ}}</nowiki></tt> → {{IPAblink|ˤ|showsymbol=sˤ}} |
|||
"type": "string" |
|||
:<tt><nowiki>{{IPAblink|ˤ|sˤ}}</nowiki></tt> → {{IPAblink|ˤ|sˤ}} |
|||
}, |
|||
:<tt><nowiki>{{IPAblink|301|i}}</nowiki></tt> → {{IPAblink|301|i}} |
|||
"errortext": { |
|||
"label": "Error text", |
|||
=== See also === |
|||
"example": "blank", |
|||
* {{tl|IPAlink}} – same, but with brackets optional and more options |
|||
"type": "string" |
|||
{{IPA templates}} |
|||
} |
|||
} |
|||
<includeonly><!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> |
|||
} |
|||
[[Category:IPA symbol templates]] |
|||
</templatedata> |
|||
[[ja:Template:IPAalink]] |
|||
</includeonly> |
Latest revision as of 03:58, 29 June 2022
Redirect to:
This page is a redirect. The following categories are used to track and monitor this redirect:
|
Template Data
[edit]This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:IPAalink in articles based on its TemplateData.
TemplateData for IPAalink
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
IPA symbol | 1 | IPA symbol whose article to link to
| String | required |
Display text | 2 | Text to show instead of the IPA symbol | String | optional |
Audio | audio | Adds a link to sound if available
| String | optional |
Error text | errortext | no description
| String | optional |