Template:rootsee
Appearance
- The following documentation is located at Template:rootsee/documentation. [edit]
- Useful links: subpage list • links • redirects • transclusions • errors (parser/module) • sandbox
Uses Lua:
This template is used to create expandable category trees at entries for roots.
Parameters
|1=
- Destination language of category Category:Destination terms derived from the Source root *root-. If left out or set to the value
+
, you get the umbrella category Category:Terms derived from the Source root *root-. |2=
- Source language of category Category:Destination terms derived from the Source root *root-. If left out or set to the value
+
, or equal to the destination language, you instead get Category:Destination terms belonging to the root *root-. However, if both source and destination language are left out or set to+
, and the current page is in the Reconstruction namespace, the source language is inferred from the pagename and you get Category:Terms derived from the Source root *root- (otherwise you get an error). If the destination language is a family code and not a valid language code, the family code is converted to the corresponding proto-language. This means you can writeine
for Proto-Indo-European,iir
for Proto-Indo-Iranian,inc
for Proto-Indo-Aryan, etc. |3=
- Root. If left out or set to the value
+
, it is taken from the subpage name (i.e. after a slash in the case of Reconstruction namespace items). If the source language is reconstruction-only, you can leave out the initial *. In addition, a hyphen may be added according to the following algorithm:- If
|hyphen=
is specified, it controls the hyphen addition or non-addition. - If there is a space or hyphen in the root already, no hyphen is added.
- If the root is in a non-Latin script, no hyphen is added.
- Otherwise:
- If the source language is Navajo, a hyphen is added onto the beginning.
- If the source language is Pali, no hyphen is added.
- Otherwise add a hyphen onto the end.
- If
|id=
- Sense ID of the root; needed especially for Navajo.
|hyphen=
- Control whether and where a hyphen is added. Possible values are
before
,after
,both
(add on both sides) andnone
orno
(don't add).
Examples
{{rootsee|ru|ine|h₁rewdʰ}}
{{rootsee|he|ine|bʰewgʰ}}
{{rootsee|he||כ־ת־ב}}
{{rootsee|nv||NÁ|id=migrate}}
{{rootsee|pi||su}}
On the page Reconstruction:Proto-Indo-European/*gʷem-:
{{rootsee}}
See also
{{root}}
,{{he-rootbox}}
,{{ar-root}}
,{{head|LANG|root}}
{{suffixsee}}
,{{prefixsee}}
,{{interfixsee}}
,{{circumfixsee}}