Revision 5837958 of "Template:Taxobox/showtaxon" on simplewiki

{{#titleparts:

{{#switch:{{Taxobox/taxonomy cell/display|{{taxonomy/{{{1|Acacia}}}|machine code=parent}} }}
|A=<!-- The taxon does exist, but do we want to display it?  If we've been passed a "force" (due to display parents = n); or the taxon has always_display set to 1; or it's a major taxon (see list), then we'll generate a taxon row for a wikitable. -->{{
  #switch: {{
    #if:{{{fc|{{{force|}}} }}}
      |{{lc:{{{fc|{{{force}}} }}} }}
      |{{#ifeq:{{taxonomy/{{{1}}}|machine code=always_display}}|true
        |true
        |{{lc:{{taxonomy/{{{1|Acacia}}}|machine code=rank}} }}
      }}<!--endif ...always_display = true-->
    }} 
<!-- "true" is passed into the switch if there's a force or always_display set true; otherwise we're branching by taxonomic rank (in lowercase) -->
  | true | yes
  | regnum | phylum | divisio | classis | ordo
  | familia | genus | species
  | virus_group
  | ichnoclassis | ichnoordo | ichnofamilia | ichnogenus | ichnospecies
  | ooclassis | oordo | oofamilia | oogenus | oospecies
  = <!--
Here's where the taxon row is actually produced:
  -->{{!}} {{
  #switch: {{lc:
  {{#titleparts:{{taxonomy/{{{1|Ursa}}}|machine code=rank}}|1}} }}<!--
  --------------------------------------------------- Get rank name -->
  | unranked = (unranked)
  | informal|informal_ =''Informal group''
  | virus_group=Group
  | superregnum=Superkingdom
  | divisio|zoodivisio=Division
  | regnum=Kingdom
  | subregnum=Subkingdom
  | zoosectio=Section
  | zoosubsectio=Subsection
  | superclassis=Superclass
  | subclassis=Subclass
  | infraclassis=Infraclass
  | classis=Class
  | magnordo=Magnorder
  | superordo=Superorder
  | grandordo=Grandorder
  | ordo=Order
  | subordo=Suborder
  | infraordo=Infraorder
  | infraordo=Microrder
  | parvordo=Parvorder
  | superfamilia=Superfamily
  | familia=Family
  | subfamilia=Subfamily
  | supertribus=Supertribe
  | tribus=Tribe
  | subtribus=Subtribe
  | infratribus=Infratribe
  | sectio|subsectio|superdivisio={{ucfirst:
    {{#titleparts:{{taxonomy/{{{1|Ursa}}}|machine code=rank}}|1}} }}n
  | species_group=Species group
  | species_subgroup=Species subgroup
  | species_complex=Species complex
  | clade|cohort|informal group|stem group|total group
    |legion|superlegion|sublegion|infralegion
    = ''{{ucfirst:{{taxonomy/{{{1|Ursa}}}|machine code=rank}}}}''
  | cladus=''Clade''
  | ichnostem-group=Ichnostem-Group
  | ichnosuperclassis=Ichnosuperclass
  | ichnoclassis=Ichnoclass
  | ichnosubclassis=Ichnosubclass
  | ichnoinfraclassis=Ichnoinfraclass
  | ichnodivisio=Ichnodivision
  | ichnosubdivisio=Ichnosubdivision
  | ichnoinfradivisio=Ichnoinfradivision
  | ichnomagnordo=Ichnomagnorder
  | ichnosuperordo=Ichnosuperorder
  | ichnograndordo=Ichnograndorder
  | ichnomicrordo=Ichnomicrorder
  | ichnoordo=Ichnoorder
  | ichnosubordo=Ichnosuborder
  | ichnoinfraordo=Ichnoinfraorder
  | ichnoparvordo=Ichnoparvorder
  | ichnosuperfamilia=Ichnosuperfamily
  | ichnofamilia=Ichnofamily
  | ichnosubfamilia=Ichnosubfamily
  | ooclassis=Ooclass
  | oosubclassis=Oosubclass
  | oosupercohort=Oosupercohort
  | oocohort=Oocohort
  | oomagnordo=Oomagnorder
  | oosuperordo=Oosuperorder
  | oordo=Oorder
  | morphotype=Morphotype
  | oofamilia=Oofamily
  | oogenus=Oogenus
  | oosubgenus=Oogenus
  | oospecies=Oospecies
  | oosubspecies=Oosubspecies
  | #default={{ucfirst:
    {{#titleparts:{{taxonomy/{{{1|Ursa}}}|machine code=rank}}|1}} }}
  }}<!--endswitch {..=rank..}
  -->: {{!!}} {{
  #switch: {{taxonomy/{{{1|Acacia}}}|machine code=rank}}
    | genus|species|Genus|oogenus|oospecies = <i>
  }}{{#ifeq:{{{format|link}}}|bold
    |'''{{taxonomy/{{{1|Acacia}}}|machine code=link text}}'''
    |[[{{taxonomy/{{{1|Acacia}}}|machine code=link}}]]}}{{
  #switch: {{taxonomy/{{{1|Acacia}}}|machine code=rank}}
    | genus|species|Genus|oogenus|oospecies = </i>}}<!--
----------------------------------------- Authority -->{{
  #if:{{{authority|}}}
    |<br /><small>{{{authority}}}</small>
  }}
{{!}}-<!--put row token after newline
<!--{{taxonomy
    |rank={{taxonomy/{{{1|Acacia}}}|machine code=rank}}
    |link={{#ifeq:{{{format|link}}}|bold|'''{{taxonomy/{{{1|Acacia}}}|machine code=link text}}'''|{{#ifeq:{{ucfirst:{{taxonomy/{{{1|Acacia}}}|machine code=link}}}}|{{lcfirst:{{taxonomy/{{{1|Acacia}}}|machine code=link}}}}|{{taxonomy/{{{1|Acacia}}}|machine code=link}}[[Category:Automatic taxobox cleanup|ϰ-template taxonomy cell]]<!--link contains []s in Taxonomy/xxx template; these should be removed->>>|[[{{taxonomy/{{{1|Acacia}}}|machine code=link}}]]}}}}
    |auth={{{authority|}}}
   }} -->
 }}
|0=<!--We've hit a top level taxon (e.g. "Life").  Display nothing. -->
|X=<!--The page doesn't exist:  
           We don't want to display dud templates, but otherwise will
           provide a link to create the missing taxonomy page.
-->{{#ifeq: {{padleft:|1|{{{1}}} }} | { |{{ns:0}}|
     {{#ifeq:{{NAMESPACE:{{{1}}} }}|Template|{{ns:0}}|
       {{#ifeq:{{substr|{{{1}}}|3|8}}|Template|{{ns:0}}|
{{!}} colspan=2 {{!}} {{create taxonomy|{{{1}}}}}
{{!-}}
       }}
     }}
   }}
}}<noinclude><!--endswitch {..cell/display}-->
{{documentation}}</noinclude>

|1}}