Template:Taxobox/showtaxon: Difference between revisions

From Chalo Chatu, Zambia online encyclopedia
(Created page with "<noinclude><!-- ****** Before editing this template, please read the warning to template editors on the /doc page. ****** --></noinclude> {{#titleparts: {{#switch:{{Taxobox/t...")
 
m (1 revision imported)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<noinclude><!--
<noinclude><!--
****** Before editing this template, please read the warning to template editors on the /doc page. ******
Must start with a blank line in order to create a new table line using wiki markup.
Why is #titleparts: needed?
--></noinclude>
--></noinclude>
{{#titleparts:
{{#titleparts:


{{#switch:{{Taxobox/taxonomy cell/display|{{taxonomy/{{{1|Acacia}}}|machine code=parent}} }}
{{#switch:{{Taxobox/displayed cell|{{taxon info|{{{1|Acacia}}}|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. -->{{
|A=<noinclude><!-- 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 true/yes; or it's a major taxon (see list), then we'll generate a taxon row for a wikitable. --></noinclude>
  #switch: {{
  {{#switch:
    #if:{{{fc|{{{force|}}} }}}
  {{#switch:{{lc:{{{fc|{{{force|}}} }}} }}
      |{{lc:{{{fc|{{{force}}} }}} }}
  |true|yes = true
      |{{#switch:{{taxonomy/{{{1}}}|machine code=always_display}}
  |#default =
        |true | yes = true
    {{#switch:{{taxon info|{{{1}}}|always_display}}
        |#default={{lc:{{taxonomy/{{{1|Acacia}}}|machine code=rank}} }}
    |true | yes = true
      }}<!--end switch on always_display-->
    |#default={{lc:{{taxon info|{{{1|Acacia}}}|rank}} }}
    }}  
    }}<!--end switch on always_display-->
<!-- "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) -->
  }}<!--end switch on fc
   | true | yes
"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) -->
   | regnum | phylum | divisio | classis | ordo
   |true
  | familia | genus | species
   |regnum |phylum |divisio |classis |ordo |familia |genus |species
   | virus_group
   |virus_group
   | ichnoclassis | ichnoordo | ichnofamilia | ichnogenus | ichnospecies
   |ichnoclassis |ichnoordo |ichnofamilia |ichnogenus |ichnospecies
   | ooclassis | oordo | oofamilia | oogenus | oospecies
   |ooclassis |oordo |oofamilia |oogenus |oospecies
   = <!--
   = <!--
Here's where the taxon row is actually produced:
Here's where the taxon row is actually produced:
   -->{{!}} {{
   -->{{!}} {{Anglicise rank|{{taxon info|{{{1|Ursa}}}|rank}} }}<!--
  #switch: {{lc:
   -->: {{!!}} {{Taxon link|{{{1|Ursa}}}|bold={{#ifeq:{{{format|link}}}|bold|yes|no}}}}<!--
  {{#titleparts:{{taxonomy/{{{1|Ursa}}}|machine code=rank}}|1}} }}<!--
  --------------------------------------------------- Get rank name -->
  | unranked = (unranked)
  | informal|informal group =''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:{{#titleparts:{{taxonomy/{{{1|Ursa}}}|machine code=rank}}}}}}''
  | possible clade =''Clade?''
  | 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={{#ifeq:{{str_left|{{lc:{{#titleparts:{{taxonomy/{{{1|Ursa}}}|machine code=rank}}|1}}}}|8}}|unranked|(unranked)|{{ucfirst:
    {{#titleparts:{{taxonomy/{{{1|Ursa}}}|machine code=rank}}|1}} }} }}
  }}<!--endswitch {..=rank..}
   -->: {{!!}} {{
  #switch: {{lc:{{taxonomy/{{{1|Acacia}}}|machine code=rank}}}}
    | genus|species|oogenus|oospecies|sectio|subgenus|subsectio|series|subseries = <i>
  }}{{#ifeq:{{{format|link}}}|bold
    |'''{{taxonomy/{{{1|Acacia}}}|machine code=link text}}'''
    |[[{{taxonomy/{{{1|Acacia}}}|machine code=link}}]]}}{{
  #switch: {{lc:{{taxonomy/{{{1|Acacia}}}|machine code=rank}}}}
    | genus|species|oogenus|oospecies|sectio|subgenus|subsectio|series|subseries = </i>}}<!--
----------------------------------------- Authority -->{{
----------------------------------------- Authority -->{{
   #if:{{{authority|}}}
   #if:{{{authority|}}}
     |<br /><small>{{{authority}}}</small>
     |<br /><small>{{{authority}}}</small><!--
  }}
-->}}
{{!}}-<!--put row token after newline
{{!}}-<!--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. -->
|0=<!--We've hit a top level taxon (e.g. "Life").  Display nothing. -->
Line 131: Line 45:
     }}
     }}
   }}
   }}
}}<noinclude><!--endswitch {..cell/display}-->
}}<!--endswitch {..cell/display}-->
|1}}<noinclude>
{{documentation}}</noinclude>
{{documentation}}</noinclude>
|1}}

Latest revision as of 16:56, 24 August 2018

| Template:Taxonomy/Ursa: || [[Template:Taxonomy/Ursa]] |-

<templatestyles src="Module:Documentation/styles.css"></templatestyles>

Template documentation[create]