Template:Lyti-inh/doc: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
Generates Oltic < Middle Oltic < Old Oltic < Proto-Celtic etymology text and etymology category | {{lua|pollasena-roots/templates}} | ||
Generates Oltic < Middle Oltic [< Old Oltic] [< Proto-Celtic] [< Proto-Indo-European] etymology text and etymology category tags. | |||
== Usage == | == Usage == | ||
; {{para|1}} | ; {{para|1}} | ||
Middle Oltic term. | Middle Oltic term. | ||
; {{para| | * If not given, generates <small>[Term?]</small> tag. | ||
; {{para|2|opt=1}} | |||
Old Oltic term. | Old Oltic term. | ||
; {{para| | * If not given, nothing is shown. | ||
; {{para|3|opt=1}} | |||
Proto-Celtic term. | Proto-Celtic term. | ||
; {{para| | * If not given, nothing is shown. | ||
Proto- | ; {{para|4}}, {{para|5}}, {{para|6}}... | ||
; {{para| | Proto-Indo-European roots. These have a dedicated syntax: | ||
# For more than one root place them in separate parameters. | |||
; {{para| | # Roots can be separated either with a hyphen or with a space; use <code>|-|</code> and <code>|+|</code> as parameters, respectively. | ||
* If not given, no Proto-Indo-European etymon is shown. | |||
; {{para|c|list=1|opt=1}} | |||
For Proto-Indo-European roots, this parameter allows for providing a different form used for category names than that given by automatic processing of the root. The number following the parameter is the number of the root, i.e. separators <code>|-|</code> and <code>|+|</code> are skipped. | |||
; {{para|parts|opt=1}} | |||
For Proto-Celtic etymons, an optional comma-separated list can be provided to include individual links to the parts that compose hypothetical terms. This list is shown as an annotation after the Proto-Celtic term. | |||
; {{para|nocap|opt=1}} | |||
Turns off sentence case for more complex etymologies. | |||
; {{para|nocat|opt=1}} | |||
Prevents the categorization of the page in which the template is transcluded. | |||
=== Example === | |||
For example, consider the word {{l|lyti|τρασσεῖγετι}}; | |||
'''Template call:''' | '''Template call:''' | ||
: {{temp|lyti-inh| | : {{temp|lyti-inh|τρασσειγετι|τρασσειγετι|tarasseigeti|parts=taras,seigeti|terh₂-|steygʰ-}} | ||
'''Output:''' | '''Output:''' | ||
: {{lyti-inh| | : {{lyti-inh|τρασσειγετι|τρασσειγετι|tarasseigeti|parts=taras,seigeti|terh₂-|steygʰ-}} | ||
==Inline modifiers== | |||
All of the per-term parameters described above can alternatively be specified as ''inline modifiers'', using a syntax like <code>детекти́вный рома́н<tr:dɛtɛktívnyj román><t:detective novel></code> to specify modifiers such as transliterations, glosses and qualifiers. In this example, for the Russian term {{l|ru|[[детекти́вный]] [[рома́н]]|tr=dɛtɛktívnyj román|t=detective novel}}, the manual transliteration ''dɛtɛktívnyj román'' and gloss "detective novel" are given. Specifically, the following modifiers are recognized; see the above documentation for more information on the exact meaning of each modifier. | |||
* <code>t</code>: gloss | |||
* <code>alt</code>: alternative display text | |||
* <code>tr</code>: transliteration | |||
* <code>ts</code>: transcription, for languages where the transliteration and pronunciation are markedly different | |||
* <code>q</code>: left qualifier, e.g. {{code|<q:neither sexual nor romantic in nature>}} (in reference to [[wikt:platonic love|platonic love]]); this appears '''before''' the term, parenthesized and italicized | |||
* <code>qq</code>: right qualifier; this appears '''after''' the term, parenthesized and italicized | |||
* <code>l</code>: comma-separated left labels, e.g. {{code|<l:rare>}} or {{code|<l:UK,Australia>}} or {{code|<l:archaic,or,dialectal>}}; as shown, there must not be a space after the comma for it to be recognized as a delimiter; the labels appear '''before''' the term, parenthesized, italicized and appropriately linked as if {{tl|lb}} were used (but without categorization); an alternative syntax is to enclose the labels in {{code|<<...>>}}, e.g. {{code|<l:<<rare>>, <<archaic>> or <<dialectal>>>}} | |||
* <code>ll</code>: comma-separated right labels; these appear '''after''' the term, parenthesized, italicized and appropriately linked as for left labels | |||
* <code>lit</code>: literal meaning | |||
* <code>pos</code>: part of speech | |||
* <code>g</code>: comma-separated list of gender/number specifications; see [[Module:getn]] for the complete list | |||
* <code>sc</code>: script code | |||