Template:prefix: difference between revisions
m Reverted edits by Vahagn Petrosyan (Talk); changed back to last version by Nadando |
similar to Ruakh's recent edit to template:suffix (but this uses {{{2|}}} whereas that used {{{1}}} not {{{1|}}} |
||
Line 6: | Line 6: | ||
-->|tr={{#if:{{{tr1|}}}|{{{tr1|}}}-}}<!-- |
-->|tr={{#if:{{{tr1|}}}|{{{tr1|}}}-}}<!-- |
||
-->|sc={{{sc|Xyzy}}}<!-- |
-->|sc={{{sc|Xyzy}}}<!-- |
||
-->}} +‎ {{ |
-->}} +‎ {{#if:{{{2|}}}{{{alt2|}}}{{{gloss2|}}}{{{t2|}}}{{{tr2|}}}|<!-- |
||
--> |
-->{{term<!-- |
||
-->|{{#if:{{{alt2|}}}|{{{alt2}}}|{{{2}}}}}<!-- |
-->|{{{2|}}}<!-- |
||
-->|{{#if:{{{alt2|}}}|{{{alt2}}}|{{{2}}}}}<!-- |
|||
-->|{{{gloss2|{{{t2|}}}}}}<!-- |
-->|{{{gloss2|{{{t2|}}}}}}<!-- |
||
-->|lang={{#ifeq:{{{lang|}}}|-||{{{lang|}}}}}<!-- |
-->|lang={{#ifeq:{{{lang|}}}|-||{{{lang|}}}}}<!-- |
||
-->|tr={{{tr2|}}}<!-- |
-->|tr={{{tr2|}}}<!-- |
||
-->|sc={{{sc|Xyzy}}}<!-- |
-->|sc={{{sc|Xyzy}}}<!-- |
||
-->}}<!-- |
|||
-->}}{{#switch:{{{lang|en}}}|-= |#default={{#ifeq:{{NAMESPACE}}||[[Category:{{language|{{{lang|en}}}}} {{{pos|word}}}s prefixed with {{{1}}}{{#switch:{{{lang}}}|he|yi=־<!--x-->|-}}]]}}}}<noinclude>{{documentation}}</noinclude> |
-->}}{{#switch:{{{lang|en}}}|-= |#default={{#ifeq:{{NAMESPACE}}||[[Category:{{language|{{{lang|en}}}}} {{{pos|word}}}s prefixed with {{{1}}}{{#switch:{{{lang}}}|he|yi=־<!--x-->|-}}]]}}}}<noinclude>{{documentation}}</noinclude> |
Revision as of 07:06, 31 December 2010
(deprecated template usage) Lua error in Module:parameters at line 116: Parameter "sc" should be a valid script code; the value "Xyzy" is not valid. See WT:LOS. +
- The following documentation is located at Template: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:
(deprecated template usage) Lua error in Module:parameters at line 116: Parameter "sc" should be a valid script code; the value "Xyzy" is not valid. See WT:LOS. + (deprecated template usage) Lua error in Module:parameters at line 116: Parameter "sc" should be a valid script code; the value "Xyzy" is not valid. See WT:LOS.
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.
|id1=
,|id2=
- Sense ids
|nocat=1
- Suppresses categorization
Examples
{{prefix|la|in|fīnītus}}
gives the ouput:
(deprecated template usage) Lua error in Module:parameters at line 116: Parameter "sc" should be a valid script code; the value "Xyzy" is not valid. See WT:LOS. + (deprecated template usage) Lua error in Module:parameters at line 116: Parameter "sc" should be a valid script code; the value "Xyzy" is not valid. See WT:LOS.
If prefixes or words are written in non-Latin scripts, transliteration parameters may need to be added.
{{prefix|ru|с|tr1=s|t1=(along) with|путник|tr2=putnik|t2=traveller}}
gives the output
(deprecated template usage) Lua error in Module:parameters at line 116: Parameter "sc" should be a valid script code; the value "Xyzy" is not valid. See WT:LOS. + (deprecated template usage) Lua error in Module:parameters at line 116: Parameter "sc" should be a valid script code; the value "Xyzy" is not valid. See WT:LOS.
See also
Template Data
TemplateData for prefix
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
language code | 1 lang | no description
| String | required |
prefix | 2 | the prefix of the word
| Page name | required |
word root | 3 | the root of the word
| Page name | suggested |
script code | sc | no description | String | optional |
prefixal part of speech | pos1 | no description | String | optional |
root word part of speech | pos2 | no description | String | optional |
prefix alternate text | alt1 | Text to show instead of the prefix for its link | String | optional |
root word alternate text | alt2 | Text to show instead of the root word for its link | String | optional |
prefix gloss | t1 | brief gloss of the prefix | String | optional |
root word gloss | t2 | brief gloss of the word base | String | optional |
prefix transliteration | tr1 | Transliteration of the prefix (for non-Latin scripts) | String | optional |
root word transliteration | tr2 | Transliteration of the root word (for non-Latin scripts) | String | optional |