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

From blackwiki
Jump to navigation Jump to search
test>Jts1882
(→‎Usage: use subst)
imported>Jts1882
(→‎Usage: move expand to options)
 
(3 intermediate revisions by 3 users not shown)
Line 6: Line 6:
 
== Usage ==
 
== Usage ==
  
:Code:  
+
Code to use:  
 
<pre>
 
<pre>
{{subst:Format species list|
+
{{subst:Format species list|1=
 
     Malleastrum antsingyense J.-F.Leroy
 
     Malleastrum antsingyense J.-F.Leroy
 
     Malleastrum boivinianum (Baill.) J.-F.Leroy
 
     Malleastrum boivinianum (Baill.) J.-F.Leroy
Line 16: Line 16:
 
</pre>
 
</pre>
  
Generates:
+
Wikitext output that should be saved:
 +
<pre>
 +
*''[[Malleastrum antsingyense]]'' {{small|J.-F.Leroy}}
 +
*''[[Malleastrum boivinianum]]'' {{small|(Baill.) J.-F.Leroy}}
 +
*''[[Malleastrum contractum]]'' {{small|J.-F.Leroy}}
 +
*''[[Malleastrum depauperatum]]''
 +
</pre>
  
 +
Output as it appears on the page
  
 
*''[[Malleastrum antsingyense]]'' {{small|J.-F.Leroy}}
 
*''[[Malleastrum antsingyense]]'' {{small|J.-F.Leroy}}
Line 25: Line 32:
  
  
Note the code for the {{tl|small}} template will be substituted on the page. Use {{para|expanded|=true}} if the template should be expanded (which will create the <code>span</code> markup).
+
'''Options'''
 +
 
 +
By default the Wikitext code for the {{tl|small}} template will be substituted on the page. Use {{para|expanded|=true}} if the template should be expanded (which will create the <code>span</code> markup).
 +
 
 +
Use {{para|compare|TEXT}} to only process lines beginning with certain text. If set to the genus name this only includes lines beginning with a listed species and ignores extra lines on distribution and synonyms in lists such as those generated by World Plants or World Ferns.
  
 
<includeonly>{{sandbox other||
 
<includeonly>{{sandbox other||

Latest revision as of 09:08, 24 September 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 to use:

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

Wikitext output that should be saved:

*''[[Malleastrum antsingyense]]'' {{small|J.-F.Leroy}}
*''[[Malleastrum boivinianum]]'' {{small|(Baill.) J.-F.Leroy}}
*''[[Malleastrum contractum]]'' {{small|J.-F.Leroy}}
*''[[Malleastrum depauperatum]]'' 

Output as it appears on the page


Options

By default the Wikitext 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).

Use |compare=TEXT to only process lines beginning with certain text. If set to the genus name this only includes lines beginning with a listed species and ignores extra lines on distribution and synonyms in lists such as those generated by World Plants or World Ferns.