Template:taxnyms: Difference between revisions

From Laenkea
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
(''{{{base}}}''): {{#if:{{{d1|}}}|{{l|{{{1}}}|{{{d1}}}|t={{{d2}}}|pos=domain}}|}}{{#if:{{{k1|}}}| — {{l|{{{1}}}|{{{k1}}}|t={{{k2}}}|pos=kingdom}}|}}{{#if:{{{subk1|}}}| — {{l|{{{1}}}|{{{subk1}}}|t={{{subk2}}}|pos=subkingdom}}|}}
(''{{{base}}}''): {{#if:{{{d1|}}}|{{l|{{{1}}}|{{{d1}}}|t={{{d2}}}|pos=domain}}|}}{{#if:{{{k1|}}}| — {{l|{{{1}}}|{{{k1}}}|t={{{k2}}}|pos=kingdom}}|}}{{#if:{{{subk1|}}}| — {{l|{{{1}}}|{{{subk1}}}|t={{{subk2}}}|pos=subkingdom}}|}}{{#if:{{{infk1|}}}| — {{l|{{{1}}}|{{{infk1}}}|t={{{infk2}}}|pos=infrakingdom}}|}}{{#if:{{{supp1|}}}| — {{l|{{{1}}}|{{{supp1}}}|t={{{supp2}}}|pos=superphylum}}|}}{{#if:{{{p1|}}}| — {{l|{{{1}}}|{{{p1}}}|t={{{p2}}}|pos=phylum}}|}}{{#if:{{{subp1|}}}| — {{l|{{{1}}}|{{{subp1}}}|t={{{subp2}}}|pos=subphylum}}|}}{{#if:{{{infp1|}}}| — {{l|{{{1}}}|{{{infp1}}}|t={{{infp2}}}|pos=infraphylum}}|}}{{#if:{{{supc1|}}}| — {{l|{{{1}}}|{{{supc1}}}|t={{{supc2}}}|pos=superclass}}|}}{{#if:{{{c1|}}}| — {{l|{{{1}}}|{{{c1}}}|t={{{c2}}}|pos=class}}|}}{{#if:{{{subc1|}}}| — {{l|{{{1}}}|{{{subc1}}}|t={{{subc2}}}|pos=subclass}}|}}{{#if:{{{infc1|}}}| — {{l|{{{1}}}|{{{infc1}}}|t={{{infc2}}}|pos=infraclass}}|}}{{#if:{{{parc1|}}}| — {{l|{{{1}}}|{{{parc1}}}|t={{{parc2}}}|pos=parvclass}}|}}{{#if:{{{supo1|}}}| — {{l|{{{1}}}|{{{supo1}}}|t={{{supo2}}}|pos=superorder}}|}}{{#if:{{{o1|}}}| — {{l|{{{1}}}|{{{o1}}}|t={{{o2}}}|pos=order}}|}}{{#if:{{{subo1|}}}| — {{l|{{{1}}}|{{{subo1}}}|t={{{subo2}}}|pos=suborder}}|}}{{#if:{{{info1|}}}| — {{l|{{{1}}}|{{{info1}}}|t={{{info2}}}|pos=infraorder}}|}}{{#if:{{{paro1|}}}| — {{l|{{{1}}}|{{{paro1}}}|t={{{paro2}}}|pos=parvorder}}|}}{{#if:{{{supf1|}}}| — {{l|{{{1}}}|{{{supf1}}}|t={{{supf2}}}|pos=superfamily}}|}}{{#if:{{{f1|}}}| — {{l|{{{1}}}|{{{f1}}}|t={{{f2}}}|pos=family}}|}}{{#if:{{{subf1|}}}| — {{l|{{{1}}}|{{{subf1}}}|t={{{subf2}}}|pos=subfamily}}|}}{{#if:{{{inff1|}}}| — {{l|{{{1}}}|{{{inff1}}}|t={{{inff2}}}|pos=infrafamily}}|}}{{#if:{{{supt1|}}}| — {{l|{{{1}}}|{{{supt1}}}|t={{{supt2}}}|pos=supertribe}}|}}{{#if:{{{t1|}}}| — {{l|{{{1}}}|{{{t1}}}|t={{{t2}}}|pos=tribe}}|}}{{#if:{{{subt1|}}}| — {{l|{{{1}}}|{{{subt1}}}|t={{{subt2}}}|pos=subtribe}}|}}{{#if:{{{inft1|}}}| — {{l|{{{1}}}|{{{inft1}}}|t={{{inft2}}}|pos=sinfratribe}}|}}{{#if:{{{supg1|}}}| — {{l|{{{1}}}|{{{supg1}}}|t={{{supg2}}}|pos=supergenus}}|}}{{#if:{{{g1|}}}| — {{l|{{{1}}}|{{{g1}}}|t={{{g2}}}|pos=genus}}|}}{{#if:{{{subg1|}}}| — {{l|{{{1}}}|{{{subg1}}}|t={{{subg2}}}|pos=subgenus}}|}}{{#if:{{{infg1|}}}| — {{l|{{{1}}}|{{{infg1}}}|t={{{infg2}}}|pos=infragenus}}|}}
<noinclude>
== Usage ==
This template can be used to create a list of hypernyms for any taxonomic term.
 
For example,
* <code><nowiki>{{taxnyms|lfv|base=phylum|d1=hlikuêtêljir|d2=Eukaryota|k1=irisir|k2=Animalia}}</nowiki></code>
gives
* {{taxnyms|lfv|base=phylum|d1=hlikuêtêljir|d2=Eukaryota|k1=irisir|k2=Animalia}}
 
The main taxonomic ranks are abbreviated to their first initial letter (e.g. <code>o</code> for order), the related ranks above and below are abbreviated to their first three letters + the main rank letter, eg. suborder is <code>subo</code> and infraorder is <code>info</code>. Each rank abbreviation is followed by a number: <code>1</code> stands for the term in the target language, and <code>2</code> stands for the English translation of the term.
 
For proper rendering, the rank of domain must always be included.
 
The template currently supports the following ranks:
* <code>d</code> - domain
* <code>k</code> - kingdom
* <code>supk</code> - subkingdom
* <code>infk</code> - infrakingdom
* <code>supp</code> - superphylum
* <code>p</code> - phylum
* <code>subp</code> - subphylum
* <code>infp</code> - infraphylum
* <code>supc</code> - superclass
* <code>c</code> - class
* <code>subc</code> - subclass
* <code>infc</code> - infraclass
* <code>parc</code> - parvclass
* <code>supo</code> - superorder
* <code>o</code> - order
* <code>subo</code> - suborder
* <code>info</code> - infraorder
* <code>paro</code> - parvorder
* <code>supf</code> - superfamily
* <code>f</code> - family
* <code>subf</code> - subfamily
* <code>inff</code> - infrafamily
* <code>supt</code> - supertribe
* <code>t</code> - tribe
* <code>subt</code> - subtribe
* <code>inft</code> - infratribe
* <code>supg</code> - supergenus
* <code>g</code> - genus
* <code>subg</code> - subgenus
* <code>infg</code> - infragenus
<br>
Longer example:
*<code><nowiki>{{genus|lfv|base=family|d1=hlikuêtêljir|d2=Eukaryota|k1=irisir|k2=Animalia|p1=elkwirfêljir|p2=Chordata|c1=delgêljir|c2=Mammalia|o1=þaranir|o2=Carnivora|subo1=nivimbuhtessir|subo2=Caniformia}}</nowiki></code>
* {{taxnyms|lfv|base=genus|d1=hlikuêtêljir|d2=Eukaryota|k1=irisir|k2=Animalia|p1=elkwirfêljir|p2=Chordata|c1=delgêljir|c2=Mammalia|o1=þaranir|o2=Carnivora|subo1=nivimbuhtessir|subo2=Caniformia}}[[Category:Taxonomy topic by language]]</noinclude>

Revision as of 16:56, 2 August 2024

({{{base}}}):

Usage

This template can be used to create a list of hypernyms for any taxonomic term.

For example,

  • {{taxnyms|lfv|base=phylum|d1=hlikuêtêljir|d2=Eukaryota|k1=irisir|k2=Animalia}}

gives


The main taxonomic ranks are abbreviated to their first initial letter (e.g. o for order), the related ranks above and below are abbreviated to their first three letters + the main rank letter, eg. suborder is subo and infraorder is info. Each rank abbreviation is followed by a number: 1 stands for the term in the target language, and 2 stands for the English translation of the term.

For proper rendering, the rank of domain must always be included.

The template currently supports the following ranks:

  • d - domain
  • k - kingdom
  • supk - subkingdom
  • infk - infrakingdom
  • supp - superphylum
  • p - phylum
  • subp - subphylum
  • infp - infraphylum
  • supc - superclass
  • c - class
  • subc - subclass
  • infc - infraclass
  • parc - parvclass
  • supo - superorder
  • o - order
  • subo - suborder
  • info - infraorder
  • paro - parvorder
  • supf - superfamily
  • f - family
  • subf - subfamily
  • inff - infrafamily
  • supt - supertribe
  • t - tribe
  • subt - subtribe
  • inft - infratribe
  • supg - supergenus
  • g - genus
  • subg - subgenus
  • infg - infragenus


Longer example:

  • {{genus|lfv|base=family|d1=hlikuêtêljir|d2=Eukaryota|k1=irisir|k2=Animalia|p1=elkwirfêljir|p2=Chordata|c1=delgêljir|c2=Mammalia|o1=þaranir|o2=Carnivora|subo1=nivimbuhtessir|subo2=Caniformia}}
  • (genus): hlikuêtêljir (“Eukaryota”, domain) — irisir (“Animalia”, kingdom) — elkwirfêljir (“Chordata”, phylum) — delgêljir (“Mammalia”, class) — þaranir (“Carnivora”, order) — nivimbuhtessir (“Caniformia”, suborder)