แม่แบบ:prefix
- The following documentation is located at แม่แบบ:prefix/documentation. [edit]
- Useful links: subpage list • links • redirects • transclusions • errors (parser/module) • sandbox
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:
Other arguments
[แก้ไข]|sc=- Script code. See Wiktionary: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:
in- (อิน-) + fīnītus (ฟี̄นี̄ตุซ)
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
See also
[แก้ไข]
Template Data
[แก้ไข]ไม่มีคำอธิบาย
| พารามิเตอร์ | คำอธิบาย | ชนิด | สถานะ | |
|---|---|---|---|---|
| language code | 1 lang | ไม่มีคำอธิบาย
| สตริง | จำเป็น |
| prefix | 2 | the prefix of the word
| ชื่อหน้า | จำเป็น |
| word root | 3 | the root of the word
| ชื่อหน้า | แนะนำ |
| script code | sc | ไม่มีคำอธิบาย | สตริง | ไม่บังคับ |
| prefixal part of speech | pos1 | ไม่มีคำอธิบาย | สตริง | ไม่บังคับ |
| root word part of speech | pos2 | ไม่มีคำอธิบาย | สตริง | ไม่บังคับ |
| prefix alternate text | alt1 | Text to show instead of the prefix for its link | สตริง | ไม่บังคับ |
| root word alternate text | alt2 | Text to show instead of the root word for its link | สตริง | ไม่บังคับ |
| prefix gloss | t1 | brief gloss of the prefix | สตริง | ไม่บังคับ |
| root word gloss | t2 | brief gloss of the word base | สตริง | ไม่บังคับ |
| prefix transliteration | tr1 | Transliteration of the prefix (for non-Latin scripts) | สตริง | ไม่บังคับ |
| root word transliteration | tr2 | Transliteration of the root word (for non-Latin scripts) | สตริง | ไม่บังคับ |