Template:Blend

From The Languages of David J. Peterson
Revision as of 02:14, 7 September 2023 by Djpwikiadmin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Blend of first +‎ second


This template shows the etymology of a blend word. For further details on what qualifies as a "blend word", the Wikipedia article should be consulted.

Parameters

1=
The language code (see Project:Languages) of the language this term appears in.
2=, 3=, 4=, 5=
The terms that were used to form the blend. At least two must be provided.
sc=
A script code (see Project:Scripts) to override the default if necessary.
nocap=1
Show the initial text with a lowercase initial letter.
notext=1
Omit the initial text altogether. The first thing displayed will be the first term in the blend.
nocat=1
Do not categorize the entry. This should be used when mentioning blends in languages other than the current language.

The following parameters are available for each matching term in the numbered/positional parameters. The N must be replaced by the corresponding term index. For example, for the second part (positional parameter 3), use 2 for N. Most of these parameters correspond directly to the equivalent parameters in the standard {{l}} (and {{m}}) template.

altN=
The alternative display form. Equivalent to the second parameter of {{l}}.
tN=
A gloss/translation to show after the term. Equivalent to the third parameter of {{l}}. The parameter glossN= is deprecated for this purpose.
trN=
The transliteration, as in {{l}}.
posN=
The part of speech label to show after the term, as in {{l}}.

Examples

The entry תשחץ‎ might have in its etymology

{{blend|he|תַּשְׁבֵּץ|tr1=tashbéts|t1=crossword puzzle|חֵץ|t2=arrow|tr2=chets}}

yielding

Blend of תַּשְׁבֵּץ(tashbéts, crossword puzzle) +‎ חֵץ(chets, arrow)

See also


Template Data

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

TemplateData for Blend

Marks a word as a blend of multiple components

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
language code1 lang

the 2- or 3-letter language code for the current section

Example
en
Stringrequired
first component2

the first component of the word

Example
man
Page namerequired
second component3

the second component of the blend

Example
boobs
Page namerequired
script codesc

no description

Stringoptional
first component part of speechpos1

no description

Stringoptional
second component part of speechpos2

no description

Stringoptional
first component alternate textalt1

Text to show instead of the first component for the link to its entry

Stringoptional
second component alternate textalt2

Text to show instead of the second component for the link to its entry

Stringoptional
first component glosst1

brief gloss of the first component

Stringoptional
second component glosst2

brief gloss of the second component

Stringoptional
first component transliterationtr1

Transliteration of the first component (for non-Latin scripts)

Stringoptional
second component transliterationtr2

Transliteration of the second component (for non-Latin scripts)

Stringoptional
third component4

if the blend is of more than two components, params 4, 5, 6, ... may also be provided

Page nameoptional
fourth component5

if the blend is of more than two components, params 4, 5, 6, ... may also be provided

Page nameoptional