10,731
edits
TheNightAvl (talk | contribs) m (TheNightAvl moved page Template:desctree/documentation to Template:descendant tree/documentation) |
TheNightAvl (talk | contribs) No edit summary |
||
Line 3: | Line 3: | ||
{{uses lua|Module:descendants}} | {{uses lua|Module:descendants}} | ||
{{shortcut|Template:desctree}} | {{shortcut|Template: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>|code:term1|term2|term3…</code>. Just as with {{temp|descendant}}, inline arguments can be used: | |||
<table width=100%><tr><td width=50%><pre>{{descendant tree | |||
|hrd-pro:ṯṓchus | |||
|rad-pro:hāšur | |||
|rad:háșe|háș | |||
|lfv:tus | |||
|ryn:húr<t:night-time religious service> | |||
}}</pre></td><td>→</td><td>{{descendant tree | |||
|hrd-pro:ṯṓchus | |||
|rad-pro:hāšur | |||
|rad:háșe|háș | |||
|lfv:tus | |||
|ryn:húr<t:night-time religious service> | |||
}}</td></tr></table> | |||
Languages without a specified term are displayed as '''lost''': | |||
<table width=100%><tr><td width=50%><pre>{{descendant tree | |||
|lfv:ejym | |||
|ryn:firo | |||
|ryn-o:firaom | |||
|ryn-pro:firáumă | |||
|hrd-pro:p̄iḏɔ̄́məs | |||
|rad-pro: | |||
}}</pre></td><td>→</td><td>{{descendant tree | |||
|lfv:ejym | |||
|ryn:firo | |||
|ryn-o:firaom | |||
|ryn-pro:firáumă | |||
|hrd-pro:p̄iḏɔ̄́məs | |||
|rad-pro: | |||
}}</td></tr></table> | |||
Inline arguments can also be given after the language code, which would be the equivalent of an argument to {{temp|descendant}}: | |||
<table width=100%><tr><td width=50%><pre>{{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>: | |||
}}</pre></td><td>→</td><td>{{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>: | |||
}}</td></tr></table> | |||
Language-wide arguments without a defined value are interpreted as <code>true</code>: | |||
<table width=100%><tr><td width=50%><pre>{{descendant tree | |||
|lfv-pro:aðəh | |||
|lfv:ao | |||
|hrd-pro:p̄ɯ́ḏɯs | |||
|rad-pro<see>:hırs | |||
|ryn-pro:*fúru | |||
|ryn:fur | |||
}}</pre></td><td>→</td><td>{{descendant tree | |||
|lfv-pro:aðəh | |||
|lfv:ao | |||
|hrd-pro:p̄ɯ́ḏɯs | |||
|rad-pro<see>:hırs | |||
|ryn:fur | |||
|ryn-pro:*fúru | |||
}}</td></tr></table> |