User:Pigsonthewing/Template:biota
(Redirected from User:Pigsonthewing/Template:species)
Examples
edit- Peregrine Falcon (Falco peregrinus)
- {{biota|vernacular=[[Peregrine Falcon]]|binominal=Falco peregrinus}}
- Peregrine Falcon (Falco peregrinus)
- {{biota|vernacular=Peregrine Falcon|binominal=[[Falco peregrinus]]}}
- Peregrine Falcon (Falco peregrinus)
- {{biota|vernacular=Peregrine Falcon|binominal=Falco peregrinus|bold=}}
- Peregrine Falcon
- {{biota|vernacular=[[Peregrine Falcon]]}}
- Peregrine Falcon (Falco peregrinus calidus)
- {{biota|vernacular=[[Peregrine Falcon]]|trinominal=Falco peregrinus calidus}}
- Falcon (Falco)
- {{biota|vernacular=[[Falcon]]|genus=Falco}}
- Birds (Aves)
- {{biota|vernacular=Birds|class=Aves}}
- Aves
- {{biota|class=Aves}}
- Titmice (Paridae)
- {{biota|vernacular=Titmice|family=Paridae}}
- Paridae
- {{biota|family=Paridae}}
Example in prose: I like to see Peregrine Falcon (Falco peregrinus) flying on the wild.
Notes
editTo distinguish between a parameter being defined and non-empty on one hand, or undefined or empty on the other hand, use #if: with a blank default:
- {{ #if: {{{param|}}} | param is defined and non-empty | param is undefined or empty}}
To distinguish between defined (and possibly empty) and undefined, use:
- {{ #ifeq: {{{param|+}}} | {{{param|-}}} | param is defined | param is undefined }}
To do
edit- generate error message for invalid content (including two or more scientific names)
- add additional ranks
- add code for Foo bar ssp. boo and similarly complex formats
- add code for abbreviated binominals/trinominals like C. coronoides