Template:Qsc-inh/doc: Difference between revisions

No edit summary
No edit summary
Line 1: Line 1:
{{lua|pollasena-roots/templates}}
Generates Soc'ul' < Sekhulla (optional < Wascotl) etymology text and etymology category tags.
Generates Soc'ul' < Sekhulla (optional < Wascotl) etymology text and etymology category tags.


Line 8: Line 9:
Wascotl roots. These have a dedicated syntax:
Wascotl roots. These have a dedicated syntax:
# For more than one root place them in separate parameters.
# For more than one root place them in separate parameters.
# Roots can be separated either with a hyphen or with a space; use <code>-</code> and <code>+</code> as parameters, respectively.
# Roots can be separated either with a hyphen or with a space; use <code>|-|</code> and <code>|+|</code> as parameters, respectively.
# Place <code><nowiki><a:*></nowiki></code> and <code><nowiki><c:*></nowiki></code> to change the alt link (display text) and the category, where <code>*</code> is the desired value. Can be combined one after the other, in whatever order, but cannot be repeated. Separator parameters ignore these tags.
* If not given, generates <small>[Term?]</small> tag.
* If not given, generates <small>[Term?]</small> tag.
; {{para|nocap|opt=1}}
; {{para|nocap|opt=1}}
Turns off sentence case for more complex etymologies.
Turns off sentence case for more complex etymologies.
; {{para|nocat|opt=1}}
Prevents the categorization of the page it is transcluded in.


For example, consider the word ''{{term|tsilven}}'';
For example, consider the word ''{{term|tsilven}}'';
Line 20: Line 22:
'''Output:'''
'''Output:'''
: {{qsc-inh|sʰilavən|asł-ila|-|fen-scati}}
: {{qsc-inh|sʰilavən|asł-ila|-|fen-scati}}
==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