Template:hyphenation

Definition from Wiktionary, the free dictionary
Jump to navigation Jump to search

Hyphenation: {{{2}}}


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

  • Hyphenation: 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

This is the TemplateData documentation for this template used by VisualEditor and other tools.

TemplateData for hyphenation

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.

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
language code1

The language code for the term being hyphenated.

Example
en
Stringrequired
syllable 12

The first syllable of the word.

Example
phi
Stringrequired
syllable 23

The second syllable of the word.

Example
lo
Stringsuggested
syllable 34

The third syllable of the word.

Example
soph
Stringoptional
syllable 45

The fourth syllable of the word.

Example
i
Stringoptional
syllable 56

The fifth syllable of the word.

Example
cal
Stringoptional
syllable 67

The sixth syllable of the word.

Stringoptional
syllable 78

The seventh syllable of the word.

Stringoptional
syllable 89

The eighth syllable of the word. Additional syllables can be added manually.

Stringoptional
Captioncaption

Overrides "Hyphenation" as caption if provided.

Example
Hyphenation (US)
Lineoptional
disable captionnocaption

If "1", the caption "Hyphenation:" is disabled.

Example
1
Numberoptional