Template:rootsee/documentation

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 write   for Proto-Indo-European,   for Proto-Indo-Iranian,   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 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, otherwise onto the end.


 * id
 * Sense ID of the root; needed especially for Navajo.

Examples
On the page Reconstruction:Proto-Indo-European/*gʷem-: