Template:Etym/doc: Difference between revisions

From Linguifex
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
Tihs is to show etymology of a word, there are certain codes to useit but its simple and here is a list
This is to show the etymology of a word:
:{|class="wikitable"
! Code
! Result
{{Etym/doc/codes|<< ditto}}
{{Etym/doc/codes|<< adwia#umbrean}}
{{Etym/doc/codes|<< adwia!water#umbrean}}
{{Etym/doc/codes|<< adwia ! water # umbrean}}
{{Etym/doc/codes|<< adwia ! water # umb}}
{{Etym/doc/codes|mil + hugn}}
{{Etym/doc/codes|mil!my + hugn!chese}}
{{Etym/doc/codes|mil!my + hugn!chese + nia}}
{{Etym/doc/codes|mil!my + hugn!chese + nia!worm}}
{{Etym/doc/codes|mil ! my + hugn ! chese + nia ! worm}}
|}
it can be ran indefinately though simular to


{{etyl|<< adwia!water#umbrean | mil!my + hugn!chese}}
<nowiki>{{Etym|<< word one ! meaning one # LangOne | << word two ! meaning two # LangTwo | word ! meaning of word # a + two ! meaning of two # b}}</nowiki>


to create chains of it, and notice spaces between doesnt affect it at all
; Produces : {{Etym|<< word one ! meaning one # LangOne | << word two # LangTwo | word + two ! meaning of two}}


as noticed the umb shorting for umbrean works equally well as its in the list on [[Template:LangAbb|Language Abbreviations]]<noinclude>
== Usage ==
 
The format to use this is <code><nowiki>{{Etym|<command>}}</nowiki></code>, where <code><nowiki><command></nowiki></code> is a string composed of a series of, at least one, inputs separated by a pipe <code><nowiki>|</nowiki></code>
 
Each input is built s follows:
 
Choose whether your word is a compound or not
* <code><nowiki>A + B</nowiki></code> if it's a compound
* <code><nowiki><< A</nowiki></code> if it isn't
 
Let <code><nowiki>A</nowiki></code> and <code><nowiki>B</nowiki></code> be in one of the following formats:
* <code><nowiki>word</nowiki></code>
* <code><nowiki>word ! gloss</nowiki></code>
* <code><nowiki>word # language</nowiki></code> (if it's not a compound), lang can be the full language name of the [[Template:ISO|ISO]] code
* <code><nowiki>word ! gloss # language</nowiki></code> (if it's not a compound)
 
== Examples ==
 
<code><nowiki>{{Etym|<< word}}</nowiki></code>
{{Etym|<< word}}
 
<code><nowiki>{{Etym|<< word # lang}}</nowiki></code>
{{Etym|<< word # lang}}
 
<code><nowiki>{{Etym|<< word ! gloss # lang}}</nowiki></code>
{{Etym|<< word ! gloss # lang}}
 
<code><nowiki>{{Etym| word1 + word2}}</nowiki></code>
{{Etym| word1 + word1}}
 
<code><nowiki>{{Etym| word1 ! gloss1 + word2 ! gloss2}}</nowiki></code>
{{Etym| word1 ! gloss1 + word2 ! gloss2}}
 
<code><nowiki>{{Etym| word1 + word2 ! gloss2}}</nowiki></code>
{{Etym| word1 + word2 ! gloss2 }}
 
<code><nowiki>{{Etym|<< word ! gloss # lang | << word ! gloss # lang}}</nowiki></code>
{{Etym|<< word1 ! gloss1 # lang1 |<< word2 ! gloss2 # lang2}}<noinclude>
[[Category:Template documentation]]
[[Category:Template documentation]]
</noinclude>
</noinclude>

Latest revision as of 10:03, 8 February 2020

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),  }}.