Jump to content

Template:IPAalink/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Lfdder (talk | contribs)
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> &rarr; {{IPAalink|m}}
"type": "string",
:<tt><nowiki>{{IPAalink|301}}</nowiki></tt> &rarr; {{IPAalink|301}}
"required": true
:<tt><nowiki>{{IPAblink|m}}</nowiki></tt> &rarr; {{IPAblink|m}}
},
:<tt><nowiki>{{IPAblink|ɡb}}</nowiki></tt> &rarr; {{IPAblink|ɡb}}
"2": {
:<tt><nowiki>{{IPAslink|ɡb}}</nowiki></tt> &rarr; {{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> &rarr; {{IPAalink|m|showsymbol=Anytext}}
"description": "Adds a link to sound if available",
:<tt><nowiki>{{IPAalink|ɽ͡r|showsymbol=*}}</nowiki></tt> &rarr; {{IPAalink|ɽ͡r|showsymbol=*}}
"example": "yes",
:<tt><nowiki>{{IPAblink|ˤ|showsymbol=sˤ}}</nowiki></tt> &rarr; {{IPAblink|ˤ|showsymbol=sˤ}}
"type": "string"
:<tt><nowiki>{{IPAblink|ˤ|sˤ}}</nowiki></tt> &rarr; {{IPAblink|ˤ|sˤ}}
},
:<tt><nowiki>{{IPAblink|301|&#105;}}</nowiki></tt> &rarr; {{IPAblink|301|&#105;}}
"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

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.

Template parameters

ParameterDescriptionTypeStatus
IPA symbol1

IPA symbol whose article to link to

Example
ʉː
Stringrequired
Display text2

Text to show instead of the IPA symbol

Stringoptional
Audioaudio

Adds a link to sound if available

Example
yes
Stringoptional
Error texterrortext

no description

Example
blank
Stringoptional