Template:Prefix

From The Languages of David J. Peterson
Jump to navigation Jump to search

prefix- +‎ base


This template is used in the etymology section. Use

{{prefix|language code|prefix|root}}

where prefix is the prefix, excluding hyphen, and root is the root of the term. For instance, a simple etymology of undo could be created with:

{{prefix|en|un|do}}

which evaluates to:

un- +‎ do

Other arguments

|sc=
Script code. See Project:Scripts
|t1=, |t2=
Glosses
|tr1=, |tr2=
Transliteration of word 1 and word 2 respectively (for non-Latin scripts)
|alt1=, |alt2=
Alternate text to display instead of the links.
|pos1=, |pos2=
Part-of-speech information. Additional unquoted explanatory text, coming after the transliteration and gloss.
|nocat=1
Suppresses categorization

Examples

{{prefix|la|in|fīnītus}}

gives the ouput:

Lua error in package.lua at line 80: module 'Module:affix/lang-data/la' not found.

If prefixes or words are written in non-Latin scripts, transliteration parameters may need to be added.

{{prefix|ru|с|tr1=s|gloss1=(along) with|путник|tr2=putnik|gloss2=traveller}}

gives the output

с- (s-, (along) with) +‎ путник (putnik, traveller)

See also

gu:ઢાંચો:ઉપસર્ગ ja:テンプレート:prefix


Template Data

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

TemplateData for Prefix

No description.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
language code1 lang

no description

Example
en
Stringrequired
prefix2

the prefix of the word

Example
re
Page namerequired
word root3

the root of the word

Example
start
Page namesuggested
script codesc

no description

Stringoptional
prefixal part of speechpos1

no description

Stringoptional
root word part of speechpos2

no description

Stringoptional
prefix alternate textalt1

Text to show instead of the prefix for its link

Stringoptional
root word alternate textalt2

Text to show instead of the root word for its link

Stringoptional
prefix glosst1

brief gloss of the prefix

Stringoptional
root word glosst2

brief gloss of the word base

Stringoptional
prefix transliterationtr1

Transliteration of the prefix (for non-Latin scripts)

Stringoptional
root word transliterationtr2

Transliteration of the root word (for non-Latin scripts)

Stringoptional