Template:Etym: Difference between revisions

From Linguifex
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 34: Line 34:
   #vardefine: originword | {{#explode: {{#var:originword}}| ! | 0 }}
   #vardefine: originword | {{#explode: {{#var:originword}}| ! | 0 }}
}} {{ #ifexpr: {{ #var: i }} = 1 | From |  from}} {{
}} {{ #ifexpr: {{ #var: i }} = 1 | From |  from}} {{
#if: {{#var:originlanguage }}|[[:{{LangAbb| {{#var:originlanguage}} }}| {{LangAbb| {{#var:originlanguage}} }} ]]|
#if: {{#var:originlanguage }}|[[:{{ISO| {{#var:originlanguage}} }}| {{ISO| {{#var:originlanguage}} }} ]]|
}} ''[[Contionary:{{#var:originword}}|{{#var:originword}}]]'' {{#if:{{#var:originmeaning}}|({{#var:originmeaning}})|}} }}<!--
}} ''[[Contionary:{{#var:originword}}|{{#var:originword}}]]'' {{#if:{{#var:originmeaning}}|({{#var:originmeaning}})|}} }}<!--
working to this point
working to this point

Latest revision as of 09:12, 8 February 2020

{{

 #while:
 | 
 |{{ 
 #while:
 | 
 |

}} }}.


This is to show the etymology of a word:

{{Etym|<< word one ! meaning one # LangOne | << word two ! meaning two # LangTwo | word ! meaning of word # a + two ! meaning of two # b}}
Produces
{{
 #while:
 | << word one ! meaning one # LangOne 
 |From  LangOne  word one (meaning one),  }}.

Usage

The format to use this is {{Etym|<command>}}, where <command> is a string composed of a series of, at least one, inputs separated by a pipe |

Each input is built s follows:

Choose whether your word is a compound or not

  • A + B if it's a compound
  • << A if it isn't

Let A and B be in one of the following formats:

  • word
  • word ! gloss
  • word # language (if it's not a compound), lang can be the full language name of the ISO code
  • word ! gloss # language (if it's not a compound)

Examples

{{Etym|<< word}} {{

 #while:
 | << word
 |From  word }}.

{{Etym|<< word # lang}} {{

 #while:
 | << word # lang
 |From  lang  word }}.

{{Etym|<< word ! gloss # lang}} {{

 #while:
 | << word ! gloss # lang
 |From  lang  word (gloss) }}.

{{Etym| word1 + word2}} {{

 #while:
 |  word1 + word1
 |{{ 
 #while:
 | word1 
 |

}} }}.

{{Etym| word1 ! gloss1 + word2 ! gloss2}} {{

 #while:
 |  word1 ! gloss1 + word2 ! gloss2
 |{{ 
 #while:
 | word1 ! gloss1 
 |

}} }}.

{{Etym| word1 + word2 ! gloss2}} {{

 #while:
 |  word1 + word2 ! gloss2 
 |{{ 
 #while:
 | word1 
 |

}} }}.

{{Etym|<< word ! gloss # lang | << word ! gloss # lang}} {{

 #while:
 | << word1 ! gloss1 # lang1 
 |From  lang1  word1 (gloss1),  }}.