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><!-- | ||
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/ | {{#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 | |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:{{lc:{{{fc|{{{force|}}} }}} }} | |||
|true|yes = true | |||
|#default = | |||
{{#switch:{{taxon info|{{{1}}}|always_display}} | |||
|true | yes = true | |||
|#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 | "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 | ||
|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}} }}<!-- | ||
-->: {{!!}} {{Taxon link|{{{1|Ursa}}}|bold={{#ifeq:{{{format|link}}}|bold|yes|no}}}}<!-- | |||
-->: {{!!}} {{ | |||
----------------------------------------- Authority -->{{ | ----------------------------------------- Authority -->{{ | ||
#if:{{{authority|}}} | #if:{{{authority|}}} | ||
|<br /><small>{{{authority}}}</small> | |<br /><small>{{{authority}}}</small><!-- | ||
-->}} | |||
{{!}}-<!--put row token after newline | {{!}}-<!--put row token after newline | ||
--> | |||
}} | }} | ||
|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: | ||
}} | }} | ||
}} | }} | ||
}} | }}<!--endswitch {..cell/display}--> | ||
|1}}<noinclude> | |||
{{documentation}}</noinclude> | {{documentation}}</noinclude> | ||
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]