User:Yair rand/etym

Possible script-edited etymology formats.

Option 1: Template calling template calling template...

Entry code

ETYM



ID template

FROM

{{#ifeq:{{{1}}}|<|{{#if:{{{5}}}|{{ETYM/{{{5}}}|<}}}}{{l|{{{2}}}|{{{3}}}|{{{4}}}}}, from | {{#if:{{{9}}}|, from {{l|{{{2}}}|{{{3}}}|{{{4}}}}}{{ETYM/{{{9}}}|>}}}}

Option 2: Huge templates holding the full tree, autoupdated regularly. {{From|123456
 * <=lang/word/dword
 * <<=lang/word/dword
 * <1=lang/word/dword
 * >2=lang/word/dword}}

Option 3: Strings of templates, parsed and figured out, and rematched together and autoupdated. {{From|lang|word}} {{from|lang|word}} {{from|lang|word}}. ({{descendant|lang|word}}) Well that's a mess...