Pergi ke kandungan

Templat:AFA/documentation

Daripada Wikikamus
Pendokumenan untuk laman Templat:AFA. [edit]
Laman ini mengandungi maklumat penggunaan, kategori, pautan antara wiki dan kandungan lain yang menerangkan templat berkaitan.

This template adds the proper formatting and links to a pronunciation transcription in the International Phonetic Alphabet. It applies proper formatting and adds links to the language's IPA key using Module:IPA/templates. It should be used in pronunciation sections only. If the language has a template that automatically generates pronunciation from spelling, that template should be used instead of this one.

By default, the module counts the syllables in every phonemic transcription of a language that has diphthongs listed in Module:syllables, and a category is added based on the count, such as English 1-syllable words. To turn off syllable counting, add the parameter |nocount=1.

The module also tracks various IPA and some non-IPA symbols in particular languages' transcriptions (see Module:IPA/tracking). It gives a preview-only message in red if any symbols are invalid, based on the list in Module:IPA/data/symbols, and offers suggestions to correct some common substitutions.

Parameter[sunting]

|1=
The language code (see Wiktionary:List of languages) for the current language section. The parameter |lang= is a deprecated synonym; please do not use. If this is used, all numbered parameters move down by one.
|2=, |3=, |4= ...
Indicates one or more pronunciations. These should be formatted in correct IPA and be surrounded by slashes / / for phonemic representations, and square brackets [ ] for phonetic representations. They will be displayed separated by commas.
|qualN=
Specifies a qualifier to be placed before pronunciation N. This is formatted with the {{qualifier}} template.
|refN=
Specifies one or more reference notes to be placed after pronunciation N. The reference is placed in the ===References=== section at the bottom of the language's entry. See below for the format of this parameter. The parameter |nN= is a deprecated synonym; please do not use.
|nocount=1
Turns off syllable counting.
|sort=
Manual sortkey. Use sparingly; the makeSortKey method in Module:languages can usually generate the correct sortkey.

Lambang yang diterima[sunting]

Besides the official IPA, the following extensions are accepted:

‼ ᶑ ᵻ ᵿ ͈  ¡ ʬ ʭ ˭ ↑ ↓ ꟸ ᷽

as well as the following common substitutes:

¹ ² ³ ⁴ ⁵ 𝆏 𝆑 ⁻

Rujukan[sunting]

The |refN= parameter is used to specify one or more references for a given pronunciation and works similarly to the <ref> tag. For example, specifying |ref={{R:it:DiPI|bendo}} is similar to placing <ref>{{R:it:DiPI|bendo}}</ref> after the call to {{IPA}}, except that it can be used to insert references directly after a given pronunciation when there are several.

To specify multiple references, separate them with  !!! (optionally with spaces around it). For example, the following:

{{IPA|it|/ˈben.do/|/ˈbɛn.do/|ref2={{R:it:DiPI|bendo}} !!! {{R:it:Olivetti}}}}

is similar to the following:

{{IPA|it|/ˈben.do/|/ˈbɛn.do/}}<ref>{{R:it:DiPI|bendo}}</ref><ref>{{R:it:Olivetti}}</ref>

To specify the equivalent of the <ref name="NAME" group="GROUP">...</ref>, use <<name:NAME>> and/or <<group:GROUP>> directly following the reference text. For example, the following:

{{IPA|it|/ˈben.do/|/ˈbɛn.do/|ref2={{R:it:DiPI|bendo}}<<name:bendo>> !!! {{R:it:Olivetti}}}}

is similar to the following:

{{IPA|it|/ˈben.do/|/ˈbɛn.do/}}<ref name="bendo">{{R:it:DiPI|bendo}}</ref><ref>{{R:it:Olivetti}}</ref>

Similarly, the following:

{{IPA|it|/ˈben.do/|/ˈbɛn.do/|ref2={{R:it:DiPI|bendo}}<<name:bendo>><<group:pron>>}}

is similar to the following:

{{IPA|it|/ˈben.do/|/ˈbɛn.do/}}<ref name="bendo" group="pron">{{R:it:DiPI|bendo}}</ref>

To reference a prior name, as in <ref name="bendo"/>, leave the reference text blank:

{{IPA|it|/ˈben.do/|/ˈbɛn.do/|ref2=<<name:bendo>>}}

Similarly, to reference a prior name in a particular group, as in <ref name="bendo" group="pron"/>, use:

{{IPA|it|/ˈben.do/|/ˈbɛn.do/|ref2=<<name:bendo>><<group:pron>>}}

Lihat juga[sunting]

Data Templat[sunting]

Templat:TemplateData header

This template adds the proper formatting and links to a pronunciation transcription in the International Phonetic Alphabet. It applies proper formatting and adds links to the language's IPA key using Module:IPA/templates. It should be used in pronunciation sections only. If the language has a template that automatically generates pronunciation from spelling, that template should be used instead of this one.

Parameter templat[Sunting data templat]

Templat ini lebih menyukai pemformatan parameter dalam baris.

ParameterKeteranganJenisStatus
Kod bahasa1

The language code (see Wiktionary:Languages) for the current language section.

Contoh
en, ms, mnq, ja, mi
Rentetandiperlukan
IPA 12

Indicates one or more pronunciations. These should be formatted in correct IPA and be surrounded by slashes / / for phonemic representations, and square brackets [ ] for phonetic representations.

Contoh
/aɪ piː ˈeɪ/
Rentetandiperlukan
IPA 23

Indicates one or more pronunciations. These should be formatted in correct IPA and be surrounded by slashes / / for phonemic representations, and square brackets [ ] for phonetic representations.

Rentetanpilihan
IPA 34

Indicates one or more pronunciations. These should be formatted in correct IPA and be surrounded by slashes / / for phonemic representations, and square brackets [ ] for phonetic representations.

Rentetanpilihan
qualifier 1qual1

Specifies a qualifier to be placed before pronunciation 1. This is formatted with the {{qualifier}} template

Rentetanpilihan
qualifier 2qual2

Specifies a qualifier to be placed before pronunciation 2. This is formatted with the {{qualifier}} template

Rentetanpilihan
qualifier 3qual3

Specifies a qualifier to be placed before pronunciation 3. This is formatted with the {{qualifier}} template

Rentetanpilihan
reference 1ref1

Specifies a reference note to be placed after pronunciation 1. The reference is placed in the ===References=== section at the bottom of the language's entry.

Rentetanpilihan
reference 2ref2

Specifies a reference note to be placed after pronunciation 2. The reference is placed in the ===References=== section at the bottom of the language's entry.

Rentetanpilihan
reference 3ref3

Specifies a reference note to be placed after pronunciation 2. The reference is placed in the ===References=== section at the bottom of the language's entry.

Rentetanpilihan