Template:descendant tree/documentation: Difference between revisions
TheNightAvl (talk | contribs) No edit summary |
TheNightAvl (talk | contribs) (→Usage) |
||
Line 45: | Line 45: | ||
<table width=100%><tr><td width=50%><pre>{{descendant tree | <table width=100%><tr><td width=50%><pre>{{descendant tree | ||
|lfv:ejym | |lfv: ejym | ||
|ryn:firo | |ryn: firo | ||
|ryn-o:firaom | |ryn-o: firaom | ||
|ryn-pro:firáumă | |ryn-pro: firáumă | ||
|hrd-pro:p̄iḏɔ̄́məs | |hrd-pro: p̄iḏɔ̄́məs | ||
|rad-pro<lost:this is a custom lost text>: | |rad-pro<lost:this is a custom lost text>: | ||
}}</pre></td><td>→</td><td>{{descendant tree | }}</pre></td><td>→</td><td>{{descendant tree | ||
Line 63: | Line 63: | ||
<table width=100%><tr><td width=50%><pre>{{descendant tree | <table width=100%><tr><td width=50%><pre>{{descendant tree | ||
|lfv-pro:aðəh | |lfv-pro: aðəh | ||
|lfv:ao | |lfv: ao | ||
|hrd-pro:p̄ɯ́ḏɯs | |hrd-pro: p̄ɯ́ḏɯs | ||
|rad-pro<see>:hırs | |rad-pro<see>: hırs | ||
|ryn-pro:fúru | |ryn-pro: fúru | ||
|ryn:fur | |ryn: fur | ||
}}</pre></td><td>→</td><td>{{descendant tree | }}</pre></td><td>→</td><td>{{descendant tree | ||
|lfv-pro:aðəh | |lfv-pro:aðəh |
Revision as of 12:26, 30 May 2024
Uses Lua: |
Shortcut
{{desctree}} |
This template generates descendant trees which are automatically sorted. Borrowings are listed after inherited terms, and unattested forms are listed after attested terms.
Usage
This template has various features, and so will be discussed in sections.
Base functionality
Language entries are added as arguments in the format |code:term1|term2|term3…
. Space characters after the colon are ignored. Just as with {{descendant}}
, inline arguments can be used:
{{descendant tree |hrd-pro: ṯṓchus |rad-pro: hāšur |rad: háșe|háș |lfv: tus |ryn: húr<t:night-time religious service> }} | → |
Languages without a specified term are displayed as lost:
{{descendant tree |lfv:ejym |ryn:firo |ryn-o:firaom |ryn-pro:firáumă |hrd-pro:p̄iḏɔ̄́məs |rad-pro: }} | → |
|
Inline arguments can also be given after the language code, which would be the equivalent of an argument to {{descendant}}
:
{{descendant tree |lfv: ejym |ryn: firo |ryn-o: firaom |ryn-pro: firáumă |hrd-pro: p̄iḏɔ̄́məs |rad-pro<lost:this is a custom lost text>: }} | → |
|
Language-wide arguments without a defined value are interpreted as true
:
{{descendant tree |lfv-pro: aðəh |lfv: ao |hrd-pro: p̄ɯ́ḏɯs |rad-pro<see>: hırs |ryn-pro: fúru |ryn: fur }} | → |
Borrowing
Borrowing can specified either with the inline argument <bor>
or by using >
before the language code.
{{descendant tree |ryn<bor>:líra }} | → |
|
{{descendant tree |>rad:Riás }} | → |
|
The advantage of using >
, however, is that it can be sorted below its source language with the language code before >
.
{{descendant tree |lus-o:zāht |lus:zā |rad-o:ðātt |rad:lát |rad>ryn:lâtad }} | → |
Descendants of borrowings
The caveat to using the borrowing sorting system is that all descendants of borrowings must be individually specified as full extensions of the borrowed language code via _
:
{{descendant tree |rad-o:rījø̄r |rad-m:Ríǿr |rad:Rỷr |rad-o>ryn-o:rīŗa |rad-o>ryn-o_ryn:ríŗa }} | → |
This allows for borrowed doublets:
{{descendant tree |hrd-pro:Thwɛ̄́ljeŋjəs |rad-pro:Θwêljeŋjs |rad-o:Þø̄ljeŋjs |rad:Þýljenș |ryn-pro:Páiljeḡă |ryn-o:Pailjeŗ |ryn:Pailiŗ |ryn-pro>rad-pro:Pailjeɣs |ryn-pro>rad-pro_rad-o:Pailjews |ryn-pro>rad-pro_rad-o_rad:Paijøs }} | → |
|
Internal doublets
In the case of having multiple internal reflexes which then have their own descendants, a number can be put after the language code. This will be sorted into the most recent unnumbered historical form:
{{descendant tree |hrd-pro:lȳ́rḡis |ryn-pro:lȳ́rḡi |ryn-o:lȳr |ryn:lyr |rad-pro:lȳrdzir |rad-o:lȳrdzre |rad-m:lýrdzs |rad:lyerdzs<t:gas> |rad-o2:lȳrwre |rad-m2:lýrus |rad2:lýrus<t:air> }} | → |