Template:hyphenation

From Wiktionary, the free dictionary
Jump to navigation Jump to search

Hyphenation: {{{2}}}


Usage

This template allows for the display of a word's hyphenation, which is often related to its syllables, but other times more heavily tied to its etymology. To use the template, 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, separate the hyphenations with a blank parameter (two pipe symbols, i.e. ||). For example, Italian quieto could be hyphenated as follows:

* {{hyphenation|it|quiè|to||qui|è|to||quié|to||qui|é|to}}

which displays as

  • Hyphenation: quiè‧to, qui‧è‧to, quié‧to, qui‧é‧to

The template can be used with the |caption= parameter to give more detailed usage information. For example, for English knowledge, use:

* {{hyphenation|en|knowl|edge|caption=Hyphenation US}}, {{hyphenation|en|caption=UK|know|ledge}}

which renders as

  • Hyphenation US: knowl‧edge, UK: know‧ledge

You can also use |nocaption=1 to turn off the caption altogether. For example:

* {{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[Edit template data]

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