แม่แบบ:hyphenation
การแบ่งพยางค์: {{{2}}}
- The following documentation is located at แม่แบบ:hyphenation/documentation. [edit]
- Useful links: subpage list • links • redirects • transclusions • errors (parser/module) • sandbox
Usage
แก้ไขThis template allows for the easy display of a word's hyphenation, which is often related to its syllables but other times more heavily tied to its etymology. An easy way to use the template is to mark each possible hyphenation location with a vertical bar (a.k.a. a "pipe", "|"). The template will then display the hyphenation with a hyphenation point (U+2027, "‧") separating each part of the term. Hyphenation information should be placed in the "Pronunciation" section of an entry.
For example on the page for measure the hyphenation is recorded in the form
* {{hyphenation|en|mea|sure}}
which displays as
- การแบ่งพยางค์: mea‧sure
For cases with more than one possible hyphenation the template can be used with the caption
parameter to give more detailed usage information. Alternatively, the nocaption
parameter can be used to turn off the caption altogether. As an example of the caption
parameter's use, the code for the hyphenation for knowledge is
* {{hyphenation|en|knowl|edge|caption=Hyphenation US}}, {{hyphenation|en|caption=UK|know|ledge}}
and renders as
- Hyphenation US: knowl‧edge, UK: know‧ledge
As an example of the nocaption
parameter,
* {{hyphenation|en|knowl|edge|nocaption=1}}
displays as
- knowl‧edge
TemplateData
แก้ไขAllows for the easy display of a word's hyphenation, which is often related to its syllables but other times more heavily tied to its etymology. Displays the hyphenation with a hyphenation point (U+2027, "‧") separating each part of the term. Hyphenation information should be placed in the "Pronunciation" section of an entry.
พารามิเตอร์ | คำอธิบาย | ชนิด | สถานะ | |
---|---|---|---|---|
language code | 1 | The language code for the term being hyphenated.
| สตริง | จำเป็น |
syllable 1 | 2 | The first syllable of the word.
| สตริง | จำเป็น |
syllable 2 | 3 | The second syllable of the word.
| สตริง | แนะนำ |
syllable 3 | 4 | The third syllable of the word.
| สตริง | เลือกได้ |
syllable 4 | 5 | The fourth syllable of the word.
| สตริง | เลือกได้ |
syllable 5 | 6 | The fifth syllable of the word.
| สตริง | เลือกได้ |
syllable 6 | 7 | The sixth syllable of the word. | สตริง | เลือกได้ |
syllable 7 | 8 | The seventh syllable of the word. | สตริง | เลือกได้ |
syllable 8, ... | 9 | The eighth syllable of the word. | สตริง | เลือกได้ |
caption | caption | Overrides "Hyphenation" as caption if provided.
| บรรทัด | เลือกได้ |
disable caption | nocaption | If "1", the caption "Hyphenation:" is disabled.
| จำนวน | เลือกได้ |