Template:Qhv-etym: Difference between revisions

From Linguifex
Jump to navigation Jump to search
(Created page with "From {{#switch: {{{1|c}}}<!-- -->|b=[[{{ucfirst:{{{2|}}}}}]] ''{{term|{{{3|}}}}}''{{#if: {{{4|}}}| (“{{{4|}}}”).|.}}<!-- --><includeonly>Category:High Valyrian terms...")
 
No edit summary
 
(36 intermediate revisions by the same user not shown)
Line 1: Line 1:
From {{#switch: {{{1|c}}}<!--
<onlyinclude>{{#vardefine: missing|<small style="font-style: normal;">[Term?]</small>}}<!--
-->|b=[[{{ucfirst:{{{2|}}}}}]] ''{{term|{{{3|}}}}}''{{#if: {{{4|}}}| (“{{{4|}}}”).|.}}<!--
 
    --><includeonly>[[Category:High Valyrian terms borrowed from {{{2|}}}]]<includeonly><!--
-->{{#vardefine: sort|{{#invoke: qhv-noun/test|test}}}}<!--
-->|From ''{{term|{{{2|}}}}}'' + ''{{term|{{{3|}}}}}''{{#if: {{{4|}}}| + ''{{term|{{{4|}}}}}''.|.}}<!--
 
    -->{{#ifeq: {{str rightmost|{{{2|}}}|1}}|-|<includeonly>[[Category:High Valyrian words prefixed with {{{2|}}}]]</includeonly>}}<!--
-->{{#switch: {{{1|}}}<!--
    -->{{#if: {{{4|}}}|{{#ifeq: {{str left|{{{4|}}}|1}}|-|<includeonly>[[Category:High Valyrian words suffixed with {{{4|}}}]]</includeonly>}}<!--
  -->|b={{#if:{{{nocap|}}}|b|B}}orrowed from [[{{ucfirst:{{{2|}}}}}]] ''{{#if:{{{3}}}|[[Contionary:{{{3|}}}#{{ucfirst:{{{2|}}}}}|{{{|{{{dt|{{{3|}}}}}}}}}]]|{{#var: missing}}}}''{{#if: {{{m|{{{4|}}}}}}|&nbsp;(“{{{m|{{{4|}}}}}}”).|.}}<!--
      -->|{{#ifeq: {{str left|{{{3|}}}|1}}|-|<includeonly>[[Category:High Valyrian words suffixed with {{{3|}}}]]</includeonly>}}<!--
      -->{{#ifeq: {{NAMESPACE}}|Template||[[Category:High Valyrian terms borrowed from {{ucfirst: {{{2|}}}}}|{{#var: sort}}]]}}<!--
    -->}}<!--
  -->|c={{#if:{{{nocap|}}}|f|F}}rom ''{{#if:{{{2}}}|{{term|{{{2|}}}}}|{{#var: missing}}}}''{{#if: {{{m1|}}}|&nbsp;(“{{{m1|}}}”)|}} + ''{{#if: {{{3}}}|{{term|{{{3|}}}}}|{{#var: missing}}}}''{{#if: {{{m2|}}}|&nbsp;(“{{{m2|}}}”)|}}{{#if: {{{4|}}}|&nbsp;+ ''{{term|{{{4|}}}}}''.|.}} <!--
-->}}<!--
      -->{{#ifeq: {{str rightmost|{{{2|}}}|1}}|-|{{#ifeq: {{NAMESPACE}}|Template||[[Category:High Valyrian words prefixed with {{{2|}}}|{{#var: sort}}]]}}}}<!--
      -->{{#if: {{{4|}}}<!--
          -->|{{#ifeq: {{str left|{{{4|}}}|1}}|-|{{#ifeq: {{NAMESPACE}}|Template||[[Category:High Valyrian words suffixed with {{{4|}}}|{{#var: sort}}]]}}}}<!--
          -->|{{#ifeq: {{str left|{{{3|}}}|1}}|-|{{#ifeq: {{NAMESPACE}}|Template||[[Category:High Valyrian words suffixed with {{{3|}}}|{{#var: sort}}]]}}}}<!--
      -->}}<!--
  -->|n={{#if:{{{nocap|}}}|n|N}}ominalization of ''{{term|{{{2|}}}}}''{{#if: {{{m1|}}}|&nbsp;(“{{{m1|}}}”)|}}.<!--
  -->|e={{#if:{{{nocap|}}}|{{{2|}}}|{{ucfirst:{{{2|}}}}}}} of ''{{term|{{{3|}}}}}''{{#if: {{{m1|}}}|&nbsp;(“{{{m1|}}}”)|}}.<!--
  -->|}}</onlyinclude><!--


--><noinclude>{{documentation}}[[Category:Templates]][[Category:Contionary templates]][[Category:High Valyrian templates]]</noinclude>
--><noinclude>{{documentation}}[[Category:Templates]][[Category:Contionary templates]][[Category:High Valyrian templates]]</noinclude>

Latest revision as of 22:46, 1 April 2021


This template is a shortcut form High Valyrian etymology sections, although it could be relatively easy to generalize to any language.

Parameters

|1=

This parameter can take two values, b and c. The former treats the word as a borrowing, and the latter treats it as a compound.

Borrowed mode

|2=

Name of the language the term is from. Automatically capitalized.

|3=

The foreign term. Generates a link to the corresponding Contionary entry.

|dt=

If present, this text will replace the display of |3=, i.e. the link will remain the same.

|4= or |m=

This adds an optional meaning to the foreign word.

Example of usage

{{qhv-etym|b|Dothraki|arakh|dt=example|m=sword}} (It will still link to arakh.) → Borrowed from Dothraki example (“sword”).

Compound mode (default)

|2=, |3=, and |4=

Elements of the compound. Note: It currently only supports tripart compound words since, as far as I know, no High Valyrian entries have more than that amount. Additionally, if |2= or |3= (|4= if present) end or begin respectively with a hyphen, it automatically places the entry to a category by affix.

|m1=, |m2=, and |m3=

Optional meaning for each element.

Example of usage

{{qhv-etym|c|daomio|līrinon|m1=rain|m2=smile}} → From daomio (“rain”) + līrinon (“smile”).