Difference between revisions of "Template:Automatic taxobox/is species"

From blackwiki
Jump to navigation Jump to search
imported>Peter coxhead
(test for "Genus (disambig)")
imported>Peter coxhead
(check rank to decide if it's a species)
Line 1: Line 1:
{{#ifeq:{{first word|{{{1|}}}}} {{last word|{{{1|}}}}}|{{PAGENAMEBASE|{{{1|$}}}}}|yes}}<noinclude>{{Documentation}}</noinclude>
+
{{#switch:{{Taxon info|{{{1|Acacia}}}|rank}}
 +
|species|Species=''{{{1}}}''
 +
}}<noinclude>{{Documentation}}</noinclude>

Revision as of 07:32, 25 January 2017

Template documentation[view] [edit] [history] [purge]

Usage

This template is used by {{Automatic taxobox}} to decide whether its argument (the name of the target taxon) is that of a species based on its taxonomy template. If so it returns its argument, otherwise it returns the empty value.