Template:inh-lite
Jump to navigation
Jump to search
- The following documentation is located at Template:inh-lite/documentation. [edit]
- Useful links: subpage list • links • redirects • transclusions • errors (parser/module) • sandbox (diff)
{{inh-lite}}
and {{der-lite}}
are intended to be very lightweight replacements for {{inh}}
and {{der}}
on pages that exceed the Lua memory limit. They display a basic Latin-script etymological link without calling into Lua.
Usage:
{{inh-lite|CHILD LANGUAGE CODE|PARENT LANGUAGE CODE|PAGE NAME|optional DISPLAY TEXT|optional GLOSS}} {{inh-lite|CHILD LANGUAGE CODE|PARENT LANGUAGE CODE|PAGE NAME|t=optional GLOSS}} {{inh-lite|CHILD LANGUAGE CODE|PARENT LANGUAGE CODE|-}} {{der-lite|CHILD LANGUAGE CODE|PARENT LANGUAGE CODE|PAGE NAME|optional DISPLAY TEXT|optional GLOSS}} {{der-lite|CHILD LANGUAGE CODE|PARENT LANGUAGE CODE|PAGE NAME|t=optional GLOSS}} {{der-lite|CHILD LANGUAGE CODE|PARENT LANGUAGE CODE|-}}
Examples:
{{inh-lite|fr|la|tabula}}
: Latin tabula{{der-lite|fr|la|tabula}}
: Latin tabula{{inh-lite|fr|la|tabula||tablet}}
: Latin tabula (“tablet”){{der-lite|fr|la|tabula||tablet}}
: Latin tabula (“tablet”){{inh-lite|fr|la|tabula|t=tablet}}
: Latin tabula (“tablet”){{inh-lite|fr|la|tabula|t=tablet}}
: Latin tabula (“tablet”){{inh-lite|fr|la|-}}
: Latin{{der-lite|fr|la|-}}
: Latin
These templates are intended to be very simple. Therefore, the scope of the templates has been defined as follows:
- The templates do not call into Lua, ever.
- These templates use
{{m-lite}}
, so all limitations that apply there also apply here. In particular:- Automatic normalisation of entry names (for example, the removal of macrons in Latin) is not provided. Use parameter 4 in these cases:
{{inh-lite|fr|la|apposco|appōscō}}
- Automatic normalisation of entry names (for example, the removal of macrons in Latin) is not provided. Use parameter 4 in these cases:
Additional parameters such as pos=
are not currently supported, although it would be easy to add them to the template code.