Difference between revisions of "Template:Format species list/doc"

From blackwiki
Jump to navigation Jump to search
test>Jts1882
(create)
 
test>Jts1882
(→‎Usage: use subst)
Line 8: Line 8:
 
:Code:  
 
:Code:  
 
<pre>
 
<pre>
{{Format species list|
+
{{subst:Format species list|
 
     Malleastrum antsingyense J.-F.Leroy
 
     Malleastrum antsingyense J.-F.Leroy
 
     Malleastrum boivinianum (Baill.) J.-F.Leroy
 
     Malleastrum boivinianum (Baill.) J.-F.Leroy
Line 18: Line 18:
 
Generates:
 
Generates:
  
{{Format species list|
+
 
    Malleastrum antsingyense J.-F.Leroy
+
*''[[Malleastrum antsingyense]]'' {{small|J.-F.Leroy}}
    Malleastrum boivinianum (Baill.) J.-F.Leroy
+
*''[[Malleastrum boivinianum]]'' {{small|(Baill.) J.-F.Leroy}}
    Malleastrum contractum J.-F.Leroy
+
*''[[Malleastrum contractum]]'' {{small|J.-F.Leroy}}
    Malleastrum depauperatum  
+
*''[[Malleastrum depauperatum]]''
}}
 
  
  

Revision as of 16:56, 2 August 2020

Utility for formatting lists of species from taxonomic sources with or without authority. This template is intended to be substituted so should have zero transclusions.

Usage

Code:
{{subst:Format species list|
    Malleastrum antsingyense J.-F.Leroy
    Malleastrum boivinianum (Baill.) J.-F.Leroy
    Malleastrum contractum J.-F.Leroy
    Malleastrum depauperatum 
}}

Generates:



Note the code for the {{small}} template will be substituted on the page. Use |expanded= if the template should be expanded (which will create the span markup).