Template:Qsc-inh: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{#if: {{#regex: <|{{{2|}}}}}|{{#vardefine: altLink|{{#invoke: String|match|{{{2|}}}|<([^>]*)>|nomatch={{{2|}}}}}}}}}<!-- | <includeonly>{{#if: {{#regex: <|{{{2|}}}}}|{{#vardefine: altLink|{{#invoke: String|match|{{{2|}}}|<([^>]*)>|nomatch={{{2|}}}}}}}}}<!-- | ||
-->{{#if: {{#regex: [|{{{2|}}}}}|{{#vardefine: catLink|{{#invoke: String|match|{{{2|}}}|\[([^\]]*)\]|nomatch={{{2|}}}}}}}}}<!-- | |||
-->{{#ifeq:{{{nocap|0}}}|1|f|F}}rom [[Pre-Soc'ul']] ''{{term|{{{1|}}}}}'', from [[Wascotl]] ''{{term|*{{#replace:{{{2|}}}| | -->{{#ifeq:{{{nocap|0}}}|1|f|F}}rom [[Pre-Soc'ul']] ''{{term|{{{1|}}}}}'', from [[Wascotl]] ''{{term|*{{#replace:{{#replace:{{{2|}}}|[{#var: catLink}}]|}}|<{{#var: altLink}}>|}}|*{{#var: altLink}}}}''.[[Category:Soc'ul' terms from Wascotl *{{#var: catLink}}]][[Category:Soc'ul' inherited terms]]</includeonly><noinclude>{{documentation}}[[Category:Soc'ul' templates|i]][[Category:Soc'ul' etymology templates|i]][[Category:Contionary templates]][[Category:Templates]]</noinclude> | ||
Revision as of 22:02, 2 May 2023
- The following documentation is located at Template:Qsc-inh/doc. [edit]
- Useful links: subpage list • links • redirects • transclusions • errors (parser/module) • sandbox
Generates Soc'ul' < Sekhulla (optional < Wascotl) etymology text and etymology category tags.
Usage
|1=
Sekhulla term.
- If not given, generates [Term?] tag.
|2=
,|3=
,|4=
...
Wascotl roots. These have a dedicated syntax:
- For more than one root place them in separate parameters.
- Roots can be separated either with a hyphen or with a space; use
-
and+
as parameters, respectively. - Place
<a:*>
and<c:*>
to change the alt link (display text) and the category, where*
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 [Term?] tag.
|nocap=
(optional)
Turns off sentence case for more complex etymologies.
For example, consider the word tsilven;
Template call:
{{qsc-inh|asʰilavən|asł-ila<c:asł->|-|fen-}}
Output:
- From Pre-Soc'ul' asʰilavən, from Wascotl [[Contionary:*asł-ila<c:asł->]|<c:asł->]]|*c:asł-}}.[[Category:Soc'ul' terms from Wascotl *Lua error: Unmatched close-bracket at pattern character 8.]]
Underlying wikicode:
From [[Sekhulla]] ''{{term|asʰilavən}}'', from [[Wascotl]] ''[[Contionary:*asł-ila|*asł-ila]]-[[Contionary:*fen-|*fen-]]''.[[Category:Soc'ul' terms from Wascotl *asł-]][[Category:Soc'ul' terms from Wascotl *fen-]][[Category:Soc'ul' inherited terms]]