Template:taxnyms: Difference between revisions

From Laenkea
Jump to navigation Jump to search
m (Code tidying)
No edit summary
Line 1: Line 1:
(''{{{base}}}''): {{#if:{{{d1|}}}|{{l|{{{1}}}|{{{d1}}}|t={{{d2}}}|pos=domain}}|}}<!--
<includeonly>(''{{{base}}}''): <!--
 
-->{{#if:{{{d1|}}}|{{l|{{{1}}}|{{{d1}}}|t={{{d2}}}|pos=domain}}|}}<!--
 
-->{{#if:{{{k1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{k1}}}|t={{{k2}}}|pos=kingdom}}|}}<!--
-->{{#if:{{{k1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{k1}}}|t={{{k2}}}|pos=kingdom}}|}}<!--
-->{{#if:{{{subk1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{subk1}}}|t={{{subk2}}}|pos=subkingdom}}|}}<!--
-->{{#if:{{{subk1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{subk1}}}|t={{{subk2}}}|pos=subkingdom}}|}}<!--
-->{{#if:{{{infk1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{infk1}}}|t={{{infk2}}}|pos=infrakingdom}}|}}<!--
-->{{#if:{{{infk1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{infk1}}}|t={{{infk2}}}|pos=infrakingdom}}|}}<!--
-->{{#if:{{{supp1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{supp1}}}|t={{{supp2}}}|pos=superphylum}}|}}<!--
-->{{#if:{{{supp1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{supp1}}}|t={{{supp2}}}|pos=superphylum}}|}}<!--
-->{{#if:{{{p1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{p1}}}|t={{{p2}}}|pos=phylum}}|}}<!--
-->{{#if:{{{p1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{p1}}}|t={{{p2}}}|pos=phylum}}|}}<!--
-->{{#if:{{{subp1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{subp1}}}|t={{{subp2}}}|pos=subphylum}}|}}<!--
-->{{#if:{{{subp1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{subp1}}}|t={{{subp2}}}|pos=subphylum}}|}}<!--
-->{{#if:{{{infp1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{infp1}}}|t={{{infp2}}}|pos=infraphylum}}|}}<!--
-->{{#if:{{{infp1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{infp1}}}|t={{{infp2}}}|pos=infraphylum}}|}}<!--
FOR BOTANY/MYCOLOGY ONLY
-->{{#if:{{{supdiv1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{supp1}}}|t={{{supp2}}}|pos=superdivision}}|}}<!--
-->{{#if:{{{div1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{p1}}}|t={{{p2}}}|pos=division}}|}}<!--
-->{{#if:{{{subdiv1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{subp1}}}|t={{{subp2}}}|pos=subdivision}}|}}<!--
-->{{#if:{{{infdiv1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{infp1}}}|t={{{infp2}}}|pos=infradivision}}|}}<!--
-->{{#if:{{{supc1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{supc1}}}|t={{{supc2}}}|pos=superclass}}|}}<!--
-->{{#if:{{{supc1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{supc1}}}|t={{{supc2}}}|pos=superclass}}|}}<!--
-->{{#if:{{{c1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{c1}}}|t={{{c2}}}|pos=class}}|}}<!--
-->{{#if:{{{c1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{c1}}}|t={{{c2}}}|pos=class}}|}}<!--
Line 12: Line 23:
-->{{#if:{{{infc1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{infc1}}}|t={{{infc2}}}|pos=infraclass}}|}}<!--
-->{{#if:{{{infc1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{infc1}}}|t={{{infc2}}}|pos=infraclass}}|}}<!--
-->{{#if:{{{parc1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{parc1}}}|t={{{parc2}}}|pos=parvclass}}|}}<!--
-->{{#if:{{{parc1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{parc1}}}|t={{{parc2}}}|pos=parvclass}}|}}<!--
-->{{#if:{{{supo1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{supo1}}}|t={{{supo2}}}|pos=superorder}}|}}<!--
-->{{#if:{{{supo1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{supo1}}}|t={{{supo2}}}|pos=superorder}}|}}<!--
-->{{#if:{{{o1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{o1}}}|t={{{o2}}}|pos=order}}|}}<!--
-->{{#if:{{{o1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{o1}}}|t={{{o2}}}|pos=order}}|}}<!--
Line 17: Line 29:
-->{{#if:{{{info1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{info1}}}|t={{{info2}}}|pos=infraorder}}|}}<!--
-->{{#if:{{{info1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{info1}}}|t={{{info2}}}|pos=infraorder}}|}}<!--
-->{{#if:{{{paro1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{paro1}}}|t={{{paro2}}}|pos=parvorder}}|}}<!--
-->{{#if:{{{paro1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{paro1}}}|t={{{paro2}}}|pos=parvorder}}|}}<!--
-->{{#if:{{{supf1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{supf1}}}|t={{{supf2}}}|pos=superfamily}}|}}<!--
-->{{#if:{{{supf1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{supf1}}}|t={{{supf2}}}|pos=superfamily}}|}}<!--
-->{{#if:{{{f1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{f1}}}|t={{{f2}}}|pos=family}}|}}<!--
-->{{#if:{{{f1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{f1}}}|t={{{f2}}}|pos=family}}|}}<!--
-->{{#if:{{{subf1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{subf1}}}|t={{{subf2}}}|pos=subfamily}}|}}<!--
-->{{#if:{{{subf1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{subf1}}}|t={{{subf2}}}|pos=subfamily}}|}}<!--
-->{{#if:{{{inff1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{inff1}}}|t={{{inff2}}}|pos=infrafamily}}|}}<!--
-->{{#if:{{{inff1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{inff1}}}|t={{{inff2}}}|pos=infrafamily}}|}}<!--
-->{{#if:{{{supt1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{supt1}}}|t={{{supt2}}}|pos=supertribe}}|}}<!--
-->{{#if:{{{supt1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{supt1}}}|t={{{supt2}}}|pos=supertribe}}|}}<!--
-->{{#if:{{{t1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{t1}}}|t={{{t2}}}|pos=tribe}}|}}<!--
-->{{#if:{{{t1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{t1}}}|t={{{t2}}}|pos=tribe}}|}}<!--
-->{{#if:{{{subt1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{subt1}}}|t={{{subt2}}}|pos=subtribe}}|}}<!--
-->{{#if:{{{subt1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{subt1}}}|t={{{subt2}}}|pos=subtribe}}|}}<!--
-->{{#if:{{{inft1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{inft1}}}|t={{{inft2}}}|pos=sinfratribe}}|}}<!--
-->{{#if:{{{inft1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{inft1}}}|t={{{inft2}}}|pos=sinfratribe}}|}}<!--
-->{{#if:{{{supg1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{supg1}}}|t={{{supg2}}}|pos=supergenus}}|}}<!--
-->{{#if:{{{supg1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{supg1}}}|t={{{supg2}}}|pos=supergenus}}|}}<!--
-->{{#if:{{{g1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{g1}}}|t={{{g2}}}|pos=genus}}|}}<!--
-->{{#if:{{{g1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{g1}}}|t={{{g2}}}|pos=genus}}|}}<!--
-->{{#if:{{{subg1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{subg1}}}|t={{{subg2}}}|pos=subgenus}}|}}<!--
-->{{#if:{{{subg1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{subg1}}}|t={{{subg2}}}|pos=subgenus}}|}}<!--
-->{{#if:{{{infg1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{infg1}}}|t={{{infg2}}}|pos=infragenus}}|}}<noinclude>{{documentation}}[[Category:Taxonomy topic by language]]</noinclude>
-->{{#if:{{{infg1|}}}|&nbsp;—&nbsp;{{l|{{{1}}}|{{{infg1}}}|t={{{infg2}}}|pos=infragenus}}|}}<!--
--></includeonly><noinclude>{{documentation}}[[Category:Taxonomy topic by language]]</noinclude>

Revision as of 16:50, 10 April 2025

TemplateDocumentation.svg Template documentation [view] [edit] [purge]

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; supdiv - superdivision
  • p - phylum; div - division
  • subp - subphylum; subdiv - subdivision
  • infp - infraphylum; infdiv - infradivision
  • 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)